Hi, all!
This simple macro toggles active window topmost/normal property, and displays the outcome.
Works just fine, pretty useful for my work...
Macro ToggleActiveWindowZOrder
Trigger W0
But...
OnScreenDisplay F"{win}" only shows a window handle, which is not very informative...
How do I convert window handle to the corresponding window name/class?
It took me 2 days to find out that I'm not able to find the answer on my own...
Thanks for your help!!
This simple macro toggles active window topmost/normal property, and displays the outcome.
Works just fine, pretty useful for my work...
Macro ToggleActiveWindowZOrder
Trigger W0

if(GetWinStyle(win 1)&WS_EX_TOPMOST)
,Zorder win HWND_NOTOPMOST
,OnScreenDisplay F"{win} window is set to be a normal window" 1.5 -50 -50 "Calibri" 0 0xFF0000 2 ;;vbBlue;
,
else
,Zorder win HWND_TOPMOST
,OnScreenDisplay F"{win} window is set to be topmost" 1.5 -50 -50 "Calibri" 0 0xFF 2 ;;vbRed;
But...
OnScreenDisplay F"{win}" only shows a window handle, which is not very informative...
How do I convert window handle to the corresponding window name/class?
It took me 2 days to find out that I'm not able to find the answer on my own...
Thanks for your help!!