![]() | ![]() |
|
Welcome to the HEXUS.community discussion forums forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and other features. By joining our free community you will have access to post topics, respond to polls and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! |
| |||||||
| Software and web development Databases, graphics, programming, scripting and web development. |
![]() |
| | LinkBack | Thread Tools |
| | #1 (permalink) |
| Senior Member Join Date: Jan 2008
Posts: 599
Thanks: 63
Thanked 28 Times in 28 Posts
| Help Please hey guys, I have written a script that will do certain things on automatic resume, such as stop some services etc... but i dont want it to do these things if i resume manually. I have wrote the script in vbs and used the win32_PowerManagementEvent thingy to watch for automatic resume message etc... However it seems my pc sends the automatic resume message if i resume manually as well as sending the manual resume message which means my script always runs on any resume which sucks. Anyone know a way to have a program or script run on automatic resume only? The script runs a batch file so any way of running it on automatic resume only would be great... or any ideas...thanks... "If somethings hard to do, then its not worth doing" Hexus Trust |
| | |
| | #3 (permalink) |
| Senior Member Join Date: Jan 2008
Posts: 599
Thanks: 63
Thanked 28 Times in 28 Posts
| Re: Help Please Its done by mediaportal for a scheduled recording, if that helps, dont really know the specifics... "If somethings hard to do, then its not worth doing" Hexus Trust |
| | |
| | #4 (permalink) |
| Registered+ Join Date: Jan 2009
Posts: 28
Thanks: 0
Thanked 4 Times in 3 Posts
| Re: Help Please hi crazyfool, would you be able to post the code you have already? it would be quite helpful to see what you have setup already. Then we could see how difficult it would be to adjust the code, or see if there is another way of doing it. I think the Win32_PowerManagementEvent class have two types of resume values 7 Resume From Suspend (which I belive is manual) 18 Resume Automatic I confess I dont script very often.... but I remember this from a while back |
| | |
![]() |
| Breadcrumb | ||||||
| ||||||
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |