Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Sleep mode

27 Jan 2013   #11
Neutron16

Windows 8.1 ; Windows 7 x86 (Dec2008-Jan2013)
 
 

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 System SpecsSystem Spec
.
27 Jan 2013   #12
senna99

Windows 7 32 bit
 
 

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

Best Regards
My System SpecsSystem Spec
27 Jan 2013   #13
lhorwinkle

Win 7
 
 

Why use a script?

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

Simple.
My System SpecsSystem Spec
.

27 Jan 2013   #14
Neutron16

Windows 8.1 ; Windows 7 x86 (Dec2008-Jan2013)
 
 

Quote   Quote: Originally Posted by lhorwinkle View Post
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 System SpecsSystem Spec
27 Jan 2013   #15
senna99

Windows 7 32 bit
 
 

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
My System SpecsSystem Spec
27 Jan 2013   #16
Neutron16

Windows 8.1 ; Windows 7 x86 (Dec2008-Jan2013)
 
 

Quote   Quote: Originally Posted by senna99 View Post
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 System SpecsSystem Spec
27 Jan 2013   #17
senna99

Windows 7 32 bit
 
 

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

 Sleep mode




Thread Tools




Similar help and support threads
Thread Forum
video mode unuseable upon waking from sleep mode
I've been using this Windows 7 Home system for some years. At first it used the CRT monitor I had for much longer than this system, then a used LCD monitor, now for the last six or eight months a larger used, but seemingly in excellent condition, Dell E228WFP. My habit has been, for much longer...
Performance & Maintenance
Laptop freezes between entering sleep mode to being in sleep mode
hai.. help needed.... i am having the exact problem as op.. when i press sleep button, screen goes black (as usual).. but fan, and other keyboard lights are still on... it just freezes... i have to force shutdown to again use my laptop... i am attaching the msinfo32.nfo, driverview.txt... ...
General Discussion
Laptop freezes between entering sleep mode to being in sleep mode
Hi, I've had this problem intermittently on my laptop for the past 2 years however it has been occuring more often recently. Basically sometimes when I click the sleep button on Windows 7, the screen fades to black as usual. However the fan keeps running (sounds like when it's on full load) and...
General Discussion
Sleep Mode errors - system won't sleep, 12 errors in energy-report
Issue at large: Win7-64 won't go into sleep mode. Recent issue in last week. Also seems to be automatically resetting from Balanced power mode to High Performance? Below is the energy-report.html results, if they're helpful: Power Efficiency Diagnostics Report Computer Name HOME-PC Scan...
Performance & Maintenance
How do i use hibernate mode without going into sleep mode first
I want windows media center computer to go into hibernate mode only. Now it goes to sleep after 25 min and then hibernates after 30 min. How do i set it so it will go right into hibernate mode? thanks:)
Software


Our Sites

Site Links

About Us

Find 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 06:28.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App