Android Century
  • Home
  • Android Zone
    • Android Apps
    • Android Games
    • Apps APk Files
    • Games Apk Files
    • Apps Hack Tricks
  • Reviews
  • Fantasy Zone
    • Entertainment
    • Quotes and Status
    • Life Style
    • Home Made Tips
    • Hair Care
    • Skin Care
    • Fantasy Tips
  • Tricks
    • Free Recharge
    • Free Internet
    • shopping Cashback
    • Recharge Cashback
  • Tech
  • Mobiles
  • Gadgets
  • News
  • How To's
  • Software
Breaking
Loading...

Featured post

How to Take Great Photos With Apple's iPhone X

Recent Posts

Labels

  • Android Apk Files
  • Android Apps
  • Android Games
  • Apps Apk Files
  • Entertainment
  • Fantasy Tips
  • Gadgets
  • Hair Care
  • HomeMade Tips
  • How To's
  • News
  • Quotes
  • Quotes & Status
  • Recharge Cashback
  • Recharge Promo Codes
  • Shopping Cashback
  • Technology
  • skin care
Home / How To's / How to Create Custom Keyboard Shortcuts with AutoHotkey

How to Create Custom Keyboard Shortcuts with AutoHotkey

Latest Govt. Jobs 20:16:00 How To's Edit
AHK_Header
There are some things that are just a pain to type—especially when you have to type them over and over and over. Or even worse, if they thing you want to type doesn’t exist on your keyboard. What do you do if you’re using an American keyboard and need to drop a € into a document?
I was having this problem. I was getting annoyed, and even worse, I was making mistakes. I needed to curb my annoyance and make sure these monotonous things I had to type repeatedly were consistent and correct. The hunt was on for solutions. Turns out there is one answer to both problems: AutoHotKey.

What Is AutoHotkey?

At its core, AutoHotkey (AHK) is a scripting platform. With just a tiny bit of “code,” you can create a script that runs in the background and allows you to do just about anything with a hotkey you set. If there’s a keyboard shortcut you want to change, you can remap it. If there is a phrase you type regularly, you can assign a key combination to it. If there are a series of commands you manually run on a regular basis, AHK can run them all with a simple key combo.
Don’t be scared by words like “scripting platform” and “code,” though. AutoHotkey is extremely simple to get started with, especially if you’re just assigning basic hotkeys to basic commands. Chances are, you can learn what you need to over the course of a single afternoon. Let’s go through some basic examples of what AutoHotkey can do to get you started.

How to Install AutoHotkey

Head to AutoHotkey’s website to download the program. On the main page is a big green button that says “Download” on it. Clicking on that will take you to the download page. Here you can on a teal download button to get the latest version.
mainpage_download ahk_download_page
Once the installation file has downloaded, double click on it to begin installing AutoHotkey. Nearly all users will want to use the Express Installation button. Custom installation gives you options around default behaviors and install location. Leaving the defaults in place is best.
install_01 install_02
Once it’s installed, you’re ready to get to the fun stuff: writing your first script.

How to Create Your First AutoHotkey Script

Running the AutoHotkey application now won’t actually do anything but launch its help page. To get started, you need to have a script that tells AutoHotkey about your custom keyboard shortcuts. So let’s start by creating one.
Right-click on your Desktop (or any other folder) and choose New > AutoHotkey script. This will create a new file with the .ahk extension in that folder. Name the file whatever you want, then right-click on it and open it in Notepad. (or a more code-friendly program like Notepad++, if you have it). There will be some text in the file. For simple scripts like were demonstrating here, it can be removed. As you get more advanced, you may want to leave it in.
ahk_quick_launch
You will be given a nearly-blank slate for you to create the keyboard shortcuts of your dreams. Here are a couple examples.
Let’s start with a real simple character insertion script. I have a script I use every day to allow me to type common characters from German that aren’t on my English keyboard. Let’s say I want to type the ß character whenever I press Alt+Shift+S on my keyboard. In AutoHotkey, that would look like this:
!+s:: Send, ß
Let’s break that bit of text down:
  • ! is the symbol for the Alt key
  • + is the symbol for the Shift key
  • s stands for (obviously) the S key
  • :: denotes what you want the preceeding keys to run when pressed together
  • Send, is a command that types the proceeding text
  • ß is the text we want the command to type.
