Jump to content

ControlClick not working


Recommended Posts

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

  • Moderators

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

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...