Sign in to follow this  
Followers 0
Processor

Need explanation with Controls, Instance etc...

5 posts in this topic

I don't know why I'm not able to use control id correctly. (class, instance ...)

for instance this works:

run("notepad")
WinWaitActive("[CLASS:Notepad]")
sleep(1000)
ControlSetText("[CLASS:Notepad]", "", "Edit1", "test")

but this not :

run("C:\Program Files\Internet Explorer\iexplore.exe")
WinWaitActive("[CLASS:IEFrame]")
sleep(2000)
ControlSetText("[CLASS:IEFrame]", "", "ToolbarWindow322", "test")

Why???

this is what Window Info Tool gave to me:

>>>> Window <<<<

Title: La Configuration de sécurité renforcée d'Internet Explorer est activée - Windows Internet Explorer

Class: IEFrame

Position: -4, -4

Size: 1208, 878

Style: 0x17CF0000

ExStyle: 0x00000100

Handle: 0x000502F4

>>>> Control <<<<

Class: ToolbarWindow32

Instance: 2

ClassnameNN: ToolbarWindow322

Name:

Advanced (Class): [CLASS:ToolbarWindow32; INSTANCE:2]

ID:

Text: test

Position: 80, 5

Size: 762, 22

ControlClick Coords: 441, 13

Style: 0x5600B94D

ExStyle: 0x00000080

Handle: 0x000302F6

.

.

.

please help

Processor

Share this post


Link to post
Share on other sites



If you are attempting to change the URL, the _IE functions are a much easier way to do it.


IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window.

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Try

ControlSetText("[CLASS:IEFrame]", "", "[CLASS:ToolbarWindow32; INSTANCE:2]", "test")

This not working

Now I don't know why but the info shown by the info window tool are not good, I used autohotkey to get the info and it showed me that the ClassNN is not ToolbarWindow322 but Edit1.

Using Edit1 the text is sent (even if we can't see it's sent)

Processor

Edited by Processor

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0