Essentially, this command says “When Alt, Shift, and S are pressed at the same time, type ß.”
You can add other modifiers, too. For example, if you add the < symbol before your hotkey (so it reads <!+s:: Send, ß , you can tell AutoHotkey to only run the command if the Left Alt key is used.
My entire German-symbol-hotkey script looks like this:
<!a:: Send, ä
<!o:: Send, ö
<!u:: Send, ü
<!+a:: Send, Ä
<!+o:: Send, Ö
<!+u:: Send, Ü
<!+s:: Send, ß
<!+$:: Send, €
ahk_notepad_plusplus
If you know the name of the character you wish to add to your script, searching for it in Google is probably the quickest way to find it. If not, you can look for it on an ASCII or Unicode table.
You can take this further than just individual characters, too. If you find yourself regularly struggling to translate complex, obnoxious, or just plain long character strings from your brain to your fingers, AutoHotkey is your new best friend. In my other job, I often have to reach out to individuals at other institutions to discuss security items on projects without any introduction from the people I work with. This requires I explain who I am and why I’m contacting them. Instead of typing out this whole message I use a hotstring in AHK. The script looks like this:
ahk_isr_intro
The :*: at the beginning tells AHK to watch for the sting that follows it. In this case that string is ncm (short for “new cold message” in my head). So any time I type the letters ncm in a box, it will swap them with the string of text that follows the :: in the script. Not only have I turned a paragraph worth of typing into three keystrokes, I know it’s going to be right every time.
This could be accomplished with a hotkey instead of hotscript too. You could replace :*:ncm in the script with !+n and have the same string of text show up with you pressed Alt+N on your keyboard.
AutoHotkey also has the ability to pull basic info from your computer. For example, it can get today’s date. So if you’re someone who is entering the date into a lot of fields, this script could be a lifesaver.
ahk_todays_date
If you run this script, AutoHotkey will drop the current date in wherever your cursor is. You can play with things like formatting ( dd/MM/yyyy versus MM/dd/yyyy for example) in the script as well.

Going Further: Run Programs, Remap Shortcuts, and More

AutoHotkey can do a lot more than insert text (although that is one of its more common uses). You can also use it to run a program when you press a certain key, remap shortucts like Alt+Tab to hotkeys of your choice, or remap buttons on your mouse. If you get really deep, you can even create dialog boxes or full-fledged programs with AutoHotkey.
Share on Facebook Share on Twitter Share on Google Plus

RELATED POSTS


How to Sync Your Contacts Between A...

How to Know a Wi-Fi Network Is Fast...

How to delete your Google search hi...
How to Create Custom Keyboard Shortcuts with AutoHotkey How to Create Custom Keyboard Shortcuts with AutoHotkey Reviewed by Latest Govt. Jobs on 20:16:00 Rating: 5

0 comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments ( Atom )

Search This Blog

TEST BOOK FOR GOVT ENTRANCE TEST

TEST BOOK FOR GOVT ENTRANCE TEST
Find All Latest book for preparation of SSC,RAILWAYBANK PO,RBI,BANK CLERK,GATE ME,GATE CE are available here in less prices, to check out the books click here

Translate

  • Popular Post
  • Random posts
  • Category

Popular Posts

  • Teen Patti Offer 2018: Refer and Earn Flipkart Vouchers Free
    Teen Patti Offer 2018: Refer and Earn Flipkart Vouchers Free
    Teen Patti Refer & Earn Offer:  Hey Guys! Today I make an article about Teen Patti Referral ...
  • Taotronics TT-BH22 Headphones Review
    We make it a addiction to now not look up pricing of a product sooner than reviewing and if ...
  • Reliance Jio to offer sharp tariff discounts for customers signing up by March-end
    Reliance Industries' Jio unit will charge a tariff for its services from April, but will offer ...
  • Pentagon strongly condemns North Korea missile test
    The Pentagon on Monday strongly condemned North Korea’s latest missile test, adding that the ...
  • Fitbit Zip 2017 review
    Fitbit PROS: Clever, accurate tracking Expandable online service Integration with 3rd ...
  • Bank wallets growing faster than e-wallets
    In the  bank  versus  e-wallets  sweepstakes,  lenders  have now gained lost ground. As of ...

Random Posts

  • Reviews : Hands on: Apple's AirPods are indeed 'magical'
    Reviews : Hands on: Apple's AirPods are indeed 'magical'
    14.02.2017 - 0 Comments
    There's a lot to like about Apple's new wireless AirPods. From the ease of the initial setup to the…
  • Grammys: Taylor Swift wins album of the year
    Grammys: Taylor Swift wins album of the year
    17.02.2016 - 0 Comments
    Taylor Swift won three awards, including the album of the year prizeTaylor Swift's 1989 has won the coveted…
  • Samsung launches the Galaxy S8 with a beautiful layout and Bixby AI assistant
    Samsung launches the Galaxy S8 with a beautiful layout and Bixby AI assistant
    30.03.2017 - 0 Comments
    Samsung is back. After the Note7 recall stripped us of our end-of-year Galaxy fix, Samsung has officially…
  • This is the land of the $20 smartphone
    This is the land of the $20 smartphone
    11.03.2017 - 0 Comments
    Main image © Jamie Carter “This one $40, this one $30 … that one $20!” The owner of the street…
  • Now Refer Flipkart & Earn : Get Upto Rs.1000 Voucher By Referring Friends & Friend Also Get Rs.50
    Now Refer Flipkart & Earn : Get Upto Rs.1000 Voucher By Referring Friends & Friend Also Get Rs.50
    05.03.2017 - 0 Comments
    Hello Readers,  Refer and Earn programs have the become the best way of promotion now-a-days in the…

Labels

Android Apk Files Android Apps Android Games Apps Apk Files Apps Hack Tricks Entertainment Free Internet Freecharge Gadgets Games Apk Files How To's Laptops Guide Mobiles Reviews Technology Viral's android zone free recharge

Entertainment

Tricks

Popular Posts

  • Teen Patti Offer 2018: Refer and Earn Flipkart Vouchers Free
    Teen Patti Offer 2018: Refer and Earn Flipkart Vouchers Free
    Teen Patti Refer & ...
  • Taotronics TT-BH22 Headphones Review
    We make it a ...
  • Bank wallets growing faster than e-wallets
    In the  bank ...
  • Reliance Jio to offer sharp tariff discounts for customers signing up by March-end
    Reliance Industries' Jio unit will charge a tariff for its services from April, but will offer ...
  • Hands-on with the home windows 10 Creators update for the Xbox One: Beam recreation streaming arrives
    The Windows ...
  • Pentagon strongly condemns North Korea missile test
    The Pentagon on ...
  • Fitbit Zip 2017 review
    Fitbit PROS ...

Random Posts

  • New iPad: everything you want to realize
    New iPad: everything you want to realize
    26.03.2017 - 0 Comments
    Update: The new iPad from Apple is out today. You'll be able to order from…
  • How to Set Up an Out of Office Reply on Outlook.com
    How to Set Up an Out of Office Reply on Outlook.com
    05.03.2017 - 0 Comments
    If you’re going to be out of the office for a while, Outlook.com makes it easy to set up automatic…
  • Nokia 3 gets Android Oreo Beta build update
    Nokia 3 gets Android Oreo Beta build update
    01.03.2018 - 0 Comments
    Android 8.0 Oreo beta build for the Nokia 3 is now available to download. (Image credit: HMD Global) HMD…
  • Now Meizu introduces Super mCharge fast charging tech  2017
    Now Meizu introduces Super mCharge fast charging tech 2017
    28.02.2017 - 0 Comments
    Meizu’s Super mCharge’ tech can fully charge the phone in 20 minutes Meizu has announced a new fast…
  • BenQ unveils new video post-production monitors
    BenQ unveils new video post-production monitors
    28.02.2017 - 0 Comments
    Taipei-based technology major BenQ on Monday launched PV3200PT and PV270 high-end PV series…

Most Popular

  • Teen Patti Offer 2018: Refer and Earn Flipkart Vouchers Free
    Teen Patti Offer 2018: Refer and Earn Flipkart Vouchers Free
    Teen Patti Refer & ...
  • SAMSUNG GALAXY J7 (2016) REVIEWS
    SAMSUNG GALAXY J7 (2016) REVIEWS
    SAMSUNG GALAXY J ...
  • Top 5 Best SmartPhones under 7000 Rs (March 2017)
    Looking for the ...
  • Apple, IBM, Cisco are huge because of Indians, do not deny them H-1B visa: RBI Governor Urjit Patel
    ...
  • SAMSUNG GALAXY J7 (2016) Specifications
    SAMSUNG GALAXY J ...
  • BlackBerry Teases Marshmallow Beta Testing for Priv by Next Week
    Blackberry ...
  • LG Q6 Review
    LG Q6 Review
    2017 is ...

Contact Form

Name

Email *

Message *

Offers Zone

Created By Android Century Distributed by Android Century
  • Home
  • About us
  • Contact us
  • Privacy policy
  • Terms of use
  • Advertise here
Subscribe Via Email Subscribe To Android Century By Email And Get Free Updates. ;-)


Your email address is safe with us!