Output is different from input with Send and Sendinput

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
ndiaz
Posts: 73
Joined: 10 Jan 2017, 17:05
Contact:

Output is different from input with Send and Sendinput

19 Apr 2019, 10:32

I'm trying to send the following to the Find What field of a Find and Replace dialog box:

Code: Select all

Sendinput ({!})|(\?)|(:)|(;)
Every other time, I get this instead:

(19|(\?)|(:)|(;)

So, whenever I run the script, the string appears correctly the first time, then incorrectly the next time I run the script. What could be causing this?
gregster
Posts: 9111
Joined: 30 Sep 2013, 06:48

Re: Output is different from input with Send and Sendinput

19 Apr 2019, 16:48

Try {text} mode for SendInput:

Code: Select all

Sendinput {text}(!)|(\?)|(:)|(;)
(available in AHK version 1.1.27+)

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: mstrauss2021 and 264 guests