AutoHotkey Community

It is currently May 27th, 2012, 5:33 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: memory footprint
PostPosted: September 29th, 2005, 3:34 pm 
Hello! Found this incredible application while I was looking for some tool just to disable a button on my media keyboard. This looks insane, can't wait to play with all the scripting possibilities!

Anyway, my .INI just looks like this:
Code:
Browser_Search::Exit


That is all. Just disables search button for me, works great. But i noticed the memory footprint of the program is over 3mb. Would it be possible to reduce the memory footprint when such simple scripts as this one is run? I mean lots of that memory gotta be allocated to do stuff that is not being done with the above script.
Not a huge problem, just a little much ram to do so little.

Hands down, this tool is surley gonna stay amongst my favorite applications!


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: September 30th, 2005, 4:58 am 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
On my machine, the following script uses only 252 KB of memory as reported by Task Manager:
Code:
DetectHiddenWindows On
WinMinimize %A_ScriptFullPath% ahk_class AutoHotkey

Browser_Search::Exit
However, I believe that both your 3 MB figure and the 252 KB figure are not accurate and serve only to demonstrate how unreliable the "mem usage" column is. The actual amount of memory used by either version of this script is probably around 1300 KB. For more info, see http://www.autohotkey.com/forum/viewtop ... 4247#24247

By the way, it might be possible to disable a key such as Browser_Search via the registry. However, the change would affect all users and would be permanent, meaning that you would have to change the registry back and then reboot if you ever wanted to undo it. I can post that info if you want it.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 30th, 2005, 12:14 pm 
Wow, adding those 2 lines to my script and it now uses 280kb (from 3210kb), thanks alot!
And thanks for offering to help with modifying the registry, but i rather stick with this solution, i really enjoy this program - now i just need a remote control for the pc :)


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: September 30th, 2005, 12:51 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
Quote:
now i just need a remote control for the pc
If you get an infrared receiver (or other device that works with WinLIRC), you could use the WinLIRC client script to write macros to automate various things (such as volume and pause).


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 30th, 2005, 2:24 pm 
Yea i found that site & looked around some, but im not smart enough to build that by myself with all those wires and stuff i think. I was also looking for some more ready to use solutions and saw theres a couple products wich you plug into USB, but couldnt find any info wether these could be supported in AutoHotKey. I was interested in programming the remote to act differently depending on what programs are running/focused. for example if media player has focus, i want the pause button to pause the movie, but if it is not, i want it to pause winamp for example.

BTW: The last post from "guest" was from me also.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: October 1st, 2005, 3:16 am 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
You might want to search for "packard bell remote" on Ebay. It comes with an IR receiver and a remote control, usually for less than $20 delivered.

You don't even have to use the remote control that comes with it: just plug the IR receiver into a serial port, then have WinLIRC "learn" your favorite TV/VCR/DVD/Stereo remote controls.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 4 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group