First of all, I have to mention that recently Discord changed something with slash commands, that made previously working scripts unusable.
Then, when You typed a command, let's call it /cmd, it was possible use space and write something afterwards. Not sure why it was crucial, but now You are unable to type space after a command and this broke my script.
Second thing, I don't get how {ENTER} works in AutoHotkey, because it's definitely not the same thing as pressing enter key, because then You had two press enter double time to send command, also when mentioning someone, hitting enter would autofill the name. AutoHotkey just ignored that and sent message automatically.
If it's not clear what I'm talking about, typing manually @User and then enter, would fill it as @Username, but with AutoHotkey, it just sent @User without autofilling. And the same goes for the slash commands, that has to be picked (first enter), then send (second enter), but AutoHotkey just directly send them.
And that's where's the problem. Because of the change in how commands work, instead of sending slash command /cmd, AutoHotkey send it as TEXT. And therefor my commands don't work.
Also I want to mention that if possible, I want to have one script with multiple hotkeys, as I do now. It looks something like this now: (but with more commands and obviously these ones are just examples)
Code: Select all
NumpadDiv::SendInput @Username
+NumpadDiv::SendInput /cmd {ENTER}
PS I am rather amateur, so please, don't assume I would understand something more advanced. I understand simple logic like NumpadDiv meaning that it's divide on Num keyboard and {ENTER} means enter (though, as I said, it doesn't behave like a enter I would press manually and I don't understand the reason.
Thanks in advance.