@orgin
Thanks for the code. I didnt know this existed.. so I've used it in my Alt Tab Switcher program. Uploaded to os4depot.net already. :)
From the readme:
Thanks to Orgin and Xeron on
www.amigans.net for providing code for detecting
the active screen!
Changes
-------
v1.9
- Previously, opening the Alt Tab Switcher window would jump to the screen
where it was last closed. So if you used the switcher to switch to Screen A,
then used RAmiga+M to get to Screen B, pressing Alt+Tab again would make
Screen A appear and the AltTabSwitcher GUI would appear on that screen.
This has now been fixed!
AltTabSwitcher will now always appear on the CURRENT screen.