R
R
rockwell3232020-09-25 18:50:21
autohotkey
rockwell323, 2020-09-25 18:50:21

Incorrect input ahk, how to fix?

Here is a small script:

::
Random, rndPosY, 0, -400
Random, rndPosX, 0, 200
MouseClick, Left, rndPosX, rndPosY, 1, 2
BlockInput On
SendInput, {Enter}
SendInput, {Control + A}
SendInput, {Backspace}
Sleep, 10
SendInput, /DND
Sleep, 10
SendInput, {Enter}
BlockInput Off
Exit


Why does it write correctly in the chat of the game every other time? not /DND but \DND or ?DDND /DNd ??
How to make correct input?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
wisgest, 2020-09-25
@wisgest

Perhaps it depends on the Shift key being pressed. Try to check its state and, if it is pressed, add a command to release it at the beginning of the key sequence, and press it back at the end.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question