Where should I use "SetTitleMatchMode"? Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
afe
Posts: 615
Joined: 06 Dec 2018, 04:36

Where should I use "SetTitleMatchMode"?

16 Dec 2018, 02:46

Hello,
Where should I use "SetTitleMatchMode" ? Or what is the scope of "SetTitleMatchMode"?


If I put "SetTitleMatchMode, 3" in the first line of code, it will be valid for the entire code until the second "SetTitleMatchMode" appears, such as "SetTitleMatchMode, 1". Is that right?

If "SetTitleMatchMode, 3" is placed inside a function, is it only valid in the modified function, or is it valid for all subsequent code?
CyL0N
Posts: 211
Joined: 27 Sep 2018, 09:58

Re: Where should I use "SetTitleMatchMode"?  Topic is solved

16 Dec 2018, 03:22

From the documentation:
Every newly launched thread (such as a hotkey, custom menu item, or timed subroutine) starts off fresh with the default setting for this command. That default may be changed by using this command in the auto-execute section (top part of the script).

And there is no local scope inside functions.

https://autohotkey.com/docs/commands/Se ... chMode.htm
live ? long & prosper : regards

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: popdeg, Rohwedder, Scr1pter and 246 guests