Internet Explorer Element Spy (alternative to iWB2 Learner)

Post your working scripts, libraries and tools
Bruttosozialprodukt
Posts: 451
Joined: 24 Jan 2014, 22:28

Re: Internet Explorer Element Spy (alternative to iWB2 Learner)

15 Jan 2016, 18:45

You can now use F2/F3 to select other elements below your mouse pointer.
This is very handy when you want to select an element that is more or less hidden by an overlay.

Performace might be worse now though.
phaleth
Posts: 28
Joined: 13 Apr 2015, 03:49

Re: Internet Explorer Element Spy (alternative to iWB2 Learner)

28 Jan 2016, 13:02

hi, any chance this could work with IE 10?
Attachments
iespy2.jpg
iespy1.jpg
Bruttosozialprodukt
Posts: 451
Joined: 24 Jan 2014, 22:28

Re: Internet Explorer Element Spy (alternative to iWB2 Learner)

30 Jan 2016, 10:49

Thanks for reporting, I assumed it would. I'll look into that some time.
User avatar
tank
Posts: 2135
Joined: 28 Sep 2013, 22:15
Facebook: charlie.simmons.7334
Google: ttnnkkrr
GitHub: ttnnkkrr
Location: Louisville KY
Contact:

Re: Internet Explorer Element Spy (alternative to iWB2 Learner)

30 Jan 2016, 11:01

thank you for redooing it and posting it. It was all origionaly written pre AHK_L and i was only concerned with specific functionality and not with code cleanliness. Thank you heaps
We are troubled on every side‚ yet not distressed; we are perplexed‚
but not in despair; Persecuted‚ but not forsaken; cast down‚ but not destroyed;
https://www.facebook.com/ahkscript.org
If you have forum suggestions please submit a pull request
Philbot44
Posts: 31
Joined: 25 Apr 2016, 08:21

Re: Internet Explorer Element Spy (alternative to iWB2 Learner)

26 Jul 2016, 17:38

Just found this and wondered if it was still a work in progress? I come across frames a lot and wondered if it would say first report the frame if exists then maybe you could then enter the frame details to move forward with the elements in the frame?
Thanks
User avatar
sinkfaze
Posts: 413
Joined: 01 Oct 2013, 08:01

Re: Internet Explorer Element Spy (alternative to iWB2 Learner)

27 Jul 2016, 08:15

The old iWeb tool could recurse into frames to get an element, and I know that both tank and jethrow wrote functions for doing so. OP (or Philbot) I would check the source on the iWeb tool to see how that was being done to add that functionality to this one.
Acuena
Posts: 16
Joined: 27 Jan 2014, 14:56

Re: Internet Explorer Element Spy (alternative to iWB2 Learner)

27 Jul 2016, 09:40

Hi!

Wanted to test the code since I have used iWB2 Learned before.
But when I downloaded the code and run it, I got the following error message:

Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus



I don't know if it matters but I am currently running on Win 7 Pro and IE 11, and my AutoHotkey version should be 1.1.15.01 according to:
User avatar
sinkfaze
Posts: 413
Joined: 01 Oct 2013, 08:01

Re: Internet Explorer Element Spy (alternative to iWB2 Learner)

27 Jul 2016, 09:56

OnExit() was introduced in version 1.1.20, so you'll need to update.
Acuena
Posts: 16
Joined: 27 Jan 2014, 14:56

Re: Internet Explorer Element Spy (alternative to iWB2 Learner)

27 Jul 2016, 16:50

Hmm, might be because of that :P
Thougt it was updated on that pc, ow well.
User avatar
mapa4
Posts: 12
Joined: 14 Nov 2013, 02:55

Re: Internet Explorer Element Spy (alternative to iWB2 Learner)

15 Oct 2016, 05:02

Hi Bruttosozialprodukt,

Having already discussed a lot about "FRAMES/IFRAMES" with Joe Glines, it would be so fabulous if you would find a way to give a value to your "ELEMENT ACCESS SUGGESTION" when dealing with this type of tags !
I am sure it would increase the web scraping use on the whole WWW and beyond !!! ;-)

I was interested by your way of using "document.querySelector" which can avoid to code a "loop" and other "if" statements after the use of "document.getElementsByClassName" to get the last one of an array for example, this is a very good suggestion, thanks for the community !

Regarding the Clipboard stuff, and because most of the discovered properties are simple to re-write, I just duplicated some of your lines to give these ones :

