It sure does. Heck, I used to have Ahk scripts for WoW and EQ2 running in full screen. Just assign the task to a hotkey in your script, and launch it before the game.
Some general Ahk tips for games:
- Both PixelSearch and ImageSearch are lightning fast commands. If you're running them in a loop and you don't insert delays, they'll just go full throttle and run hundreds or even thousands of times every second. Hence the performance hit. There's not much point in scanning a game more than 10 times a second, so insert a
Sleep, 100 (delay of 100ms) in your loop and performance should improve.
- Check out the
variation parameter in ImageSearch
- PixelSearch and ImageSearch are extremely efficient, so feel free to implement backup searches. i.e. you can search for slightly different colors or you can search at nearby coordinates.
- Try to keep your ImageSearch images small - about 25x25 pixels max
- Limit the search area, if possible
- You might want to look up the #InstallKeybdHook and #UseHook commands. Usually you won't need them, but some games will take over the keyboard.
- Lemming
Some? wrote:
First, is there anyway to make it work in a full screen game? I'm guessing there isn't, I've done some searching, but not found anything conclusive other than recommendations to run the game in window mode.
Secondly, when I have my search running, which is very simple code that scans around 30 pixels all on the same row over and over, the game is less smooth, but my framerate is unchanged regardless of whether the search is running or not. [...]