Internet Explorer Element Spy (alternative to iWB2 Learner)

Post a reply


In an effort to prevent automatic submissions, we require that you type the text displayed into the field underneath.
Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :| :mrgreen: :geek: :ugeek: :arrow: :angel: :clap: :crazy: :eh: :lolno: :problem: :shh: :shifty: :sick: :silent: :think: :thumbup: :thumbdown: :salute: :wave: :wtf: :yawn: :facepalm: :bravo: :dance: :beard: :morebeard: :xmas: :HeHe: :trollface: :cookie: :rainbow: :monkeysee: :monkeysay: :happybday: :headwall: :offtopic: :superhappy: :terms: :beer:
View more smilies

BBCode is ON
[img] is OFF
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Internet Explorer Element Spy (alternative to iWB2 Learner)

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

Post by rommmcek » 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 21 times

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

Post by Joe Glines » 02 Apr 2017, 16:54

Cool! :) Thanks @rommcek!

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

Post by rommmcek » 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.

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

Post by Joe Glines » 30 Mar 2017, 08:57

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

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

Post by sinkfaze » 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 621 times

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

Post by Joe Glines » 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?

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

Post by rommmcek » 28 Mar 2017, 00:34

Thanks to jeeswg now we have it working without visible control!
Edit: Below is a new version respecting DPIScale!

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

Post by Joe Glines » 17 Mar 2017, 06:30

Wow! That seems to work perfectly! :)

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

Post by rommmcek » 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 80 times

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

Post by Joe Glines » 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!

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

Post by rommmcek » 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!

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

Post by rommmcek » 12 Mar 2017, 06:09

Important: IExporer window should be maximized!

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

Post by rommmcek » 11 Mar 2017, 18:08

Here is test code:

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

Edit: GetZoomLevel2 on last edited post should be easier!

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

Post by Joe Glines » 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!!!

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

Post by rommmcek » 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!

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

Post by Joe Glines » 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]GeSHi © Codebox Plus

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

Post by ahkDustVorteX » 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!

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

Post by sancarn » 24 Feb 2017, 03:51

You might want to add:

Code: [Select all]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]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]GeSHi © Codebox Plus

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

Post by Joe Glines » 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]GeSHi © Codebox Plus

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

Post by ahkDustVorteX » 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,

Top