Blog
Main » 2011 March 27 » Create a Simple Hotkey and HotString4:39 PM Create a Simple Hotkey and HotString |
Hello guys. I am here to teach you how to create a simple hotkey using AutoHotkey programming language. What is AutoHotkey? What are Hotkeys? Now you know what is AutoHotkey and Hotkey, lets have an example. Example: Lets say you want to write your name, for example, "GarenaZero", in every post you make. Also you want it to look like this, "- GarenaZero". It is time consuming and uses few key presses. With the help of AutoHotkey, we will make it simpler. Syntax: Code Hotkey:: Send, YourMessage Hotkey = the key(s) to be pressed to activate the code Lets say your desired hotkey is Alt+G. This will be the code looks like. Code !G:: Send, - GarenaZero "!", without quotes is used for Alt or you can use the word "Alt" itself instead of "!" but the syntax will change from "!G::- GarenaZero" to "Alt & G:: Send,- GarenaZero". Hotstring: Syntax: Code ::YourString::YourMessage YourString = the string you want to type instead of typing every single letter Here is the code looks like. Code ::-gz::- Garena Zero You have to press Enter key or Space Bar to execute the code. I wish you learn something here. Happy programming. |
|
Total comments: 0 | |