@RhoSigma
Hi Rho,
I've noticed that behavior with _SCREENY and _SCREENX, before. What I use to detected min without Win32 API is the _SCREENICON function. While _SCREENICON minimizes the window (Thanks for that, Steve!) the function lets you know if the window is on the desktop or minimized. 0 = On desktop, -1 = minimized; hwever, I was surprised it would error out with _SCREENHIDE. Not work, sure, but I don't think it should throw an error, but probably a lot of other statements might error out with _SCREENHIDE, too; but _SCREENY and SCREEN X do not error out, they just report the same positions as before the screen gets hidden.
Without _SCREENHIDE..
I wish we could use NOT _SCREENICON to restore it! Oh well. That can also be accomplished for Windows usersĀ only with Win32 API.
I don't think I've come across any universal way, other than Win32 API, to restore a minimized app; and that's one we sure don't want to use _SCREENCLICK for.
Pete
Hi Rho,
I've noticed that behavior with _SCREENY and _SCREENX, before. What I use to detected min without Win32 API is the _SCREENICON function. While _SCREENICON minimizes the window (Thanks for that, Steve!) the function lets you know if the window is on the desktop or minimized. 0 = On desktop, -1 = minimized; hwever, I was surprised it would error out with _SCREENHIDE. Not work, sure, but I don't think it should throw an error, but probably a lot of other statements might error out with _SCREENHIDE, too; but _SCREENY and SCREEN X do not error out, they just report the same positions as before the screen gets hidden.
Without _SCREENHIDE..
Code: (Select All)
_DELAY 2 ' Open window for 2 seconds.
PRINT _SCREENICON
_SCREENICON ' Minimize window.
PRINT _SCREENICON
_DELAY 2
I wish we could use NOT _SCREENICON to restore it! Oh well. That can also be accomplished for Windows usersĀ only with Win32 API.
I don't think I've come across any universal way, other than Win32 API, to restore a minimized app; and that's one we sure don't want to use _SCREENCLICK for.
Pete