Skip to content

Instantly share code, notes, and snippets.

@bender-the-greatest
Last active January 5, 2017 05:48
Show Gist options
  • Save bender-the-greatest/5ef4aabbc8f1de3d740dd01483b8110a to your computer and use it in GitHub Desktop.
Save bender-the-greatest/5ef4aabbc8f1de3d740dd01483b8110a to your computer and use it in GitHub Desktop.
Autohotkey script for ConEmu
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir C:\Projects ; Ensures a consistent starting directory.
^!t::GoSub, FocusOrStartConEmu
;; This will probably not act as intended if you have more than one ConEmu64 process running
FocusOrStartConemu:
if WinExist("ahk_exe ConEmu64.exe")
WinActivate
else
Run,%A_ProgramFiles%\ConEmu\ConEmu64.exe
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment