King Posted September 22, 2008 Share Posted September 22, 2008 I am pretty scrub at Scriping, I can take a script that somone else has written and change it around, but that it all. I harly use it, but when i do it is so helpful. What i want to do is make a script that will basically do this. Goto postion 437,218 and left click wait 4 seconds. Goto postion 488,445 and left click wait 2 seconds. Goto postion 351,423 and left click wait 2 seconds. Press Left arrow 12 times and wait 2 seconds. Goto 331,29 and left click. wait 2 seconds. Goto 1015,537 and left click wait 2 seconds. And then repeat it over and over. I would liek to use this format so i can press Alt+Ctrl+Z to start it. Thanks in advance, Chris HotKeySet("^!z","Movment");^!z is Ctrl+Alt+'z' to run the Movment HotKeySet("^!x","End");^!x is Ctrl+Alt+'x' to close the Movment While 1 Sleep(100) WEnd Func Movment() While 1 Sleep(120000) Send("{A}") Sleep(140000) Send("{D}") WEnd EndFunc Func End() Exit EndFunc Link to comment Share on other sites More sharing options...
ssubirias3 Posted September 22, 2008 Share Posted September 22, 2008 . . . I can take a script that somone else has written and change it around,Suggestions would be to change around the example scripts in the Help file. Look up MouseMove(), MouseClick(), Send(), and For... Next. That should give you give you more than enough to do what you want. Link to comment Share on other sites More sharing options...
King Posted September 22, 2008 Author Share Posted September 22, 2008 Suggestions would be to change around the example scripts in the Help file. Look up MouseMove(), MouseClick(), Send(), and For... Next. That should give you give you more than enough to do what you want. I will try that thanks. Link to comment Share on other sites More sharing options...
King Posted September 23, 2008 Author Share Posted September 23, 2008 (edited) See last reply. Edited September 23, 2008 by King Link to comment Share on other sites More sharing options...
King Posted September 23, 2008 Author Share Posted September 23, 2008 Ok, I know this is a horrid code. But it is working half way. It does all the clicks and goes exactly where it needs to be. the only thing is, It doesn't send the left arrows. What am I missing? expandcollapse popupHotKeySet("^!z","Movment");^!z is Ctrl+Alt+'z' to run the Movment HotKeySet("^!x","End");^!x is Ctrl+Alt+'x' to close the Movment While 1 Sleep(100) WEnd Func Movment() While 1 MouseMove (437,383) Sleep(250) MouseClick ("Left") sleep(3000) MouseMove (444,417) Sleep(250) MouseClick ("Left") sleep(1000) MouseMove (488,614) Sleep(250) MouseClick ("Left") sleep(3000) MouseMove (308,614) Sleep(1000) MouseClick ("Left") sleep(1000) Send("{Left Arrow}") Sleep(600) Send("{Left Arrow}") Sleep(600) Send("{Left Arrow}") Sleep(600) Send("{Left Arrow}") Sleep(600) Send("{Left Arrow}") Sleep(600) Send("{Left Arrow}") Sleep(600) Send("{Left Arrow}") Sleep(600) Send("{Left Arrow}") Sleep(600) Send("{Left Arrow}") Sleep(600) Send("{Left Arrow}") Sleep(600) Send("{Left Arrow}") Sleep(600) Send("{Left Arrow}") Sleep(600) MouseMove (840,218) Sleep(1000) MouseClick ("Left") sleep(250) MouseMove (504,510) Sleep(1000) MouseClick ("Left") sleep(250) WEnd EndFunc Func End() Exit EndFunc Link to comment Share on other sites More sharing options...
ssubirias3 Posted September 23, 2008 Share Posted September 23, 2008 . . . It doesn't send the left arrows. What am I missing? Send("{Left Arrow}")Read the Help file section on "Send Key List". You'll find your mistake as there's no such thing as "{Left Arrow}". 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