Max in montreal Posted October 29, 2007 Posted October 29, 2007 I have read all the function related stuff in the help files, but am still having problems. can someone please show me a simple example using a function that just moves the mouse. i am not looking for return values or anything like that... just some code, then move the mouse... I am creating an auto it script, and have a few reppetitive things going on that i want the function to do when it is called up... thanks in advance! Max
Monamo Posted October 29, 2007 Posted October 29, 2007 I have read all the function related stuff in the help files, but am still having problems. can someone please show me a simple example using a function that just moves the mouse. i am not looking for return values or anything like that... just some code, then move the mouse... I am creating an auto it script, and have a few reppetitive things going on that i want the function to do when it is called up... thanks in advance! Max Plain and simple sample: MouseMove(@DesktopWidth, 0, 0) Sleep(3000) _MoveABit() Sleep(1500) _MoveABit() Sleep(1500) _MoveABit() Sleep(1500) _MoveABit() Sleep(1500) _MoveABit() Sleep(1500) _MoveABit() Sleep(1500) _MoveABit() Sleep(1500) _MoveABit() Sleep(1500) Func _MoveABit() $MouseLoc = MouseGetPos() MouseMove($MouseLoc[0] - 20, $MouseLoc[1] + 20, 0) EndFunc - MoChr(77)& Chr(97)& Chr(100)& Chr(101)& Chr(32)& Chr(121)& Chr(97)& Chr(32)& Chr(108)& Chr(111)& Chr(111)& Chr(107)-------I've told you 100,000 times not to exaggerate!-------Don't make me hit you with my cigarette hand...-------My scripts:Random Episode Selector, Keyboard MouseMover, CopyPath v2.1, SmartRename for XP,Window Tracer[sup]New![/sup]
Max in montreal Posted October 29, 2007 Author Posted October 29, 2007 Plain and simple sample: MouseMove(@DesktopWidth, 0, 0) Sleep(3000) _MoveABit() Sleep(1500) _MoveABit() Sleep(1500) _MoveABit() Sleep(1500) _MoveABit() Sleep(1500) _MoveABit() Sleep(1500) _MoveABit() Sleep(1500) _MoveABit() Sleep(1500) _MoveABit() Sleep(1500) Func _MoveABit() $MouseLoc = MouseGetPos() MouseMove($MouseLoc[0] - 20, $MouseLoc[1] + 20, 0) EndFunc thats a perfect example, in the help files i was having trouble with the &.... thank you! Max
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