Page 4 of 4

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

Posted: 29 Dec 2018, 19:44
by burque505
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 2544 times

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

Posted: 07 Apr 2019, 18:19
by rommmcek
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.

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

Posted: 07 Apr 2019, 18:41
by burque505
@rommmcek , that's nice, thank you! I tested them on all the scripts, no crashes.

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

Posted: 07 Apr 2019, 19:14
by rommmcek
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.

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

Posted: 08 Apr 2019, 15:14
by burque505
Hi, I tried all those jeeswg scripts with v3.2, no crash there either. :)

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

Posted: 08 Apr 2019, 16:02
by rommmcek
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.

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

Posted: 08 Apr 2019, 16:10
by burque505
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?

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

Posted: 09 Apr 2019, 11:15
by rommmcek
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.