Controlsend not working for game hotkey but works for game chat Topic is solved

Ask gaming related questions (AHK v1.1 and older)
Damian21

Controlsend not working for game hotkey but works for game chat  Topic is solved

22 Feb 2018, 10:29

Hi,

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

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: No registered users and 45 guests