Internet Explorer Element Spy (alternative to iWB2 Learner)

Post your working scripts, libraries and tools
User avatar
Joe Glines
Posts: 701
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)

11 Mar 2017, 11:14

@rommmcek I just tried it with IE11 and , even wiht status bar visible, it did not work correclty at different zoom levels. :( I don't have time to dive into it now but will next week. If you get a chance to review, that would be awesome! Thank you so much for your work!!!

Find & Click AutoHotkey syntax writer Automate my Task :clap:
AHK Tutorials:Web Scraping | AHK Studio | Webservice APIs | AHK and Excel | Chrome | RegEx | Functions
Training: AHK Webinars Courses on AutoHotkey :ugeek:
Connect with me on LinkedIn :beer: | YouTube
How-to: Create a shortcut that automatically
logs in to any website

:thumbup: Quick Access Popup, the powerful Windows folders, apps and documents launcher!
Help support the AutoHotkey foundation
User avatar
rommmcek
Posts: 1123
Joined: 15 Aug 2014, 15:18

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

11 Mar 2017, 18:08

Here is test code:

Code: Select all

GetTextFromPoint() {
   global
   ;~ Acc := Acc_ObjectFromPoint(child, _Xc-_Wc*3, _Yc+_Hc/2)  ; uncomment this line inserting parametrs from MouseMove command
   Acc := Acc_ObjectFromPoint(child)                           ; comment this line out
   try value := Acc.accValue(child)
   if Not value
      try value := Acc.accName(child)
   return value
}
WinActivate, ahk_class IEFrame
WinWaitActive, ahk_class IEFrame
ControlGetPos, _Xc, _Yc, _Wc, _Hc, BrowserFrameGripperClass1, ahk_class IEFrame
MouseMove, _Xc-_Wc*3, _Yc+_Hc/2    ; -----> adjust, so Mouse pointer hits ZoomLevel (ToolbarWindow32X Control) then commnent this line out
IEZoom:= RTrim(getTextFromPoint(), "%")
MsgBox, % IeZoom
return
#Include, Acc.ahk
Edit: GetZoomLevel2 on last edited post should be easier!
User avatar
rommmcek
Posts: 1123
Joined: 15 Aug 2014, 15:18

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

12 Mar 2017, 06:09

Important: IExporer window should be maximized!
User avatar
rommmcek
Posts: 1123
Joined: 15 Aug 2014, 15:18

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

15 Mar 2017, 10:26

Not Maximized vs. Restored state were responsible but position! (When maximized pos is ~ 0,0). Made a fix, but Control is pretty dodgy, so in some circumstances may still not work. Note: Control for Zoom Level must bi visible by eye (may not be overlaid, not even by iWB2_Learner).

Edit: Get newer version below!
Last edited by rommmcek on 24 Mar 2017, 12:57, edited 1 time in total.
User avatar
Joe Glines
Posts: 701
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)

15 Mar 2017, 15:48

@rommmcek thanks for the work on this! I tried the Zoom1.1 version. At first it didn't work, then suddenly it did (for a minute) then stopped, then went back to working again. I wonder what is going on with it...

Anyway, thanks fore working on it! While the zoom setting is an annoyance, it would be great to have it working correctly!

Find & Click AutoHotkey syntax writer Automate my Task :clap:
AHK Tutorials:Web Scraping | AHK Studio | Webservice APIs | AHK and Excel | Chrome | RegEx | Functions
Training: AHK Webinars Courses on AutoHotkey :ugeek:
Connect with me on LinkedIn :beer: | YouTube
How-to: Create a shortcut that automatically
logs in to any website

:thumbup: Quick Access Popup, the powerful Windows folders, apps and documents launcher!
Help support the AutoHotkey foundation
User avatar
rommmcek
Posts: 1123
Joined: 15 Aug 2014, 15:18

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

16 Mar 2017, 12:16

Try this version it should perform faster and more reliable. However on may system (Win 10) work all versions pretty good.
Ultimate goal: Working without visible Control!
Attachments
iWB2_Learner_Zoom2.2.ahk
(34.79 KiB) Downloaded 222 times
User avatar
Joe Glines
Posts: 701
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)

17 Mar 2017, 06:30

Wow! That seems to work perfectly! :)

Find & Click AutoHotkey syntax writer Automate my Task :clap:
AHK Tutorials:Web Scraping | AHK Studio | Webservice APIs | AHK and Excel | Chrome | RegEx | Functions
Training: AHK Webinars Courses on AutoHotkey :ugeek:
Connect with me on LinkedIn :beer: | YouTube
How-to: Create a shortcut that automatically
logs in to any website

:thumbup: Quick Access Popup, the powerful Windows folders, apps and documents launcher!
Help support the AutoHotkey foundation
User avatar
rommmcek
Posts: 1123
Joined: 15 Aug 2014, 15:18

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

28 Mar 2017, 00:34

Thanks to jeeswg now we have it working without visible control!
Edit: Below is a new version respecting DPIScale!
Last edited by rommmcek on 01 Apr 2017, 10:43, edited 1 time in total.
User avatar
Joe Glines
Posts: 701
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)

28 Mar 2017, 06:21

Awesome! Worked reliably for me. I turned off the transparency on line 320 as that bothers me but looks great! Perhaps we can have a radio button near the top to toggle transparency?