Clipboard := wb "document.querySelector("""
Clipboard .= tag
If (class)
Loop % classes.MaxIndex()
Clipboard .= "." classes[A_Index]
Clipboard .= """)"

Thanks again for your code, and I'm looking forward to trying your "FRAMES/IFRAMES" suggestions very soon ;-)

<Mapa Mode="Coding"/>
Mapa.
User avatar
SnowFlake
Posts: 363
Joined: 28 Apr 2015, 05:41
Google: floowsnaake
GitHub: floowsnaake
Contact:

Re: Internet Explorer Element Spy (alternative to iWB2 Learner)

09 Feb 2017, 11:42

any updates for this script yet?
Bruttosozialprodukt
Posts: 451
Joined: 24 Jan 2014, 22:28

Re: Internet Explorer Element Spy (alternative to iWB2 Learner)

22 Feb 2017, 08:00

I'm sorry, I'm currently working on a lot of other projects. I'm not sure if I'll ever get back to this project. Maybe if the demand is big enough.
But feel free to modify the script and publish your own version. The code is written in a way that makes it quite easy for others to understand it.
User avatar
ahkDustVorteX
Posts: 33
Joined: 14 May 2014, 12:08

Re: Internet Explorer Element Spy (alternative to iWB2 Learner)

22 Feb 2017, 09:17

Hey Bruttosozialprodukt!

Pretty nice project btw! There are some points I would add here if you allow.
The big issue I see in AHK scripts for webscrapping is that Internet Explorer have had too many upgrades, and each upgrade adds incompatibilities in AHK scripts. I realized that after I upgraded IE to 9 or 10 and wGet() function made by Jethrow has stopped working. This function was very useful to get the pointer of IE and access its functionalities, and after it stopped working I have to downgrade the IE to keep things working. If we could keep this script in a IE single version fully functioning, then after we can think of making the script function to other IE versions. In this way, we could attack important bugs in a single version first, before worrying for other IE versions.
Joe Glines is a great person to help in this project in my opinion. His tutorials in webscrapping are very useful.

I will try to add things if I am able to help. I am not a real programmer but I enjoy this subject.

Best Regards,
Editor: Notepad++
"Those who wait and persist, always achieve."
User avatar
Joe Glines
Posts: 444
Joined: 30 Sep 2013, 20:49
Facebook: https://www.facebook.com/theAutomatorGuru/
Google: https://plus.google.com/105328929654286634910
GitHub: joetazz
Location: Dallas
Contact:

Re: Internet Explorer Element Spy (alternative to iWB2 Learner)

22 Feb 2017, 09:58

@ahkDustVorteX- thanks for the props! BTW- I find the following workd great to get a pointer to IE11

Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus

sancarn
Posts: 189
Joined: 01 Mar 2016, 14:52

Re: Internet Explorer Element Spy (alternative to iWB2 Learner)

24 Feb 2017, 03:51

You might want to add:

Code: [Select all] [Download] GeSHi © Codebox Plus

Menu, tray, add, About IE_Spy, About

About:
__wb := ComObjCreate("InternetExplorer.Application")
__wb.visible := 1
__wb.navigate("http://autohotkey.com/boards/viewtopic.php?f=6&t=13031")
return


Could be helpful...

Also, you might want to add this functionality at the beginning of the script:

Code: [Select all] [Download] GeSHi © Codebox Plus

IfWinNotExist, ahk_exe iexplore.exe
run iexplore.exe


I also wonder whether it would be possible to access different elements of an InternetExplorer ActiveX Control... I've heard rumours it is possible...

Ultimately (untested):

Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus

User avatar
ahkDustVorteX
Posts: 33
Joined: 14 May 2014, 12:08

Re: Internet Explorer Element Spy (alternative to iWB2 Learner)

10 Mar 2017, 12:13

@ahkDustVorteX- thanks for the props! BTW- I find the following workd great to get a pointer to IE11


Thanks Joe. Pretty useful for IE11!
Editor: Notepad++
"Those who wait and persist, always achieve."
User avatar
Joe Glines
Posts: 444
Joined: 30 Sep 2013, 20:49
Facebook: https://www.facebook.com/theAutomatorGuru/
Google: https://plus.google.com/105328929654286634910
GitHub: joetazz
Location: Dallas
Contact:

Re: Internet Explorer Element Spy (alternative to iWB2 Learner)

10 Mar 2017, 15:47

You bet! BTW- I found the source code for the iWB2 learner code. I'm not good enough to handle some things with it, but I did enlargen the gui some and remove references to index (I never used those because they change too frequently. Anybody want to give it a try?

Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus

rommmcek
Posts: 255
Joined: 15 Aug 2014, 15:18

Re: Internet Explorer Element Spy (alternative to iWB2 Learner)

11 Mar 2017, 09:38

Hi, To All!

This is good, even small steps are better then stagnation!

@Joe Glines: Your version of iWB2_Leraner is much more surveyable!
I modified it to work correctly on any Zoom Level, assuming StatusBar is Visible & IE window is maximized, which can be easily achieved through a simple build in HotKey ^!s:: . Hope it'll work for others too!

@Bruttosozialprodukt: It was your IE Element Spy which helped me to step into IECOM world!
You could probably give guidelines, hints... to other members who might have time (and background knowledge) to move forward! Anyway, BIG THANKS for your work!

Edit: iWB2_Learner_Zoom2 should be easier to adjust if needed at all.
Edit2: Made an update on next page!
Last edited by rommmcek on 15 Mar 2017, 10:30, edited 5 times in total.

Return to “Scripts and Functions”

Who is online

Users browsing this forum: Bing [Bot], Croq and 26 guests