jbcarreon123 / MacroDeck2-AHKPlugin

Run or Create and Run AHK files on Macro Deck!
MIT License
3 stars 1 forks source link

AutoHotkey Plugin: Error when sending "\"+String #17

Open jadaCamp opened 2 years ago

jadaCamp commented 2 years ago

Describe the bug After the last update (18.10.2022) of the AutoHotkey Plugin, the "send"-function does not send "\" [backslash] in combination with a string. With the prior version, all sending commands worked properly. I found a workaround by using "send {}left" leads to an outcome of "\left", but this results in enormous changes that have to be done and therefore a lot of time- due to the missing "search and replace"-function in the macro deck editor.

To Reproduce Steps to reproduce the behavior:

  1. Define a new button.
  2. AutoHotkey Plugin--> Write an Run AHKv2 Script
  3. Enter: "Send \left". Save
  4. See error: printing "left" without "\"

Expected behavior Strings with prefix "\" should be sent as defined, e.g. "\left"

Maybe there is a qucik way either to fix the changes made by the last update or to easily modify the AHKv2 scripts from "\" to "{}".

jbcarreon123 commented 1 year ago

Because it processes the script before running it, you need to put \\ (double backslash).