Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Child pages (Children Display)

  • This is usually the first programming language that I recommend people use, other than Excel formulas.

 

 

Useful code snippets

 

Code Block
titleSet 'Capslock' to mute / unmute, and set Shift+Win and Shift+LAlt to volume-up and volume-down.
collapsetrue
Capslock::SoundSet, +1, , mute

+LWin::SoundSet -1
+LAlt::SoundSet +1
Code Block
titleReload the AutoHotkey script; this makes it faster to make changes to the script file and test them:
collapsetrue
^F1::
    reload
return
Code Block
titleDisable keys that I never use but occasionally hit by mistake.
collapsetrue
Insert::
return

Launch_App2:: ; 'Calc' button
return

NumLock::
return

PgUp::
return

PgDn::
return
Code Block
titleToggle Dimmer so I can turn it off easily when I want to take a screenshot.
collapsetrue
^F2:: ; Ctrl+F2
    if ProcessExist("Dimmer.exe")
        Process, Close, Dimmer.exe
    else
        Run, C:\Dimmer_v1.0\Dimmer.exe
return

ProcessExist(Name){
	Process,Exist,%Name%
	return Errorlevel
}
  • Code Block
    titleBind Ctrl+F3 to PrintScreen for easier screenshots when disabling Dimmer
    collapsetrue
    ^F3::Send {PrintScreen}
Code Block
titleMake the active window set to "Always on top".
collapsetrue
^SPACE::  Winset, Alwaysontop, , A
    • This is REALLY helpful when you're trying to copy data from one window to another. If you hit control-space again it goes back to normal.