Input ignore SendInput Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
User avatar
mikeyww
Posts: 26883
Joined: 09 Sep 2014, 18:38

Input ignore SendInput

Post by mikeyww » 29 Sep 2022, 12:57

[Moderator's note: Topic moved from Bug Reports.]

Per Input:
However, the SendInput and SendPlay methods are always ignored
Is it really true? In the following script, SendInput does not seem to be ignored.

Code: Select all

#Persistent
SetTimer, Go, -200
SoundBeep, 1500
Input, key, L1
MsgBox, #%key%#
Return
Go:
SendInput i123
Return

safetycar
Posts: 435
Joined: 12 Aug 2017, 04:27

Re: Input ignore SendInput  Topic is solved

Post by safetycar » 29 Sep 2022, 13:19

Do you have other scripts running? Because this happens quite often: https://www.autohotkey.com/docs/commands/Send.htm#SendInputUnavail
I always use SendEvent because I can't trust SendInput.
(To be exact, SendEvent using the revert settings that are described in the same link.)

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

Re: Input ignore SendInput

Post by mikeyww » 29 Sep 2022, 14:55

safetycar, you were right; I did not think of the potential for the reversion. Thanks! Solved.

Post Reply

Return to “Ask for Help (v1)”