Page 1 of 1

Input, SingleKey, on Win 8 and Win 10.

Posted: 12 Aug 2017, 15:36
by x32
I have the latest AHK on both my computers, a Windows 8 tablet and Windows 10 desktop. This method of detecting a single key for sending shift and a letter works fine on the desktop but does not release the shift on the laptop until it times out.

To be clear,
On both. Click "Shift" then "a" it sends a capitol "A"
Win 10. Immediately switches to "Shift Up".
Win 8. Stay "Shift Down" until the timer runs out.

I've tried using end characters but they don't make any difference.

Questions are:
Any idea why the difference in behavior between the two version of Windows?
Might there be a better way to handle this task?

Code: Select all

#NoEnv  
SendMode Input 
SetWorkingDir %A_ScriptDir% 
#SingleInstance, Force
Gui, +LastFound +AlwaysOnTop +E0x08000000

Gui, Add, Button, x5 y5 w50 h25 gGo, Shift
Gui, Add, Button, x+5 y5 w40 h25 va ga, A
Gui, Add, Text, x5 y+5 w100 h25 vedit1,  Shift Up

Gui, Show, , Input Test
Return

a:
Send, a
Return

Go:
GuiControl, , edit1, Shift Down
Send, {Shift Down}
Input, SingleKey, L1 T3 V,
Send, {Shift Up}
GuiControl, , edit1, Shift Up
Return
Thanks