King Posted May 22, 2006 Share Posted May 22, 2006 I was wanting to make a code with somthing that will hold "SHIFT" down for 30 seconds then let go for 1 second and then repeat. Unfortunatly i am a rookie at scripting and would be very apreciative if anyone would help me. I have a peice of a script below that i was trying to use... but dosn't work very well and is in no relation to anything i need. I would like to keep the HotKeySet the same though if at all possible. Thanks to all that help or even try to, in advance! 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(30000) Send("{SHIFT}") WEnd EndFunc Func End() Exit EndFunc Link to comment Share on other sites More sharing options...
bucky002 Posted May 22, 2006 Share Posted May 22, 2006 (edited) Hey, Check out in the help file click appendix then sendkey list. That's where a lot of usefull stuff is. 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 Send("{SHIFTDOWN}") Sleep(30000) Send("{SHIFTUP}") Sleep(900) WEnd EndFunc Func End() Exit EndFunc Edited May 22, 2006 by bucky002 Link to comment Share on other sites More sharing options...
King Posted May 22, 2006 Author Share Posted May 22, 2006 TY works great and i will keep that in mind. 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