Jump to content
Sign in to follow this  

help with controlclick

Recommended Posts


ok... so.... I'm trying to make a script that logs on to AIM for me.

for what i have:

Run("C:\Program Files\AIM+\AIM+.exe")
WinWaitActive("Sign On")
ControlClick("Sign On", "<New User>" , 1001)
ControlClick("Sign On", "&Sign On" , 2 )
WinWaitActive("AOL(R) Instant Messenger(TM)")
WinClose("AOL(R) Instant Messenger(TM)")

The **"s are my user name :lmao:

for some reason it wont click on the button

it wont click the &Sign On button

Share this post

Link to post
Share on other sites

sometimes a control needs focus... try ControlFocus before the ControlClick... and sometimes a programmer will reuse the controlID... try the ClassnameNN or the text of the control...



ok thanks i will try that out now

Edit: how dumb of me i could have just used {ENTER} or !s :lmao: for future reference where do i put the classnameNN if i were to use controlclick

Edited by kapowdude

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.