ashley Posted December 9, 2007 Share Posted December 9, 2007 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? Free icons for your programs Link to comment Share on other sites More sharing options...
Zedna Posted December 9, 2007 Share Posted December 9, 2007 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). Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
ashley Posted December 9, 2007 Author Share Posted December 9, 2007 but is a java window is not made up... Free icons for your programs Link to comment Share on other sites More sharing options...
ashley Posted December 9, 2007 Author Share Posted December 9, 2007 (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 December 9, 2007 by ashley Free icons for your programs Link to comment Share on other sites More sharing options...
JustinReno Posted December 9, 2007 Share Posted December 9, 2007 Were you even paying attention, the control you want to click is not standard, which makes ControlClick() unreliable. Link to comment Share on other sites More sharing options...
ashley Posted December 9, 2007 Author Share Posted December 9, 2007 (edited) so how can i do this without mousemovements Edited December 9, 2007 by ashley Free icons for your programs Link to comment Share on other sites More sharing options...
ashley Posted December 10, 2007 Author Share Posted December 10, 2007 anybody know? Free icons for your programs Link to comment Share on other sites More sharing options...
Zedna Posted December 10, 2007 Share Posted December 10, 2007 (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 December 10, 2007 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
ashley Posted December 10, 2007 Author Share Posted December 10, 2007 Use MouseClick() instead of ControlClick() for non standard controls.Be sure to pass apropriate coordinates (absolute/relative).EDIT: or use SendMessage with apropriate WM_COMMANDmosue clcik wont work as they could of moved the window... this is why i need to find thee java app.... Free icons for your programs Link to comment Share on other sites More sharing options...
ashley Posted December 10, 2007 Author Share Posted December 10, 2007 whats sendmessage... Excample please. Free icons for your programs Link to comment Share on other sites More sharing options...
Zedna Posted December 10, 2007 Share Posted December 10, 2007 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 Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now