For a long time I used simple AHK scripts to spam keys for me in WoW before more sophisticated botting tools became available.
I'm in the SWOR Beta just for this weekend, and I'm testing to see if something similar is possible, but as yet, I can't get SWOR to recognise AHK inputs.
As a simple example I might use the following code for one of my Chars in WoW:
#ifWinActive World of Warcraft
{
XButton1::
Loop
{
if not GetKeyState("XButton1", "P")
break
Send 1234
sleep 250
}
return
}
This basically just send a string of 1234 every quarter of a second when I hold down mouse button 5 on my mouse, which then triggers various macros in game in hotkeys bound to 1,2,3,4 and 5.
When I try to do the equivalent in SWOR, it doesn't recognise the input (although the script is definately working - it will still spit out the numbers into notepad or any other app that's open).
This is a known issue, see AutoHotkey FAQ, but I'm no master coder, and it's all a bit greek to me trying to get the alternatives to work.
So far I have tried:
1) Adding a SetKeyDelay command line with various values - Tests into notepad work, SWOR still doesn't recognise inputs
2) Adding a SetKeyDelay command line and using "SendPlay" instead of Send - Does nothing, even into notepad
3) Adding a SetKeyDelay command line and using "SendInput" - Spams non-stop into notepad even when I release the mouse button, SWOR doesn't recognise inputs
4) Adding a SetKeyDelay command line and using "SendRaw" - Tests into notepad work, SWOR still doesn't recognise inputs
5) Tried to work out how ControlSend works too, but I'm baffled.
Hoping someone with a little more coding experience might be able to shed some light.
Thanks in advance.