• HEXUS
  • HEXUS.tv
  • channel
  • gaming
  • lifestyle
  • trust
  • community
  • ESReality
  • HEXUS.community discussion forumsVisit Corsair.com

    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!
    Go Back   HEXUS.community discussion forums > HEXUS.help - buying advice & technical queries > Operating systems & applications > Software and web development

    Software and web development Databases, graphics, programming, scripting and web development.

    Reply
     
    LinkBack Thread Tools
    Old 23-01-2009, 03:18 PM   #1 (permalink)
    Senior Member
     
    Join Date: Jan 2008
    Posts: 599
    Thanks: 63
    Thanked 28 Times in 28 Posts
    crazyfool's system
    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
    crazyfool is offline   Reply With Quote
    Old 23-01-2009, 03:38 PM   #2 (permalink)
    Jay
    I Get Daily HeXuscise
     
    Jay's Avatar
     
    Join Date: Aug 2006
    Location: Jita
    Posts: 5,912
    Thanks: 144
    Thanked 289 Times in 222 Posts
    Jay's system
    Re: Help Please

    how is the auto resume initiated?

    □ΞVΞ□ - http://ekchu.com
    Jay is offline   Reply With Quote
    Old 23-01-2009, 03:40 PM   #3 (permalink)
    Senior Member
     
    Join Date: Jan 2008
    Posts: 599
    Thanks: 63
    Thanked 28 Times in 28 Posts
    crazyfool's system
    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
    crazyfool is offline   Reply With Quote
    Old 01-02-2009, 05:57 PM   #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
    ali73 is offline   Reply With Quote
    Reply

    Breadcrumb
    Go Back   HEXUS.community discussion forums > HEXUS.help - buying advice & technical queries > Operating systems & applications > Software and web development


    Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
     
    Thread Tools

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off
    Trackbacks are On
    Pingbacks are On
    Refbacks are On




    All times are GMT. The time now is 06:50 PM.

    Any representations/statements made on the HEXUS.community discussion forums are the representations/statements of the author i.e. the person/organisation making them. If any such representations/statements are disputed they are a matter between the parties concerned.
    HEXUS Limited accepts no responsibility for any misrepresentations, inaccurate or false statements made by any person/organisation other than HEXUS Limited employees.
    For more information please read HEXUS Limited's terms, conditions and privacy policy.

    Hosted Exchange | Virtual Dedicated Server

    Powered by vBulletin® Version 3.8.4
    Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
    Content Relevant URLs by vBSEO 3.3.2
    Copyright © 2010 HEXUS® Limited. All rights reserved. Unauthorised reproduction strictly prohibited.