Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #InstallKeybdHook
- F12::
- Pause, on
- Sleep 3000
- Pause, off
- return
- isInUse = 0
- RepeatPress( key ){
- global isInUse
- loop {
- if not GetKeyState( key, "P" ){
- break
- }
- if not isInUse {
- Send, {%key%}
- }
- sleep 1
- }
- return
- }
- RepeatPressCtrl( key ){
- global isInUse = 1
- loop {
- if not GetKeyState( key, "P" ){
- isInUse = 0
- break
- }
- if GetKeyState( "Ctrl", "P" ){
- Send, ^{%key%}
- }
- sleep 1
- }
- return
- }
- RepeatPressShift( key ){
- global isInUse = 1
- loop {
- if not GetKeyState( key, "P" ){
- isInUse = 0
- break
- }
- if GetKeyState( "Shift", "P" ){
- Send, +{%key%}
- }
- sleep 1
- }
- return
- }
- RepeatPressBlind( key ){
- loop {
- if not GetKeyState( key, "P" ){
- break
- }
- Send, {Blind}{%key%}
- sleep 1
- }
- return
- }
- RepeatPressRedirect( holdKey, sendKey ){
- loop {
- if not GetKeyState( holdKey, "P" ){
- break
- }
- Send, {Blind}{%sendKey%}
- sleep 1
- }
- return
- }
- #IfWinActive World of Warcraft
- *Pause::Suspend
- *1::RepeatPressBlind( "1" )
- *2::RepeatPressBlind( "2" )
- *3::RepeatPressBlind( "3" )
- *4::RepeatPressBlind( "4" )
- *5::RepeatPressBlind( "5" )
- *6::RepeatPressBlind( "6" )
- *f::RepeatPressBlind( "f" )
- *g::RepeatPressBlind( "g" )
- *t::RepeatPressBlind( "t" )
- *y::RepeatPressBlind( "y" )
- *x::RepeatPressBlind( "x" )
- *b::RepeatPressBlind( "b" )
- *c::RepeatPressBlind( "c" )
- *h::RepeatPressBlind( "h" )
- *n::RepeatPressBlind( "n" )
- *s::RepeatPressBlind( "s" )
- *q::RepeatPressBlind( "q" )
- *e::RepeatPressBlind( "e" )
- *r::RepeatPressBlind( "r" )
- *f3::RepeatPressBlind( "f3" )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement