Sign in to follow this  
Followers 0
bobrianto

ControlClick

7 posts in this topic

#1 ·  Posted (edited)

hi...

when i click certain link on the web, it load the page with window alert. for example,

title: ms ie

text: you have blablabla

button: ok

i checked with autinfo tool, and the button return classname "Button1"

using this

ControlClick("Microsoft Internet Explorer", "You have?", "Button1")

however the window won't respond whether the parent ie window focused or not. the script hangs there waiting for the button to be clicked.

i tried controlfocus before controlclick and it still doesn't work.

is there any other way to do this?

if there is already thread about this, please paste the links. thanx in advance.

Edited by bobrianto

Share this post


Link to post
Share on other sites



For automating IE look at _IE* functions in the help file....


[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

thanx for the reply. however, afaik (still new) ie.au3 only handle with webpage itself(???)

however, what i tried to click is IE child(msgbox) window. i dont know if ie.au3 can handle this type of operation. If possible, can you please tell me the function?

Share this post


Link to post
Share on other sites

thanx for the reply. however, afaik (still new) ie.au3 only handle with webpage itself(???)

however, what i tried to click is IE child(msgbox) window. i dont know if ie.au3 can handle this type of operation. If possible, can you please tell me the function?

Haven't a clue, haven't used it myself, have you bothered to go through the functions themselves? And IE.au3 is not as new as you make it out to be, it's been around for some time.

Also with your control click, again, I don't use internet explorer so I don't know, are you using the text of the window in the text box or the text of the button?


[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

title: ms ie <> Microsoft Internet Explorer

text: you have blablabla <> You have?

What is the correct text? :)

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

Ah, sorry.

title: Microsoft Internet Explorer

text: You have gain 1 strength

button: Ok

after click ok only then the script can continue.

@smoke : i mean i am new =p not the udf

Edited by bobrianto

Share this post


Link to post
Share on other sites

So, this looks better

ControlClick("Microsoft Internet Explorer", "You have", "Button1")

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