Saturday, 22 September 2012

If you use Windows, please use AutoHotkey

AutoHotkey is a powertool for Windows. It is one of my indispensable tools. I can hardly praise it highly enough. I use it for many things. I have used it to make using Windows less painful, and coding Lisp easier. Here are a few samples of AutoHotkey I use it to:

Make Caps Lock type hyphen (-) instead (I use hyphen a lot - you can make it do what you want):
SetCapsLockState, AlwaysOff

Swap brackets to my liking. Once I started programming Lisp, I quickly realised that round brackets should be easier to type. I've swapped ( and ) with [ and ]. I've also made the closing brackets get typed in when you type one of the opening brackets: (, [, or {. This one was the whole reason I started looking for something like AutoHotkey. Nothing else I've found can do this on Windows.
; The dollar signs stop the hotkeys from going into an infinite loop.
$[::Send (){left}
$]::Send )
$(::Send []{left}
$)::Send ]
$+[::Send +[+]{left}

Shorten some git workflow shortcuts (for example, typing gst then Enter is equivalent to typing git status then Enter):
SetTitleMatchMode 2
#IfWinActive, MINGW32:/
::gco::git checkout
::gcom::git checkout master
::gds::git diff --stat
::gdi::git diff
::gpu::git push -u
::gmm::git merge master
::gst::git status
::gct::git commit
::gcta::git commit -a

These and some other bits of AutoHotkey are packaged into a single script here.

I hope the above and linked script is useful to you; Use it however you want. I accept no responsibility for problems arising from it's use, but if you do find it useful, I'd be tickled pink to hear from you.

1 comment:

  1. Other rules embody a 15 coin payout cap, a 50 credit cap on machines, a 3 coin most bet, and different such regulations. Persistent state refers to passive features on some slot machines, a few of which place to} trigger bonus payouts or different particular features if certain situations are met over time by players on that machine. In addition to progressive jackpots and completely different bonuses, this sport is unique thanks to the Repeating Win Multipliers® characteristic. Every hit in the base sport and free spins bonus creates the prospect to 선시티카지노 win on the following seven spins. Come experience the on line casino area located adjacent to L Bar and Rise Kitchen & Deli. While free slots are nice to play only for enjoyable, many players choose the thrill of enjoying in} real cash games as it can possibly} lead to massive wins.