Sign in to follow this  
Followers 0
ashley

Controlclick

11 posts in this topic

this should click exisiting user in any runescape world, no matter where the window is...

#include<IE.Au3>
 sleep(3000)
 
 ControlClick("RuneScape - the massive online adventure game by Jagex Ltd", "", "SunAwtCanvas3", "left", 1, 401, 294)

the problem is that it don't lcik anyware...

i think i have it correct it may be wrong...

if you go to

www.runescape.com

then clcik existing user, then select a detail and then on any random world... than run it after 3 secs it sould clcik in the java app on exisiting user...

it dos'nt any ideas?

Share this post


Link to post
Share on other sites



SunAwtCanvas3 is not standard Windows control.

I'm not sure but I think AutoIt's ControlClick (and all other functions) works properly only with standard Windows controls (not custom controls).

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

urm i just made this using autoit's macro recorder

sleep(4000)
Opt("WinTitleMatchMode", 4)
WinWait("AOL 9.0 VR","RuneScape - the massive online adventure game by Jagex Ltd")
ControlClick("AOL 9.0 VR","RuneScape - the massive online adventure game by Jagex Ltd","SunAwtCanvas3", "left", 1, 404, 293)

so it knows what it is.... so how come it dont work.

also it clciks where my mouse is...

Edited by ashley

Share this post


Link to post
Share on other sites

Were you even paying attention, the control you want to click is not standard, which makes ControlClick() unreliable.

Share this post


Link to post
Share on other sites

#8 ·  Posted (edited)

anybody know?

Use MouseClick() instead of ControlClick() for non standard controls.

Be sure to pass apropriate coordinates (absolute/relative).

EDIT: or use SendMessage with apropriate WM_COMMAND

Edited by Zedna

Share this post


Link to post
Share on other sites

Use MouseClick() instead of ControlClick() for non standard controls.

Be sure to pass apropriate coordinates (absolute/relative).

EDIT: or use SendMessage with apropriate WM_COMMAND

mosue clcik wont work as they could of moved the window... this is why i need to find thee java app....

Share this post


Link to post
Share on other sites

whats sendmessage...

Excample please.

Use WinSpector to observe what WM_COMMAND is generated by your button.

Then Send this message programatically to that window.

Use _SendMessage() UDF - see helpfile for details/examples

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