Fanatick Posted December 23, 2006 Posted December 23, 2006 (edited) Hi i have a error in my script , in the line 18 for the mouse click right , i want the mouse move random in the X and Y and after right click , or the programme continuing to press the right button in mouse because its more pratic than click each time the mouse move , but move the mouse in random X and Y and when i click in "é" the programm stop , and when i click in "&" the programme start / restart . But i prefer the programm press the right click all time and move the mouse . Sry for bad english. and thank for help #include <GUIConstants.au3> HotKeySet ( '&','moveandclick' ) HotKeySet ( 'é','stop' ) $i=0 While 1 Sleep(1000) WEnd Func moveandclick() While 1 #NoTrayIcon If $i=1 Then ExitLoop $x = Random(325,1112) If $i=1 Then ExitLoop $y = Random(290,832) If $i=1 Then ExitLoop MouseMove($x,$y) If $i=1 Then ExitLoop MouseClick($right) sleep(300) If $i=1 Then ExitLoop If $i=1 Then ExitLoop WEnd $i=0 EndFunc Func stop() $i=1 EndFunc Edited December 23, 2006 by Fanatick
Fanatick Posted December 23, 2006 Author Posted December 23, 2006 programm is for diablo2 , i want he do wall bone for me and i play in small window.
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