Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
 ControlGet renamestatus,Visible,,Edit1,A
 ControlGetFocus focussed, A
 SendInput {Alt Down}{Up}{Alt Up}
 Send {Backspace}
share|improve this question
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
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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .