While its here, I cant seem to get it so I can use less specific hotkeys, and use more variables...to make it more...well...variable. Haha. If anyone has a go at it, thatd be appreciated.
Lastly, I made some simple and complex hotstings for coding. Separators and shortcuts and such (THAT WHOLE THING DOWN THERE IS A HOTSTRING) so if ya want, reply ill send the script.
Enjoy your day.
Code: Select all
;‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾\ .════════════════════════════════════════╗
Timer: ; ; - - triple Tap + Hold - BLOCK 1 - - ║
{ ; ; This is the block that starts ║
If !%A_ThisHotkey%key ; the count forall Hotkeys. ║
SetTimer, %A_ThisHotkey%key, -400 ; Make sure it is placed above ║
%A_ThisHotkey%key++ ; Block 2 & that the prefix is changed ║
Return ; to match the key's Name, as only 1 ║
} ; may Exist. instance of this lable ║
;______________________________________/ `════════════════════════════════════════╝
q:: gosub timer
;‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾\
qkey: ; ╔══════════════════╗
If GetKeyState("q","P") and %A_ThisLabel%=1 ;>----------║ Hold Action ║
msgbox 4 ; ╚══════════════════╝
; - - - - - - - - - - - - - - +
Else If %A_ThisLabel% = 3 ; ╔══════════════════╗
msgbox 3 ;>----------║ 3X Press Action ║
; - - - - - - - - - - - - - - + ╚══════════════════╝
Else If %A_ThisLabel% = 2 ; ╔══════════════════╗
msgbox 2 ;>----------║ 2X Press Action ║
; - - - - - - - - - - - - - - + ╚══════════════════╝
Else If %A_ThisLabel% = 1 ; ╔══════════════════╗
msgbox 1 ;>----------║ 1X Press Action ║
; - - - - - - - - - - - - - - + ╚══════════════════╝
%A_ThisLabel%=0 ;
return ;
;___________________________________________/
[Mod edit: Provisional topic name added.]