After some investigation. I have learnt that the temporary menu bar panels don't have a window title but all the panels have a window title:
For example Menubar > Edit Panel :
Code: Select all
;ahk_class 742DEA58-ED6B-4402-BC11-20DFC6D08040-6571DDC4-B3AA-45e4-9D35-57C0C1E90AD5
;ahk_exe CLIPStudioPaint.exe
Code: Select all
; Layer
; ahk_class 742DEA58-ED6B-4402-BC11-20DFC6D08040-6571DDC4-B3AA-45e4-9D35-57C0C1E90AD5
; ahk_exe CLIPStudioPaint.exe
Code: Select all
Space::
WinWaitActive, ahk_class 742DEA58-ED6B-4402-BC11-20DFC6D08040-6571DDC4-B3AA-45e4-9D35-57C0C1E90AD5
MsgBox, Found
I would like it to only trigger if a menu bar window is found, is this possible?
Thanks.