AHK Scripts are pressing random keys

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Waterlights
Posts: 2
Joined: 17 Jan 2022, 15:12

AHK Scripts are pressing random keys

Post by Waterlights » 17 Jan 2022, 15:17

I've been trying to figure this out for the past hour, I dont get it! Heres a simple script.

Code: Select all

Pause on
Loop
{
Send {w down}
Sleep 500
Send {w up}
Sleep 500
}
z::Pause
When I run this it also presses "Shift" with w. I tested with an online key strokes tester. Other scripts were pushing 4-5 random alphabet keys. I tried restarting my computer, no avail. What is going on here? Thanks in advance for the help.

User avatar
mikeyww
Posts: 26605
Joined: 09 Sep 2014, 18:38

Re: AHK Scripts are pressing random keys

Post by mikeyww » 17 Jan 2022, 16:08

Close your other scripts before you run this. Test it in Notepad. Check the KeyHistory.

www.png
Key history
www.png (13.02 KiB) Viewed 227 times

Waterlights
Posts: 2
Joined: 17 Jan 2022, 15:12

Re: AHK Scripts are pressing random keys

Post by Waterlights » 17 Jan 2022, 16:33

I restarted my PC again it seems to be fixed. If it happens again I'll use the logger. Thx

Post Reply

Return to “Ask for Help (v1)”