Code: Select all
WinWait Untitled - Paint
SetControlDelay -1
IfWinExist, Untitled - Paint
{
ControlClick, x400 y400, paint
return
}
This is test code so that I can write a script in order to click a browser window in the background while playing a (non-full-screen) game. This is so I can skip a track on an online music player with a hotkey without having to tab out. Found no way to do it, so I thought I'd write a script. In trying to learn how to use ControlClick I created a very simple example above and am using Paint in order to be able to see if the click goes through. It does not.
Any help is appreciated.