[Date Prev][Date Next][Subject Prev][Subject Next][ Date Index][ Subject Index]

Re: OT -- Autokey



Carl,


Yes, sorry, I meant AutoHotkey.   


And many thanks for that routine, it works exactly as hoped.



From: CLD
To: John Paines
Cc: xywrite
Sent: Sunday, June 25, 2017 9:06 PM
Subject: Re: OT -- Autokey

John,
I assume that you mean AutoHotkey, since Autokey is a Linux thing. Ignore thIs reply if I'm wrong. Otherwise, try this:
SendInput {x}
Loop
{
  Sleep, 100
  GetKeyState, state, Up, P
  If state = U
    Break
  SendInput {Up}
}
Return
Adjust the Sleep value up or down to make the repeat rate slower or faster.
--
Carl
Sent from my QTAQZ3 mobile device
On Jun 25, 2017 3:19 PM, John Paines wrote:
I'm looking for a way to create a hotkey in Autokey which performs a unique action the first time it's struck, but reverts to it's original function until it's released.   Example:  holding down the "up" arrow key sends "z" + "up" to the host program. but the 2nd and all subsequent repetitions are  "up" (alone), until the key released.  

Seems a stretch, but possible?   Many thanks from this Autokey tyro.