Jump to content
Sign in to follow this  
King

Holding shift

Recommended Posts

King

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

Share this post


Link to post
Share on other sites
bucky002

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 by bucky002

Share this post


Link to post
Share on other sites
King

TY works great and i will keep that in mind.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×