Jump to content
Sign in to follow this  
ashley

Controlclick

Recommended Posts

ashley

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
ashley

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
JustinReno

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
Zedna

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
ashley

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

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.