RCtrl does not work with KeyWait timeout

Report problems with documented functionality
mikagenic
Posts: 93
Joined: 16 Sep 2014, 18:26

RCtrl does not work with KeyWait timeout

27 May 2017, 20:24

(this is a re-posting of https://autohotkey.com/boards/viewtopic ... 64#p150764 which I now think is a bug)

RCtrl is not responding correctly to KeyWait with a timeout

I tried:

Code: Select all

RCtrl::
OutputDebug "here1"
KeyWait, RCtrl, T0.5
If ErrorLevel {
	OutputDebug "longpress"
	; long press code
} else {
	OutputDebug "shortpress"
	; short press code
}
return
Does not work for long press

Short press works fine, and also short and long press work fine if I replace RCtrl with LCtrl or RAlt for example

Tested (with DebugView etc) on multiple machines.
lexikos
Posts: 9583
Joined: 30 Sep 2013, 04:07
Contact:

Re: RCtrl does not work with KeyWait timeout

28 May 2017, 00:52

I can almost guarantee that it's not a bug. In future, please stick to a single topic until you get confirmation from another user.

At least wait longer than 12 minutes (much longer) before double-posting.
just me
Posts: 9453
Joined: 02 Oct 2013, 08:51
Location: Germany

Re: RCtrl does not work with KeyWait timeout

28 May 2017, 04:37

Dbgview.exe wrote:

Code: Select all

[2700] "here1"
[2700] "longpress"
[2700] "here1"
[2700] "shortpress"
[2700] "here1"
[2700] "longpress"
[2700] "here1"
[2700] "longpress"
[2700] "here1"
[2700] "shortpress"

Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 45 guests