Jump to content
Sign in to follow this  
NELyon

ControlClick not working

Recommended Posts

NELyon

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
SmOke_N

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"?

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.

Share this post


Link to post
Share on other sites
NELyon

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
exodius

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.