Sign in to follow this  
Followers 0
NELyon

ControlClick not working

4 posts in this topic

WinWaitActive("Program Manager")
ControlClick("Program Manager","America Online", 1 )

This should wait untill my desktop is active, and then click on America Online, right? It isn't though. any idea what's wrong? It wait's untill me desktop is active, but then it justs terminates itself.

Share this post


Link to post
Share on other sites



WinWaitActive("Program Manager")
ControlClick("Program Manager","America Online", 1 )

This should wait untill my desktop is active, and then click on America Online, right? It isn't though. any idea what's wrong? It wait's untill me desktop is active, but then it justs terminates itself.

Is america online an application that is open, or an icon on your desktop? If it is an icon, then you wouldn't use ControlClick() you would use Run.... where did you get the "1"?

[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

#3 ·  Posted (edited)

America Online is an icon so i should just use run instead? i'll try that.

PS: i thought the 1 was the control ID.

EDIT: I thought i would ask this question here instead of making a new post about it. How would i go about automaticly selecting something from a listbox NOT created by autoit? I know i am asking alot of questions.

Edited by codemyster

Share this post


Link to post
Share on other sites

I think you'd be interested in

ControlCommand ( "title", "text", controlID, "SelectString", 'string' )

or one of the other parameters for ControlCommand (in the helpfile)

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