I am trying to make this background script run in my game but it doesn't work with the game hotkey A, Now the thing is when i open the game chat window i can see that the script is working because it keeps writing A in the chat window. Does anybody experience the same with other games? Is there anything i could try?
Thanks in advance
Code: Select all
if not A_IsAdmin
{
Run *RunAs "%A_ScriptFullPath%" ; Requires v1.0.92.01+
ExitApp
}
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetTitleMatchMode, 2
Loop {
ControlSend,, {a up}, ahk_class Tree Of Savior
sleep 50
ControlSend,, {a down}, ahk_class Tree Of Savior
sleep 50
}
return