Sleep mode

Page 2 of 2 FirstFirst 12

  1. Posts : 934
    Windows 8.1 ; Windows 7 x86 (Dec2008-Jan2013)
       #11

    No problem. I have redone it with AutoHotKey scripting language. Now it is a windowless exe program.


    If your media center XBMC.exe was started as non-administrator, this script will close it without a problem.

    If XBMC.exe was started as administrator, you have to activate start as administrator option for this exe.
    Right click Custom_Sleep.exe and Properties - Compatibility - Run as Administrator.
      My Computer


  2. Posts : 17
    Windows 7 32 bit
    Thread Starter
       #12

    Thank you very much works perfectly,no longer pops up a window.
    I owe you for this help.

    Best Regards
      My Computer


  3. Posts : 120
    Win 7
       #13

    Why use a script?

    I use a simple shortcut that runs this:
    C:\WINDOWS\system32\rundll32.exe Powrprof.dll,SetSuspendState Sleep

    Simple.
      My Computer


  4. Posts : 934
    Windows 8.1 ; Windows 7 x86 (Dec2008-Jan2013)
       #14

    lhorwinkle said:
    Why use a script?

    I use a simple shortcut that runs this:
    C:\WINDOWS\system32\rundll32.exe Powrprof.dll,SetSuspendState Sleep

    Simple.
    Thas is very kind of you, lhorwinkle. Thank you for sharing your knowledge.
    But you have not read all the messages in this thread, have you?

    Let me sum it up for you. OP requested several things besides sleep:
    KILL CERTAIN PROGRAM
    and
    NO COMMAND LINE/ SCRIPT WINDOW.

    I have implemented all of the requests in AutoHotKey script, which I have converted to exe file.
      My Computer


  5. Posts : 17
    Windows 7 32 bit
    Thread Starter
       #15

    Hello Neutron16
    I have a question I use the plugin in XBMC.Advance launcher which loads the lnk file and exe file.
    When I start the exe file cmd do not pops up, when I start lnk file cmd is pops up.I've tried all the advice from the Internet,but not worth anything.I ask you for advice how to cmd not pops up.lnk files is for yahoo internet, xbox live, etc.
    I use Maxton brovser over it create lnk file.
    When I start lnk I get a clean page without borders this is the reason why I need the lnk file.Forgive me if I'm boring.
    Best Regards
    Last edited by senna99; 27 Jan 2013 at 14:39. Reason: Error writing text
      My Computer


  6. Posts : 934
    Windows 8.1 ; Windows 7 x86 (Dec2008-Jan2013)
       #16

    senna99 said:
    Hello Neutron16
    When I start the exe file cmd do not pops up, when I start lnk file cmd is pops up.
    I am sorry, I am not clear with what you have said. Normally, when you start a lnk file there is no cmd.
    Could you be so kind to write me a private message with more detailed explanation with the file itself and couple screenshots?
      My Computer


  7. Posts : 17
    Windows 7 32 bit
    Thread Starter
       #17

    Yes of course I will send you a private message.Thanks to the rapid response and interest for my problem.
    Best Regards
      My Computer


 
Page 2 of 2 FirstFirst 12

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 10:44.
Find Us