05-20-2024, 07:24 PM
Do both programs have to be in the same place on the monitor?
If not, you can change these lines.
und
This means that both programs would be next to each other, but only the one that is set to foreground remains in the foreground and the other one
could then fade into the background.
I don't know what you're trying to do, maybe you could also play around with the command (_SCREENICON).
So that the program that is not in the foreground disappears from the monitor?
If not, you can change these lines.
Code: (Select All)
If 0 = SetWindowPos(hWnd, HWND_TOPMOST, 840, 200, 0, 0, SWP_NOSIZE Or SWP_NOACTIVATE) Then
und
Code: (Select All)
_ScreenClick 880, 240 ' add 40 to x and y to focus on positioned window
This means that both programs would be next to each other, but only the one that is set to foreground remains in the foreground and the other one
could then fade into the background.
I don't know what you're trying to do, maybe you could also play around with the command (_SCREENICON).
So that the program that is not in the foreground disappears from the monitor?