|
-
Jun 30th, 2005, 11:22 AM
#1
Thread Starter
Member
Run after standby
Hi all,
In my program I am able to put the computer into standby mode. However when I do this, the computer stops media player, and also resets my relay output card.
I can set the relay card again, and media player I can send keystrokes, but obviously I only want to do this after the computer has come out of standby.
What would be the best way of checking if the computer has been in standby then come out again.
Cheers,
Tim.
-
Jun 30th, 2005, 11:47 AM
#2
Fanatic Member
Re: Run after standby
Maybe you should look into the SystemEvents.PowerModeChanged event
http://msdn.microsoft.com/library/de...angedtopic.asp
"so just keep in mind that fantasy is not the same as realtiy and make sure u remember that wii sports may be fun but u cant count on it as exercise ok cool bye" - HungarianHuman
-
Jun 30th, 2005, 05:26 PM
#3
Thread Starter
Member
Re: Run after standby
Awesome I will look into that!
Also how can I make Windows Media Player go into fullscreen visualization mode from my program?
Thanks!
Tim.
-
Jun 30th, 2005, 05:30 PM
#4
Fanatic Member
Re: Run after standby
Well you say you are sending keystrokes to WMP, there must be a key-combination that makes it go fullscreen.
"so just keep in mind that fantasy is not the same as realtiy and make sure u remember that wii sports may be fun but u cant count on it as exercise ok cool bye" - HungarianHuman
-
Jul 1st, 2005, 10:51 AM
#5
Thread Starter
Member
Re: Run after standby
Hmm well I'm just sending generic media button keys using keybd_event.. emulates pressing next/stop/pause/play/mute etc..
Any ideas?
I think what I'll do is put a timer in for however long i need it to, once that timer runs out it sends the play command again.. hopefully the computer will have shut off by then.
What about makin media player think that I have pressed a menu item inside itself.. do I use spy++ or something to find the handle then see if its always the same then do something with that??
Cheers all,
Tim.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|