Software Developer. Computer Geek. INTJ.

Month February 2011

Detect Cygwin in a shell script

Every now and then you need to work out if a script is running in Cygwin…

The Woman in Black

Run a program with a keyboard shortcut with AutoHotKey

These are a few examples from my AutoHotkey script that run various programs when you press certain keyboard shortcuts. Add as many of these as you want to a .ahk file, and set that to be run at startup.

Turn monitor off with a keyboard shortcut with AutoHotKey

This is part of my AutoHotkey script that turns off my monitor when I press Win+\. It also turns the screensaver on at the same time, so that Windows Live Messenger (and any other programs) know I am away.

Sleep/suspend/hibernate computer with a keyboard shortcut using AutoHotKey

This is part of my AutoHotkey script that puts my computer to sleep when I press Win+F12.

Paste the current date into any program using AutoHotKey

This is part of my AutoHotkey script that pastes the current date into any program when I press Ctrl+Alt+Shift+D.

© 2021 Dave James Miller — Powered by WordPress

Theme by Anders NorenUp ↑