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 Use DroidVPN App For Free In...

How to HACK Google Play Music App

How to get BookMyShow Instant Disco...
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 ...
  • Hands-on with the home windows 10 Creators update for the Xbox One: Beam recreation streaming arrives
    The Windows 10 Creators Update is here, now—yes,  now —but not (officially) on the PC. The ...
  • Taotronics TT-BH22 Headphones Review
    We make it a addiction to now not look up pricing of a product sooner than reviewing and if ...
  • Pentagon strongly condemns North Korea missile test
    The Pentagon on Monday strongly condemned North Korea’s latest missile test, adding that the ...
  • Bank wallets growing faster than e-wallets
    In the  bank  versus  e-wallets  sweepstakes,  lenders  have now gained lost ground. As of ...
  • 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 ...

Random Posts

  • New Verizon plans 5G trial service in 11 cities this year
    New Verizon plans 5G trial service in 11 cities this year
    23.02.2017 - 0 Comments
    Lab tests of pre-standard 5G wireless with multi-gigabit speeds are evolving into trial services that…
  • Bengaluru plans to use mechanised sweeping in half of city's roads
    Bengaluru plans to use mechanised sweeping in half of city's roads
    21.02.2017 - 0 Comments
    Soon, vehicles fitted with rotating brushes could replace pourakarmikas bending their backs…
  • ZTE MAX XL launched with 6-inch show, Android 7.1.1 Nougat, 3,990mAh battery
    ZTE MAX XL launched with 6-inch show, Android 7.1.1 Nougat, 3,990mAh battery
    26.04.2017 - 0 Comments
    ZTE on Tuesday announced a new smartphone called MAX XL. As the name suggests -- MAX…
  • imo messenger
    imo messenger
    18.02.2016 - 0 Comments
    Message and video chat with your friends and family for free, no matter what device they are on!   …
  • LG G6 Review
    LG G6 Review
    04.02.2018 - 0 Comments
    Key Features Review Price: £649.99 18:9 quad-HD display Android 7.0 2 x 13-megapixel rear cameras Very…

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 & ...
  • Steam Now Supports PS4's DualShock 4 Controller
    HIGHLIGHTS ...
  • Lenovo Yoga Book launched in India at Rs 49,990: First Impressions
    Lenovo  has ...
  • This $15 stand turns your Apple Watch into a mini Macintosh
    For all those  ...
  • Grow Hair Faster: How to Make Hair Grow Faster Naturally
    Every woman wants ...
  • MobiKwik - Update E-KYC & Get Rs. 100 Supercash
    MobiKwik - Update E-KYC & Get Rs. 100 Supercash
    Mobikwik - Update ...
  • Fitbit Flex 2017 review
    Fitbit PROS ...

Random Posts

  • Google Calendar ultimately involves the iPad
    Google Calendar ultimately involves the iPad
    30.03.2017 - 0 Comments
    Google’s Calendar app is making a long-awaited move to a new device: Apple’s iPad. You read that…
  • In Spider-Man: Homecoming, even Peter Parker is into drones
    In Spider-Man: Homecoming, even Peter Parker is into drones
    28.03.2017 - 0 Comments
    Update: And here it is, the second full Spider-Man: Homecoming trailer. Again, there's plenty of…
  • BUY THREE KS DEO IN JUST 319/- LIMITED PERIOD OFFER
    BUY THREE KS DEO IN JUST 319/- LIMITED PERIOD OFFER
    07.02.2016 - 0 Comments
    BUY THREE KS DEO IN JUST 319/- LIMITED PERIOD OFFERFriends this is limited period offer.you can buy 3 ks deo…
  • Indian tab market falls 18 per cent in 2016: CMR
    Indian tab market falls 18 per cent in 2016: CMR
    05.03.2017 - 0 Comments
    Datawind retained the top position with 34 per cent market share, followed by Samsung (18 per cent), Pantel…
  • Download of the day: KeePass
    Download of the day: KeePass
    16.02.2017 - 0 Comments
    KeePass KeePass addresses a very modern problem: passwords that are strong enough to withstand…

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!