1. action that happens only when a Control Panel window is open and active (with the action only affecting that currently active Control Panel window)
2. action that only happens when a standard Windows Explorer file manager window is open and active (again, with the action only affecting that currently active Explorer window).
Seeing as the title of Control Panel windows will vary depending in which control panel section is being viewed at the time, I thought I would use text match rather than title match.
I set title match mode to 2 so that the words 'Control Panel' could be anywhere, but I can't even get it to work on its own, never mind in conjunction with my second rule that only affects Explorer windows.
Code: Select all
SetTitleMatchMode, 2
if WinExist("ahk_class CabinetWClass, , , Control Panel")
Any Idea how I could get these two rule sets to co-exist without affecting each other?