AutoHotkey Tutorial: How to use AutoHotKey scripts
This is a beginners guide to create AutoHotkey scripts. AutoHotkey is a program that allows yous to create a key combination for a task. You lot tin can phone call them macros or mini programs. The scripts or mini programs created using AutoHotKey have .AHK extension. The programming language is easy as yous shall see in this mini tutorial for AutoHotKey.
AutoHotkey Tutorial
Starting time of all, you take to download AutoHotKey and install it on your computer.Its plan icon will sit in the system tray, from where you lot can control all your scripts. You tin also suspend AutoHotkey from here for a period of time or even exit if you lot don't demand to run scripts. Please note that if you lot exit the organisation tray application, your scripts won't office.
As yous install AutoHotKey plan, yous get an selection to see sample scripts in Notepad. It says Prove README. If you keep the box checked and click Finish after installation, a Windows Help Window is launched where yous tin detect detailed instructions on how to apply the plan.
Important: Create scripts in Notepad and salvage them with .AHK extension so that they work. Select ALL FILES under Type (the second driblet down listing below Filename Text Box). It shows *.* in the related text box and there, you have to enter AHK instead of TXT. If you salve as TXT, the script will not work.
How to utilize AutoHotkey scripts
The following is a cursory tutorial for using AutoHotkey.
Special Keys (CTRL, ALT, SHIFT, WINDOWS Fundamental)
When you create scripts, yous assign them to keys. In most cases you take to assign them to a combination of special keys followed by regular keys. The special keys in this regard are WINDOWS KEY, CTRL, SHIFT and ALT. You can apply one or more than than 1 special keys to assign your scripts. For instance, you might want to assign a script to CTRL + SHIFT + S. In that example you have to type the special keys in the format provided by AutoHotKeys.
CTRL is represented by ^
SHIFT is represented by +
ALT is represented past !
Windows Cardinal is represented by #
:: part ends the hotkey combination and script follows
To begin, you lot first have to type the special central combination that will activate the script you created. For example, if you wish to assign CTRL + SHIFT + South to launch Google, your script will expect similar the following:
^+Southward:: Run google.com
Special Words or Commands
To launch a programme or website, use RUN. For example if you create the following:
!^F:: Run Notepad
With the in a higher place script, when you press ALT+SHIFT+F, Notepad is launched. RUN is a keyword that helps yous run a program or launch a website. Another instance below shows yous how a hotkey opens Google in your default program and and then launches Notepad.
^+E:: Run google.com Run Notepad Return
All the four lines higher up are one script that is activated using CTRL+SHIFT+E. The give-and-take Return is another keyword that indicates end of script when you are using multiple lines. Whenever you create a script with more than ane line, you lot should use Render at the end of the script so that AutoHotKey knows that the script ends here.
You can add as many commands you want into a single AHK file, just remember to use RETURN towards the end of last script in the AHK file. Yous have to launch the AHK file by double clicking it before yous tin can utilise the scripts
Another keyword worth using is Transport. It sends keystrokes to the shell and you can use it create things like signatures etc. Come across the following example.
^!S:: Send Regards{ENTER}Arun Kumar Render In the above script, when I press CTRL+ALT+South, information technology will paste Regards, followed by an Enter key (for line modify) and and then insert Arun Kumar. The above case shows you lot how to enter the ENTER key. The ENTER primal is ever included inside braces {}.
Similarly, if you lot wish to enter a TAB, it should be {TAB}. Besides, space key will be {SPACE}. You need not utilise {Space} to enter a Infinite. It will automatically have in SPACE when you enter SPACE primal in the script as in the higher up example. In the case, Arun is followed by a Infinite and then Kumar.
This tutorial is not comprehensive only is enough to go you started with the programme to create short AutoHotKey scripts.
Now read: Display global hotkeys list in Windows.
Source: https://www.thewindowsclub.com/autohotkey-tutorial-beginners
Posted by: walstonagens1935.blogspot.com

0 Response to "AutoHotkey Tutorial: How to use AutoHotKey scripts"
Post a Comment