Sign in to follow this  
Followers 0
kapowdude

help with controlclick

2 posts in this topic

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")
Sleep("1000")
ControlClick("Sign On", "<New User>" , 1001)
Send("+{home}")
Send("{del}********")
ControlClick("Sign On", "&Sign On" , 2 )
WinWaitActive("********'s")
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



#2 ·  Posted (edited)

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...

Lar.

<{POST_SNAPBACK}>

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  
Followers 0