You know that you can save time by using shortcuts but each task has a different shortcut to remember.If you perform many predefined tasks,you should use a little program called AutoHotkey.Get it from www.autohotkey.com and really you will never want to live without it again.
Basic Scripting rules
Y
ou can command your PC better if you learn some of the simple scripting that autohotkey expects.You will need a text editor.To create a script just right click on the desktop or on any folder and choose New>Autohotkey Script from the context menu.Next open the script you created in your notepad by right clicking on it and selecting edit on it.Before you begin scripting you will need to know how common keys are added to this script:for example the Windows key is denoted by [#],while [+] is [shift],[!] is [Alt] and [^] is [ctrl].Visit tinyurl.com/2coxu3 for a list of hotkeys.
App Launcher
I
f you need multiple programs to be launched simultaneously then you can save time by scripting hotkeys.In a new AutoHotkey script window type the following in,
#0: :
Run, %A_Program
Files%\Opera\Opera.exe
Run Winword.exe
Run Notepad.exe
Return

Save this script with any name,for example ,'Start', with an .ahk extension.Double-click on it to run and an AutoHotkey(letter H) icon will show up in the system tray.You can add as many programs to the script but certain programs like Photoshop take time to load.This script runs Opera,MS word and notepad by pressing the windows key and [0].Right-click on the script and choose compile script to create an executable that can run on any Windows based machine.
Run with Hot strings
R
epititive typing of the same text especially in chat or e-mail replies at times can get time-consuming and also boring. AutoHotkey allows writing scripts for auto-completion of text modules.For example,: :sig:: with kind regards{Enter} {Enter}Yours Sincerely{Enter} {Enter} Mike Smith{Enter}Writer-DIGIT{Enter}9.9 Interactive{Enter}Mumbai{Enter}
Save and run this script.Now whenever you type "sig",you'll find your signature pasted automatically.Make sure that the trigger ("sig" in our case) is unique or you'll find yourself inserting signatures where they shouldn't be.It's better to use special characters such as @@ to avoid any confusion.Another example:
::s@@::mike@smith.com
This hotkey will add the text above as soon as you have typed s@@.
Delete Temporary Internet files
n
ote:Backup your registry before using this hotkey script since it alters the registry.

I
nstead of manually deleting your driver cache you can just use AutoHotkey to do it for you.

RegRead, tempInternetFiles, HKEY_CURRENT_USER,Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders,Cache Loop,%tempInternetFiles%\*.*,0,1

{

today=%A_Now%Envsub,today,%A_LoopFileTimeModified%,days if today>7{FileDelete,%A_LoopFileFullPath%
}

}

S
ave this script and then compile it to create an executable.Just double-click it to delete all temporary files!
Folder Content copy
Wa
nt to know what songs you have in your miscellaneous folder or what files are taking up space in your My documents folder?Let autohotkey find out for you.Use the following simple script to catalogue disc contents and then compile it to make it an executable:
SetWorkingDir,%1%
Loop, *.doc,1,1
{
All=
%All%%A_LoopFileFullPath%'r'
n
}
Clipboard=%All%
Now,if C:\misc\DVD2 is the folder in question just drag and drop the DVD2 folder on to the executable you created.Based on the script , all th e returned data will be saved to the clipboard.All you have to do now is to fire up notepad and paste it and then save or print it as you please.
The above script will look not only in the DVD2 Folder but also all the sub-directories under it.If you want all the files in a particular directory to be listed you have to replace the "*.doc" part of the script with "*.*".To learn more ,visit http://www.autohotkey.com and master this simple program that's worth its weight in gold.

0 comments:

Post a Comment

 
Cebong`s Notez
---- computer laptops. Green World Blogger Template---- © Template Design by Herro