Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Convert window handle to window name/class
#1
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     Help - how to add the trigger to the macro
 
Code:
Copy      Help
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!!


Messages In This Thread
Convert window handle to window name/class - by linkiddx - 05-10-2025, 05:12 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)