Internet Explorer Element Spy (alternative to iWB2 Learner)

Post your working scripts, libraries and tools for AHK v1.1 and older
burque505
Posts: 1736
Joined: 22 Jan 2017, 19:37

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

29 Dec 2018, 19:44

Interesting! I'm only getting kind of a start, not sure how to translate that javascript call to AHK yet, but some luck, see below.
I'm working from info at this QuirksMode page and this one.
d-p ratio.gif
d-p ratio.gif (149.56 KiB) Viewed 2507 times
Attachments
ScreenTests.zip
(3.86 KiB) Downloaded 148 times
User avatar
rommmcek
Posts: 1479
Joined: 15 Aug 2014, 15:18

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

07 Apr 2019, 18:19

In the last time I experienced iWB2_Learner to crash on certain elements of certain sites.
After jeeswg released his html test scripts some of which make iWB2_Learner crash too, I made simple changes to prevent this.
Attachments
iWB2_Learner_Zoom3.3_b505_6.ahk
(35.52 KiB) Downloaded 242 times
burque505
Posts: 1736
Joined: 22 Jan 2017, 19:37

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

07 Apr 2019, 18:41

@rommmcek , that's nice, thank you! I tested them on all the scripts, no crashes.
User avatar
rommmcek
Posts: 1479
Joined: 15 Aug 2014, 15:18

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

07 Apr 2019, 19:14

What about v3.2?
Edit: At first I didn't remember what were those problematic sites (causing crashes), but now I think they are Google sites around that annoying "Download Google Chrome" banner. v3.3 is doing fine while previous versions can crash.
burque505
Posts: 1736
Joined: 22 Jan 2017, 19:37

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

08 Apr 2019, 15:14

Hi, I tried all those jeeswg scripts with v3.2, no crash there either. :)
User avatar
rommmcek
Posts: 1479
Joined: 15 Aug 2014, 15:18

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

08 Apr 2019, 16:02

For me NestedFramesExample 2 and NestedFramesExample 3 are causing v3.2 to crash when I with the mouse cursor slowly cross from red region to yellow (or vice versa) evaluating elements.
Quick cross doesn't cause harm.
burque505
Posts: 1736
Joined: 22 Jan 2017, 19:37

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

08 Apr 2019, 16:10

Ahah! I noticed something that may be similar with both versions - sometimes you have to go back and click on the crosshairs again to capture. Is that the crash you're referring to?
User avatar
rommmcek
Posts: 1479
Joined: 15 Aug 2014, 15:18

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

09 Apr 2019, 11:15

No. What are you referring to is (benign) incompatibility of iWb2_Learner with modern html scripts, I guess.
To reenable capture you can merely go to some other element (in jeeswg's example on element with text).

The crash I experience when (very) slowly crossing red and yellow border (in exemp. 2 and 3) is obviously (malign) incompatibility and throws error:
iWB2_Learner_Zoom3.2_b505_6.ahk wrote:
Error: Invalid option.

Specifically: X Y75 W4 H

Line#
709: }
710: {
711: if InStr( sides, "T" )
712: Gui,96:Show,"NA X" x1-2 " Y" y1-0 " W" x2-x1+6 " H" 4,outline1
713: Else
713: Gui,96: Hide
714: if InStr( sides, "R" )
---> 715: Gui,97:Show,"NA X" x2 " Y" y1 " W" 4 " H" y2-y1+4,outline2
716: Else
716: Gui,97: Hide
717: if InStr( sides, "B" )
718: Gui,98:Show,"NA X" x1-2 " Y" y2 " W" x2-x1+6 " H" 4,outline3
719: Else
719: Gui,98: Hide
720: if InStr( sides, "L" )

The current thread will exit.
In this case iWb2_Learner is unable to retrieve coordinats of the bottom-right element corner. That's why the crash and my simple fix.

Return to “Scripts and Functions (v1)”

Who is online

Users browsing this forum: bastage, Chunjee and 66 guests