bf2forlife Posted April 30, 2008 Posted April 30, 2008 Like title says, how to move mouse randomly in: left=129, top=188, right=765, bottom=503 radius?
James Posted April 30, 2008 Posted April 30, 2008 Random() MouseMove() Why? Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ
bf2forlife Posted April 30, 2008 Author Posted April 30, 2008 (edited) like this? HotKeySet("{F5}", "_mousemove") HotKeySet("{F7}","_stop") Func _mousemove() While 1 $mouse=random() MouseMove($mouse, $mouse, 10) WEnd EndFunc Func _stop() While 1 Sleep(100) WEnd EndFunc While 1 sleep(10) WEnd But how i can put radius, mouse keeps moving in the top left corner of the screen.. Can any1 fix this? Edited April 30, 2008 by bf2forlife
James Posted April 30, 2008 Posted April 30, 2008 Because the function Random() requires parameters. Take a look at the helpfile. Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ
flip209 Posted April 30, 2008 Posted April 30, 2008 $x = Random(0,@desktopwidth) $y = Random(0,@dsktopheight) Mousemove($x, $y) " I haven't failed. I've just found 10,000 ways that won't work." Thomas Edison "You cannot help men permanently by doing for them what they could and should do for themselves." Abraham Lincoln
bf2forlife Posted April 30, 2008 Author Posted April 30, 2008 (edited) Thanks! Edited April 30, 2008 by bf2forlife
nonplayablecharacter Posted May 18, 2008 Posted May 18, 2008 try CODE$x=random(xmin,xmax) $y=random(ymin,ymax) mousemove($x,$y) You can always count on me for the dumb questions ;)My Scripts:Rikku
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