-
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. :ehh:
-
Re: Run after standby
Maybe you should look into the SystemEvents.PowerModeChanged event
http://msdn.microsoft.com/library/de...angedtopic.asp
-
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.
-
Re: Run after standby
Well you say you are sending keystrokes to WMP, there must be a key-combination that makes it go fullscreen.
-
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.