Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / how can i check to see if my main window has been minimized?

Author
Message
that dude
21
Years of Service
User Offline
Joined: 1st Jan 2004
Location: USA
Posted: 16th Nov 2004 11:36
i have a screensaver and i want it to end everytime it is minimized. how can i check to see if it has been minimized?

http://www.nuclearglory.com/?u=fearik = sweet as hell collision system. easy on that leather thing in your back pocket too.
the left side of my head isn't bigger, the right side is just smaller
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 16th Nov 2004 18:44
Why are you running a screen-saver in Windowed Mode?
Compile it in Full-Screen Exclusive mode, and use something like;


Jess.


Team EOD :: Programmer/All-Round Nice Guy
Aust. Convention!
Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 16th Nov 2004 20:22
The problem with fullscreen exclusive is it takes "ages" to swap res, etc. Windowed mode is much faster...

Mobiius
Valued Member
22
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 16th Nov 2004 21:44
the command is:
'screen invalid()'

that will tell you if the window has been switch out, then back in.

1800+ XP - GeforceFX 5600 - 256MbDDR - 60Gb Hdd - XP Pro
that dude
21
Years of Service
User Offline
Joined: 1st Jan 2004
Location: USA
Posted: 16th Nov 2004 23:54 Edited at: 16th Nov 2004 23:57
no matter what mode i run it in, nortan antivirus minimizes the screensaver. i want it to close so that the screensaver can wait a minute and then come back on over the popup screen. Whenever i put in these commands:

I get a windows screen with an error report ready to be sent off to wherever they send error reports..

http://www.nuclearglory.com/?u=fearik = sweet as hell collision system. easy on that leather thing in your back pocket too.
the left side of my head isn't bigger, the right side is just smaller
Mobiius
Valued Member
22
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 17th Nov 2004 01:23
Hmmm.

1800+ XP - GeforceFX 5600 - 256MbDDR - 60Gb Hdd - XP Pro
that dude
21
Years of Service
User Offline
Joined: 1st Jan 2004
Location: USA
Posted: 17th Nov 2004 07:47
btw cool vid thing.

http://www.nuclearglory.com/?u=fearik = sweet as hell collision system. easy on that leather thing in your back pocket too.
the left side of my head isn't bigger, the right side is just smaller
that dude
21
Years of Service
User Offline
Joined: 1st Jan 2004
Location: USA
Posted: 17th Nov 2004 12:06
does anyone know of a dll for checking for something like that? and what exactly does 'switched out and then back in' mean?

http://www.nuclearglory.com/?u=fearik = sweet as hell collision system. easy on that leather thing in your back pocket too.
the left side of my head isn't bigger, the right side is just smaller
Mobiius
Valued Member
22
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 18th Nov 2004 10:51
switched out = minimised
switched back = restored.

1800+ XP - GeforceFX 5600 - 256MbDDR - 60Gb Hdd - XP Pro
that dude
21
Years of Service
User Offline
Joined: 1st Jan 2004
Location: USA
Posted: 18th Nov 2004 20:09
will it still return a one if the window is just minimized and never restored?

http://www.nuclearglory.com/?u=fearik = sweet as hell collision system. easy on that leather thing in your back pocket too.
the left side of my head isn't bigger, the right side is just smaller
Mobiius
Valued Member
22
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 19th Nov 2004 01:13
not sure, never used the command at all!

1800+ XP - GeforceFX 5600 - 256MbDDR - 60Gb Hdd - XP Pro
IanG
20
Years of Service
User Offline
Joined: 25th Sep 2004
Location: Cyberspace
Posted: 19th Nov 2004 01:21
Quote: "nortan antivirus minimizes the screensaver"


never does that here

Used to be Phoenix_insane registered in september 2003 despite what the date says to the left <--
PC - amd athlon 2.0ghz, 512mb, GeForce FX 5200 128mb, 200gb, xp pro sp2
that dude
21
Years of Service
User Offline
Joined: 1st Jan 2004
Location: USA
Posted: 19th Nov 2004 04:43
it alwayse does that to mine. so do any windows updates that pop up. pretty much anything that pops up iether minimizes my screensaver or comes in front of it.

http://www.nuclearglory.com/?u=fearik = sweet as hell collision system. easy on that leather thing in your back pocket too.
the left side of my head isn't bigger, the right side is just smaller
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 19th Nov 2004 07:07 Edited at: 19th Nov 2004 07:10
dude,

Here, try this



Hope that works for you

Jess.


Team EOD :: Programmer/All-Round Nice Guy
Aust. Convention!
that dude
21
Years of Service
User Offline
Joined: 1st Jan 2004
Location: USA
Posted: 20th Nov 2004 12:19
that is cool, however i cant seem to get it to work... the program just minimizes like usual. am i doing something wrong? was i supposed to change something in that code snippet you gave me jess? i dont us dll command set, well, ever

http://www.nuclearglory.com/?u=fearik = sweet as hell collision system. easy on that leather thing in your back pocket too.
the left side of my head isn't bigger, the right side is just smaller
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 20th Nov 2004 19:14
Sorry, I didn't test it before posting it.

You need to change that part that goes in the loop to this;



You obviously can't have DLL calls as part of a conditional operation.

Oh well.

Jess.


Team EOD :: Programmer/All-Round Nice Guy
Aust. Convention!
that dude
21
Years of Service
User Offline
Joined: 1st Jan 2004
Location: USA
Posted: 21st Nov 2004 05:01
still doesnt seem to be working

http://www.nuclearglory.com/?u=fearik = sweet as hell collision system. easy on that leather thing in your back pocket too.
the left side of my head isn't bigger, the right side is just smaller
Neofish
21
Years of Service
User Offline
Joined: 7th Apr 2004
Location: A swimming pool of coke
Posted: 21st Nov 2004 07:23
This works for me:



Maybe you just forgot to loop it

[center]int N30F15H,a=1; do { N30F15H++; } while (a==1);
[center]
that dude
21
Years of Service
User Offline
Joined: 1st Jan 2004
Location: USA
Posted: 21st Nov 2004 08:22
still doesnt work. i think its rite. its in full exc. mode.

http://www.nuclearglory.com/?u=fearik = sweet as hell collision system. easy on that leather thing in your back pocket too.
the left side of my head isn't bigger, the right side is just smaller
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 22nd Nov 2004 11:28
that dude,

Are you sure that the window isn't just being put to the background, and not minimized? Because there is a massive difference.

Try this one;


That just checks the current foreground window against the DBP window, and if they're not the same ( ie, the DBP window isn't the foreground ) then it ends.

Jess.


Team EOD :: Programmer/All-Round Nice Guy
Aust. Convention!

Login to post a reply

Server time is: 2025-06-10 05:32:43
Your offset time is: 2025-06-10 05:32:43