For Pete -- Keeping a window topmost and active
#4
Yep, that's another trick, but _SCREENCLICK has lot of drawbacks. In your example, it hijacks the mouse pointer. I tried to open Notepad from the taskbar, but it wouldn't let me. It also highlighted parts on my open IDE. Now we could return the mouse cursor to the previous position, but that would still interrupt and grab control from the user on a fairly regular basis.

I have thought about using API to send an Alt + F4 and blocking that with a _EXIT routine, but that might not be enough to produce an active window effect, either. Sometimes recursive calls like that just result in an app crash, anyway.

Pete
Reply


Messages In This Thread
RE: For Pete -- Keeping a window topmost and active - by Pete - 11-10-2022, 07:16 AM



Users browsing this thread: 3 Guest(s)