Pressing 2 Keys At Precisely The Same Time Problem

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
abcjme
Posts: 65
Joined: 08 Mar 2018, 10:48

Pressing 2 Keys At Precisely The Same Time Problem

03 Nov 2018, 08:07

I have the following:

$*space::send {ctrl downR}
$*space up::
send {ctrl up}
if a_priorkey = space
send {space}
return

$\::v
$^\::send _


- In rare cases, when typing really fast, I accidentally press Space + \ at practically the exact same time.
- Instead of outputting _, it'll perform a paste function (Control + v).

Is there a way to avoid this problem?
Last edited by abcjme on 09 Nov 2018, 10:39, edited 2 times in total.
swagfag
Posts: 6222
Joined: 11 Jan 2017, 17:59

Re: Pressing 2 Keys At Precisely The Same Time Problem

08 Nov 2018, 04:52

i cant reproduce this problem using only the script provided. if that isnt ur entire script the issue might lie elsewhere. anyway, try Send v instead of a remapping
abcjme
Posts: 65
Joined: 08 Mar 2018, 10:48

Re: Pressing 2 Keys At Precisely The Same Time Problem

09 Nov 2018, 10:35

swagfag wrote:
08 Nov 2018, 04:52
i cant reproduce this problem using only the script provided. if that isnt ur entire script the issue might lie elsewhere. anyway, try Send v instead of a remapping
Thanks! "Send" worked when it was the only operation. However, it still has the same error when I add "if a_priorkey". Is there a work-around to this?

; no error
$*lctrl::send {ctrl downR}
$*lctrl up::send {ctrl up}

;error
$*space::send {ctrl downR}
$*space up::
send {ctrl up}
if a_priorkey = space
send {space}
return

;paste (ctrl + v) occurs if space and \ are pressed at practically the same time.
$\::v
$^\::send _
abcjme
Posts: 65
Joined: 08 Mar 2018, 10:48

Re: Pressing 2 Keys At Precisely The Same Time Problem

10 Nov 2018, 08:38

I solved it.

Changing this:
$\::v

to this:
$\::send v

stopped the problem.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: macromint, peter_ahk, Spawnova, wineguy and 262 guests