AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Keep WindowsXP Awake

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
airolg



Joined: 04 Dec 2005
Posts: 23

PostPosted: Thu Jan 26, 2006 5:59 pm    Post subject: Keep WindowsXP Awake Reply with quote

Is there a way I can write a script to have a message pop up and automatically type something so my WindowsXP doesn't go into sleep mode if I'm away from it too long? I have so much running and it just takes forever to bring WindowsXP back into use and when I come back, I'm in a hurry and panic to get it up and running again.

I don't mind learning how to write one, but is it possible? or practical? And few hints in the right direction would be much appreciated.

Any ideas? Is this not something AHK could be used for? Is there a better way?

Thanks
Back to top
View user's profile Send private message
Greg



Joined: 22 Dec 2005
Posts: 246

PostPosted: Thu Jan 26, 2006 6:03 pm    Post subject: Re: Keep WindowsXP Awake Reply with quote

airolg wrote:
Is there a better way?


Disable automatic sleep mode? Or at least increase how long it takes before it sleeps.

It isn't the best idea to "randomly" send text to whatever window happens to be open just as a means of keeping the computer active. If you don't want to change the sleep mode settings, you could instead have a script move the mouse a few pixels.

Take a look at the documentation for SetTimer and MouseMove
Back to top
View user's profile Send private message
jgpaiva



Joined: 25 Jan 2006
Posts: 13

PostPosted: Thu Jan 26, 2006 6:07 pm    Post subject: Reply with quote

Check skrommel's noise! (http://www.donationcoder.com/Software/Skrommel/index.html#Noise) it does exactlly what you're looking for.
Back to top
View user's profile Send private message
airolg



Joined: 04 Dec 2005
Posts: 23

PostPosted: Thu Jan 26, 2006 6:15 pm    Post subject: Thank you!! Reply with quote

Noise!!! I've downloaded and now I have to wait to see it work! Thanks so much...there's lots of scripts there--I should have checked there first. Sorry, folks.

I thought about disabling the sleep mode, but I like this little script that I can use or not, depending on my day.

Thanks again everyone! Laughing
Back to top
View user's profile Send private message
Zoandar



Joined: 08 Jun 2006
Posts: 91
Location: Northern Ohio - USA

PostPosted: Wed Jun 28, 2006 3:37 am    Post subject: Reply with quote

I don't know what Skrommel's Noise script does (I donwloaded it, but it is already compiled, so I can't view the script) but I have a habit of using the Shift key to wake up a PC from a screensaver mode.

Shift is harmless, and doesn't send any text, Enter, or the like that could be dangerous, depending upon where the focus was at the moment. but it gets detected as activity and makes the PC wake up.
_________________
Zoandar - new user - still learning.
Back to top
View user's profile Send private message
PhiLho



Joined: 27 Dec 2005
Posts: 6721
Location: France (near Paris)

PostPosted: Wed Jun 28, 2006 8:43 am    Post subject: Reply with quote

Zoandar wrote:
I don't know what Skrommel's Noise script does (I donwloaded it, but it is already compiled, so I can't view the script)
skrommel gives his scripts: the source codes are available under the little green H icon...
_________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")
Back to top
View user's profile Send private message Visit poster's website
Zoandar



Joined: 08 Jun 2006
Posts: 91
Location: Northern Ohio - USA

PostPosted: Wed Jun 28, 2006 7:09 pm    Post subject: Reply with quote

I know that is normally the case. But for that particular script, both the exe and AHK icons were missing. All that I saw that was there was the download link, which targeted a compiled version.
_________________
Zoandar - new user - still learning.
Back to top
View user's profile Send private message
PhiLho



Joined: 27 Dec 2005
Posts: 6721
Location: France (near Paris)

PostPosted: Thu Jun 29, 2006 10:50 am    Post subject: Reply with quote

You can look again, perhaps there was a server glitch when you checked.
I can see both icons, and I just downloaded the source to be sure...
Basically, he created an hidden GUI and every minute, he sends some random char to the hidden edit control.
_________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")
Back to top
View user's profile Send private message Visit poster's website
Zoandar



Joined: 08 Jun 2006
Posts: 91
Location: Northern Ohio - USA

PostPosted: Thu Jun 29, 2006 5:53 pm    Post subject: Reply with quote

OK, Thanks!
_________________
Zoandar - new user - still learning.
Back to top
View user's profile Send private message
RJ
Guest





PostPosted: Wed Jun 04, 2008 3:20 pm    Post subject: Defeating Windows Sleep Mode Reply with quote

Noise looks pretty useful. What about something that is not an .exe or .bat so that non-admin folks can use it?

Thanks!
Back to top
engunneer



Joined: 30 Aug 2005
Posts: 6856
Location: Pacific Northwest, US

PostPosted: Wed Jun 04, 2008 10:46 pm    Post subject: Reply with quote

noise is also provided as an .ahk file. all (common) programs are .exe or .bat. If you cannot run either, then you cannot run AHK scripts.
_________________
Unless otherwise noted, all code is untested.
Common Answers: 1.(Loops, Viruses, etc.) 2. Search 3.RTFM
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group