First character missing when sending string Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
daniel
Posts: 17
Joined: 23 May 2016, 22:41

First character missing when sending string

17 Mar 2018, 05:08

Hello, I am pushing down F13 with a hotkey.

Code: Select all

Pause & f::
GetKeyState, state, F13
if state = D
{
	Send {F13 up}
	Sleep, 100
	Progress, 2:off
}
else
{
	Send {F13 down}
	Sleep, 100
	Progress, 2:B1 W200 H28 ZH0 FS11 WS900 x%sWidth% y%sHeight% CTFFFFFF CW191919, F13 is On
}
return
Then I am trying to send "zoinks" when I hit z.

Code: Select all

z::
GetKeyState, state, F13
if state = D
{
	sendinput, zoinks
	keywait, z
}
else
{
	sendinput, z
	keywait, z
}
return
But I only get "oinks". I can't even use my regular z key as long as F13 is down. If I try to send "doinks" it works, just not with "z". Does anyone know why that is? Big thanks.
Rohwedder
Posts: 7627
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: First character missing when sending string  Topic is solved

17 Mar 2018, 06:46

Hallo,
change:
z:: to $z::
or the z::-script to:

Code: Select all

~z::
GetKeyState, state, F13
if state = D
	sendinput, oinks
keywait, z
return

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: No registered users and 344 guests