Internet Explorer Element Spy (alternative to iWB2 Learner)
- Joe Glines
- Posts: 771
- Joined: 30 Sep 2013, 20:49
- Location: Dallas
- Contact:
Re: Internet Explorer Element Spy (alternative to iWB2 Learner)
@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!!!
Sign-up for the HK Newsletter
AHK Tutorials:Web Scraping | | Webservice APIs | AHK and Excel | Chrome | RegEx | Functions
Training: AHK Webinars Courses on AutoHotkey
YouTube
Quick Access Popup, the powerful Windows folders, apps and documents launcher!
AHK Tutorials:Web Scraping | | Webservice APIs | AHK and Excel | Chrome | RegEx | Functions
Training: AHK Webinars Courses on AutoHotkey
YouTube
Quick Access Popup, the powerful Windows folders, apps and documents launcher!
Re: Internet Explorer Element Spy (alternative to iWB2 Learner)
Here is test code:Edit: GetZoomLevel2 on last edited post should be easier!
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
Re: Internet Explorer Element Spy (alternative to iWB2 Learner)
Important: IExporer window should be maximized!
Re: Internet Explorer Element Spy (alternative to iWB2 Learner)
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!
Edit: Get newer version below!
Last edited by rommmcek on 24 Mar 2017, 12:57, edited 1 time in total.
- Joe Glines
- Posts: 771
- Joined: 30 Sep 2013, 20:49
- Location: Dallas
- Contact:
Re: Internet Explorer Element Spy (alternative to iWB2 Learner)
@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!
Anyway, thanks fore working on it! While the zoom setting is an annoyance, it would be great to have it working correctly!
Sign-up for the HK Newsletter
AHK Tutorials:Web Scraping | | Webservice APIs | AHK and Excel | Chrome | RegEx | Functions
Training: AHK Webinars Courses on AutoHotkey
YouTube
Quick Access Popup, the powerful Windows folders, apps and documents launcher!
AHK Tutorials:Web Scraping | | Webservice APIs | AHK and Excel | Chrome | RegEx | Functions
Training: AHK Webinars Courses on AutoHotkey
YouTube
Quick Access Popup, the powerful Windows folders, apps and documents launcher!
Re: Internet Explorer Element Spy (alternative to iWB2 Learner)
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!
Ultimate goal: Working without visible Control!
- Attachments
-
- iWB2_Learner_Zoom2.2.ahk
- (34.79 KiB) Downloaded 426 times
- Joe Glines
- Posts: 771
- Joined: 30 Sep 2013, 20:49
- Location: Dallas
- Contact:
Re: Internet Explorer Element Spy (alternative to iWB2 Learner)
Wow! That seems to work perfectly!
Sign-up for the HK Newsletter
AHK Tutorials:Web Scraping | | Webservice APIs | AHK and Excel | Chrome | RegEx | Functions
Training: AHK Webinars Courses on AutoHotkey
YouTube
Quick Access Popup, the powerful Windows folders, apps and documents launcher!
AHK Tutorials:Web Scraping | | Webservice APIs | AHK and Excel | Chrome | RegEx | Functions
Training: AHK Webinars Courses on AutoHotkey
YouTube
Quick Access Popup, the powerful Windows folders, apps and documents launcher!
Re: Internet Explorer Element Spy (alternative to iWB2 Learner)
Thanks to jeeswg now we have it working without visible control!
Edit: Below is a new version respecting DPIScale!
Edit: Below is a new version respecting DPIScale!
Last edited by rommmcek on 01 Apr 2017, 10:43, edited 1 time in total.
- Joe Glines
- Posts: 771
- Joined: 30 Sep 2013, 20:49
- Location: Dallas
- Contact:
Re: Internet Explorer Element Spy (alternative to iWB2 Learner)
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?
Sign-up for the HK Newsletter
AHK Tutorials:Web Scraping | | Webservice APIs | AHK and Excel | Chrome | RegEx | Functions
Training: AHK Webinars Courses on AutoHotkey
YouTube
Quick Access Popup, the powerful Windows folders, apps and documents launcher!
AHK Tutorials:Web Scraping | | Webservice APIs | AHK and Excel | Chrome | RegEx | Functions
Training: AHK Webinars Courses on AutoHotkey
YouTube
Quick Access Popup, the powerful Windows folders, apps and documents launcher!
Re: Internet Explorer Element Spy (alternative to iWB2 Learner)
Why does the bounding rectangle now overflow? Tested this at various zoom levels on IE11.
- Joe Glines
- Posts: 771
- Joined: 30 Sep 2013, 20:49
- Location: Dallas
- Contact:
Re: Internet Explorer Element Spy (alternative to iWB2 Learner)
Very odd! I just tested with IE11 and do not have a similar issue.
Sign-up for the HK Newsletter
AHK Tutorials:Web Scraping | | Webservice APIs | AHK and Excel | Chrome | RegEx | Functions
Training: AHK Webinars Courses on AutoHotkey
YouTube
Quick Access Popup, the powerful Windows folders, apps and documents launcher!
AHK Tutorials:Web Scraping | | Webservice APIs | AHK and Excel | Chrome | RegEx | Functions
Training: AHK Webinars Courses on AutoHotkey
YouTube
Quick Access Popup, the powerful Windows folders, apps and documents launcher!
Re: Internet Explorer Element Spy (alternative to iWB2 Learner)
This is a pretty old script and the author then didn't care about Zoom and DPIScale.
Edit: Use version 3.2 below.
Edit: Use version 3.2 below.
Last edited by rommmcek on 09 Jul 2017, 06:38, edited 1 time in total.
- Joe Glines
- Posts: 771
- Joined: 30 Sep 2013, 20:49
- Location: Dallas
- Contact:
Re: Internet Explorer Element Spy (alternative to iWB2 Learner)
Cool! Thanks @rommcek!
Sign-up for the HK Newsletter
AHK Tutorials:Web Scraping | | Webservice APIs | AHK and Excel | Chrome | RegEx | Functions
Training: AHK Webinars Courses on AutoHotkey
YouTube
Quick Access Popup, the powerful Windows folders, apps and documents launcher!
AHK Tutorials:Web Scraping | | Webservice APIs | AHK and Excel | Chrome | RegEx | Functions
Training: AHK Webinars Courses on AutoHotkey
YouTube
Quick Access Popup, the powerful Windows folders, apps and documents launcher!
Re: Internet Explorer Element Spy (alternative to iWB2 Learner)
Made some more minor aesthetical changes.
44
@Joe Glines: Thank you, for starting changes & prompt feedback!
44
@Joe Glines: Thank you, for starting changes & prompt feedback!
- Attachments
-
- iWB2_Learner_Zoom3.2.ahk
- (34.76 KiB) Downloaded 412 times
Re: Internet Explorer Element Spy (alternative to iWB2 Learner)
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.
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.
Re: Internet Explorer Element Spy (alternative to iWB2 Learner)
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.
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.
Re: Internet Explorer Element Spy (alternative to iWB2 Learner)
Hi,everyone! Thanks for the effort , I want to know how to make this script work on WinXP and IE8
Re: Internet Explorer Element Spy (alternative to iWB2 Learner)
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.
Re: Internet Explorer Element Spy (alternative to iWB2 Learner)
@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
Thanks again for it, the zoom works great.
Regards,
burque505
- Attachments
-
- iWB2_Learner_Zoom3.2 modded.zip
- (11.52 KiB) Downloaded 229 times
Re: Internet Explorer Element Spy (alternative to iWB2 Learner)
, but thanks anyway.rommmcek wrote:I don't feel like much of the author
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 (v1)”
Who is online
Users browsing this forum: robodesign and 79 guests