This works, the mouse moves to 500,500 and apparently clicks, in desktop but when I put focus on the game window the script stops working.
Code: Select all
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. ; #Warn ; Enable warnings to assist with detecting common errors. SendMode Input ; Recommended for new scripts due to its superior speed and reliability. SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. CoordMode, Mouse, Screen F8:: Click, 500, 500 return
Is there a variable I need to state for the scripts to work in games?
I've had similar problems with key mapper softwares for game controllers: most of them work in desktop but stop working when focus changes to a game. A single such software has worked in every game and that software installed a driver in windows which I assume is required if one wants to have control over games. Autohotkey doesn't install a driver so does it have a chance to work with my game?