Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Below is a script that runs in the background and modifies the manner in which the backspace key works. It comes from the How To Geek. I believe the script takes ram from the computer, but does it steal cycles during the time the backspace key isn't hit. In other words does the background program not take any cycles until the trigger event occurs?

#IfWinActive, ahk_class CabinetWClass
Backspace::
 ControlGet renamestatus,Visible,,Edit1,A
 ControlGetFocus focussed, A
 if(renamestatus!=1&&(focussed=”DirectUIHWND3″||focussed=SysTreeView321))
 {
 SendInput {Alt Down}{Up}{Alt Up}
 }else{
 Send {Backspace}
 }
#IfWinActive
share|improve this question

2 Answers 2

up vote 1 down vote accepted

What does my script do?

No, it adds an hotkey event handler to the event handler list of the system.

So, it will not perform CPU cycles when idle...

How to check?

  1. Download Process Explorer.
  2. Add a cycles and cycles delta column and check it for the process. Let me demonstrate you...
share|improve this answer
1  
Wow, Tom continues to astound me with his knowledge. The process Explorer program is a great tool to learn about. –  user50466 Jan 30 '11 at 20:39

Autohotkey is open source, so you could ask someone familiar with the code for a definite answer. Normally something like this would listen for every keypress, and quickly halt whenever it knows it's not a backspace.

share|improve this answer
    
You can't easily tell by source code for such a project to see how many CPU cycles your program uses when idle, given that it is self-replicating as it creates binary code from your scripts, most profiler won't show this to you... –  Tom Wijsman Jan 30 '11 at 17:54

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.