Rohwedder wrote: ↑27 Sep 2022, 02:33
With my German keyboard layout the tilde ~ is only selectable via AltGr. Since my driver for the English keyboard layout is unfortunately faulty regarding the key VK_OEM_3(~ `), (I get the characters from the German keyboard layout ^ °), I have to switch to other characters:
Code: Select all
$q:: ;1.) "q" is pressed DOWN
KeyWait, q ;2.) you HOLD "q" for a given duration
;3.) "q" is RELEASED
If A_TimeSinceThisHotkey < 2000
Send, q ;Send native key
Else ; or
Send, +w ;Send, {Shift}+different key
Return
so far i got
Code: Select all
$`::
KeyWait 1, ` ;2.) you HOLD "q" for a given duration
;3.) "q" is RELEASED
If A_TimeSinceThisHotkey < 2000
Send, ` ;Send native key
Else ; or
Send, ~
Sleep, 2000
Send, Vape On{Enter}
Return
[Mod edit: [code][/code] tags added.]
Thank you for your response again Roh and good afternoon
I need to not repeat the command when i am holding down the key. i need to have all 3 conditions, DOWN,PRESS for X time, and UP to send one (1) command. " Vape On{Enter}
My second script would be DOWN, PRESS for 5 seconds, {script} to Power Off, or in this case Send, Vape Off{Enter}