Possible bug with _SCREENICON
#6
@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..
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
Reply


Messages In This Thread
Possible bug with _SCREENICON - by Pete - 12-08-2022, 09:16 PM
RE: Possible bug with _SCREENICON - by SMcNeill - 12-08-2022, 09:32 PM
RE: Possible bug with _SCREENICON - by SMcNeill - 12-08-2022, 09:34 PM
RE: Possible bug with _SCREENICON - by Pete - 12-08-2022, 10:52 PM
RE: Possible bug with _SCREENICON - by RhoSigma - 12-08-2022, 11:25 PM
RE: Possible bug with _SCREENICON - by mnrvovrfc - 12-09-2022, 05:34 AM
RE: Possible bug with _SCREENICON - by Pete - 12-09-2022, 12:45 AM
RE: Possible bug with _SCREENICON - by SMcNeill - 12-09-2022, 01:16 AM



Users browsing this thread: 3 Guest(s)