Trying to use ControlClick

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
phindex
Posts: 1
Joined: 07 Sep 2018, 02:12

Trying to use ControlClick

07 Sep 2018, 02:17

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.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: norot41087 and 121 guests