Too much of a hurry

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
blinkenlichten
Posts: 10
Joined: 24 Apr 2016, 02:59

Too much of a hurry

01 May 2016, 23:34

The code-snippet for an optional sequence of keys below works with swift fingers only. Increasing the values for delay and timeout (in the example at 2 and 3 seconds, respectively) does not seem to have any retarding effect.

What did I miss? Best thanks for your suggestions!

Code: Select all

#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
#InstallKeybdHook
#KeyHistory
; #Warn  ; Enable warnings to assist with detecting common errors.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.


#SingleInstance force

If (A_ThisHotKey = "SC023") && (A_PriorHotkey = "SC014") && (A_TimeSincePriorHotkey < 2000) 
	Send {U+1C0B}

If (A_ThisHotKey = "SC014") {
	KeyWait, % SC023, D T3
	If (!ErrorLevel){
	Return
	}
}
User avatar
Xtra
Posts: 2750
Joined: 02 Oct 2015, 12:15

Re: Too much of a hurry

02 May 2016, 04:22

Code: Select all

KeyWait, % SC023, D T3
remove the %

Code: Select all

KeyWait, SC023, D T3
Try it like that.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: ntepa and 241 guests