Find & Click AutoHotkey syntax writer Automate my Task :clap:
AHK Tutorials:Web Scraping | AHK Studio | Webservice APIs | AHK and Excel | Chrome | RegEx | Functions
Training: AHK Webinars Courses on AutoHotkey :ugeek:
Connect with me on LinkedIn :beer: | YouTube
How-to: Create a shortcut that automatically
logs in to any website

:thumbup: Quick Access Popup, the powerful Windows folders, apps and documents launcher!
Help support the AutoHotkey foundation
User avatar
sinkfaze
Posts: 614
Joined: 01 Oct 2013, 08:01

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

30 Mar 2017, 07:49

Why does the bounding rectangle now overflow? Tested this at various zoom levels on IE11.
3-30-2017 7-44-17 AM.jpg
3-30-2017 7-44-17 AM.jpg (170.39 KiB) Viewed 5691 times
User avatar
Joe Glines
Posts: 701
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)

30 Mar 2017, 08:57

Very odd! I just tested with IE11 and do not have a similar issue.

Find & Click AutoHotkey syntax writer Automate my Task :clap:
AHK Tutorials:Web Scraping | AHK Studio | Webservice APIs | AHK and Excel | Chrome | RegEx | Functions
Training: AHK Webinars Courses on AutoHotkey :ugeek:
Connect with me on LinkedIn :beer: | YouTube
How-to: Create a shortcut that automatically
logs in to any website

:thumbup: Quick Access Popup, the powerful Windows folders, apps and documents launcher!
Help support the AutoHotkey foundation
User avatar
rommmcek
Posts: 1123
Joined: 15 Aug 2014, 15:18

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

01 Apr 2017, 10:37

This is a pretty old script and the author then didn't care about Zoom and DPIScale.

Edit: Use version 3.2 below.
Last edited by rommmcek on 09 Jul 2017, 06:38, edited 1 time in total.
User avatar
Joe Glines
Posts: 701
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)

02 Apr 2017, 16:54

Cool! :) Thanks @rommcek!

Find & Click AutoHotkey syntax writer Automate my Task :clap:
AHK Tutorials:Web Scraping | AHK Studio | Webservice APIs | AHK and Excel | Chrome | RegEx | Functions
Training: AHK Webinars Courses on AutoHotkey :ugeek:
Connect with me on LinkedIn :beer: | YouTube
How-to: Create a shortcut that automatically
logs in to any website

:thumbup: Quick Access Popup, the powerful Windows folders, apps and documents launcher!
Help support the AutoHotkey foundation
User avatar
rommmcek
Posts: 1123
Joined: 15 Aug 2014, 15:18

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

09 Jul 2017, 06:36

Made some more minor aesthetical changes.
44
@Joe Glines: Thank you, for starting changes & prompt feedback!
Attachments
iWB2_Learner_Zoom3.2.ahk
(34.76 KiB) Downloaded 214 times
Visioneer
Posts: 140
Joined: 07 Oct 2013, 18:51

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

22 Sep 2017, 08:38

Needs a little work. But some great improvements. Love that zooming works feature.
First the cross would not go away. (mouse pointer would not return). I went into control panel,
accessibility for mouse, to get pointer back. Then later the thing could not be deleted. Had to reboot.
This was after I had compiled it I think. Hopefully jeeswg will be involved again.
User avatar
rommmcek
Posts: 1123
Joined: 15 Aug 2014, 15:18

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

29 Sep 2017, 03:50

I couldn't reproduce any of issues you reported. I compiled to 32 bit (ansi & Unicode) as well as 64 bit, running on Win10 64 bit machine. All worked fine for me. Did you try original script after experiencing trouble with this version?
P.s.: As for Q-s & wishes (you already removed)
I don't feel like much of the author, so do as before. A link to the source code (of the original author) is always appropriate!
Wishes concerning features and ini file, I suppose, are too specific and I'm afraid you'll have to do the stuff by yourself.
xcracked
Posts: 15
Joined: 29 Sep 2018, 22:27

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

14 Nov 2018, 00:45

Hi,everyone! Thanks for the effort , I want to know how to make this script work on WinXP and IE8
User avatar
rommmcek
Posts: 1123
Joined: 15 Aug 2014, 15:18

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

14 Nov 2018, 09:53

Re. iWB2 Learner: Unfortunately it seems, this code was not designed for IE8, even on IE9 the sourceIndex of elements in IE9 may not be reliable.
burque505
Posts: 1397
Joined: 22 Jan 2017, 19:37

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

27 Dec 2018, 17:08

@rommmcek, I used your script elsewhere and didn't credit you, I clearly should have. Attached is a slightly modded version adding back in the index field, which I'm prone to use.
Thanks again for it, the zoom works great.
Regards,
burque505
Attachments
iWB2_Learner_Zoom3.2 modded.zip
(11.52 KiB) Downloaded 73 times
User avatar
rommmcek
Posts: 1123
Joined: 15 Aug 2014, 15:18

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

29 Dec 2018, 00:21

rommmcek wrote:I don't feel like much of the author
, but thanks anyway.
The zoom is actually jeeswg's code, I only implemented it in iWB2 Learner
P.s.: As a rising Html capacity could you translate to Ahk window.devicePixelRatio? It works in Html script!

Return to “Scripts and Functions”

Who is online

Users browsing this forum: kriszty and 20 guests