Modifier ghost key

Get help with using AutoHotkey and its commands and hotkeys
User avatar
megnatar
Posts: 83
Joined: 27 Oct 2014, 20:49
GitHub: Megnatar
Location: The Netherlands

Modifier ghost key

21 Jun 2016, 05:33

Hey there

For some reason my autowalk/autorun function is sending modifier key lshift down and up. But none is specified in the script.
There is nothing in the script that comes anything near >+, vk A0 ore sc 02A. Although at first I thought the problem was within
variable AnyKey with the n representing 0 since input parameter for a key can only be one, if I'm not mistaken. But changing the
variable from AnyKey to X renders the same "problem".

It's not really posing a serious problem, I just can't stand it the script does something I don't want it to do and understand.

The script can be found here

Megnatar
User avatar
Nextron
Posts: 1368
Joined: 01 Oct 2013, 08:23
Location: Netherlands OS: Win7 x64 AHK: Unicode x32

Re: Modifier ghost key

21 Jun 2016, 05:58

You're sending a capital W, which is achieved by pressing Shift and w. Make it lowercase should fix it. In addition to that, you may want to use SendInput {Blind}w, so that any modifiers physically pressed will not be released during the send.
User avatar
megnatar
Posts: 83
Joined: 27 Oct 2014, 20:49
GitHub: Megnatar
Location: The Netherlands

Re: Modifier ghost key

21 Jun 2016, 06:15

Okeeee, really it's that simple how obvious :headwall:
thank you !

What did our queen say years past to her husband "hij is een beetje dom"
kinda feel like that now :D

great tip thank you
User avatar
Nextron
Posts: 1368
Joined: 01 Oct 2013, 08:23
Location: Netherlands OS: Win7 x64 AHK: Unicode x32

Re: Modifier ghost key

21 Jun 2016, 10:57

You're welcome fellow countryman. :wave:

Return to “Ask For Help”

Who is online

Users browsing this forum: AHKStudent, scriptor2016 and 236 guests