
There are numerous ways to emulate a mouse-click. SetTitleMatchMode, 3 Match the titlebar of the Window exactly most restrictive but fewer false-matches SetTitleMatchMode, 2 Match any part of the titlebar easiest but most false-matches

Have you confirmed that you are accessing the correct window? Does the program’s titlebar actually say exactly Championship Manager 01/02? Try a test with a simple script to verify: #IfWinActive, Championship Manager 01/02īy default, you need to match the text of the target window’s titlebar exactly, but you can use a different matching mode: SetTitleMatchMode, 1 Match the start of the Window’s titlebar easier but more false-matches In your case, I would recommend the # version of IfWinActive it makes it so that the hotkeys only exist for the target window and simplifies the code. You can use different commands to achieve the app-specific behavior you want.

Coordinates are relative to the active window by default, but you can specifically set it as well.
