NELyon Posted June 11, 2006 Share Posted June 11, 2006 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. Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted June 11, 2006 Moderators Share Posted June 11, 2006 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. Link to comment Share on other sites More sharing options...
NELyon Posted June 11, 2006 Author Share Posted June 11, 2006 (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 June 11, 2006 by codemyster Link to comment Share on other sites More sharing options...
exodius Posted June 12, 2006 Share Posted June 12, 2006 I think you'd be interested in ControlCommand ( "title", "text", controlID, "SelectString", 'string' ) or one of the other parameters for ControlCommand (in the helpfile) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now