Visit us on GitHub

Mi-Ke

A collection of Autohotkey scripts to make daily life in Windows less dull

download .Zip download .TGZ

This Mike is not exactly Mycroft Holmes but rather a collection of Autohotkey scripts to make daily life in Windows less dull.

Two fancy ones:

Control + Win + Z : Zips the entire folder, or just the selected files, in Windows Explorer. (scripts-windows-explorer/windows-explorer-zip-directory)
Win + Alt + D : Minimize all windows on monitor of active Window. Press again to restore. (scripts-other/windows-min-max)

What

A script running in the background (tray icon) with little productivity boosters.

Install

From source

Requires Autohotkey_L.

PowerShell:

git clone https://github.com/itenium-be/Mi-Ke
cd Mi-Ke

# Start
.\mike.ahk

Run .\init.ps1 to create some personal customization example files.

The scripts

Diff 2 files in Windows explorer or the selected text elsewhere

memory-diff.ahk

Control + Win + Left : Put selected text in Desktop\left.txt
Control + Win + Down : Put selected text in Desktop\right.txt and open Diff tool
Control + Win + Up : Show current clipboard content
Control + Win + Right : Open Diff tool with current left/right.txt
Control + Win + Numpad0 : Open Diff tool with a Dropbox conflicted file vs the original

Windows Explorer enhancements

AltGr + Win + D : Open 2 explorers, one in download folder, one with USB stick (scripts-windows-explorer/windows-explorer-copy-download-to-usb)

windows-explorer

2x Esc : Close active Explorer window
2x Capslock : Put full directory of selected file/folder to clipboard
2x Shift + Capslock : Put full selected filename to clipboard
Win + E : Open the path currently on the clipboard in Explorer (builtin)
Control + Shift + N : New directory (builtin)
Control + Shift + F : New file
Control + Shift + T : New txt file

Switch views:

Control + Shift + 3 : View => small icons
Control + Shift + 4 : View => three columns
Control + Shift + 6 : View => details list

Developer tooling

Configuration and implementations.

AltGr + L : Paste lorem ipsum
Paste lorem ipsum:
  label: LoremIpsum
  hotkey: <^>!l

Uri encoding

AltGr + U : Uri convertion of selected text

Follow by pressing e, d or s to encode, decode or slugify.

Uri encode/decode or slugify selected text:
  hotkey: <^>!u
  readFrom: selectedText
  writeTo: clipboard
  followedBy:
     - desc: Uri encode
       key: e
       fn: LC_UriEncode
 
     - desc: Uri decode
       key: d
       fn: LC_UriDecode
 
     - desc: Slugify
       key: s
       fn: Slugify

Aside from uri encoding/decoding, there are also dev tools to, for example:

AltGr + B : Base64 encode/decode selected text or file content
AltGr + C : Change case of selected text (lower, UPPER, Title, Sentence, iNVeRT)
AltGr + E : Change EOL of selected file(s) in Windows Explorer (DOS, Unix, Mac)

Example: To convert selected text to upper case, use AltGr+C followed by u. After pressing the first hotkey, a menu with the posibilities is shown.

Start programs with hotkeys

Quick starters are defined in config\*.yml
Default behavior can be overwritten in config\_custom.yml (create it by running init.ps1)

Some default configurations

Control + Win + C : Start calculator (2x esc to close)
Calculator:
  hotkey: ^#c
  path: <A_WINDIR>\System32\calc.exe
  titleMatcher: ahk_class CalcFrame
  doublePressCloseHotkey: ~ESC
  menu: Applications
Win + C : Start Notepad++
Notepad++:
  hotkey: "#c"
  path:
    - C:\Program Files (x86)\Notepad++\Notepad++.exe
    - C:\Program Files\Notepad++\Notepad++.exe

  # Open file(s) selected in Windows Explorer.
  passExplorerPathAsArgument: file
  explorerFilesSeparator: \"
  # Need to escape the quote there
  menu: Editors
Shift + Win + Alt + P : Open PowerShell
PowerShell (Admin):
  hotkey: +!#p
  titleMatcher: ahk_exe powershell.exe
  path: <A_WINDIR>\System32\WindowsPowerShell\v1.0\powershell.exe
  menu: Consoles

  # When inside Windows Explorer, open in the current path
  passExplorerPathAsArgument: dir
  openWithPathArgs: <exe> -noexit -command "cd '<path>'"

  # RunAs Administrator
  asAdmin: 1
Alt + Win + R : Open PowerShell ISE
PowerShell ISE:
  hotkey: !#r
  titleMatcher: ahk_exe powershell_ise.exe
  path: <A_WINDIR>\System32\WindowsPowerShell\v1.0\powershell_ise.exe
  menu: Editors

  # When inside Windows Explorer, open the selected files
  passExplorerPathAsArgument: file
  openWithPathArgs: <exe> -file "<path>"
  explorerFilesSeparator: ,

Browsers

Browsers

Capslock & W : Open browser
Capslock & X : Google selected text
Capslock & A : Google selected text + autohotkey
Chrome F1 : Open chrome://extensions in new tab

change-sound-volume

Change sound volume with ‘funny’ images.

Win + PgUp : Volume +10
Win + PgDn : Volume -10
Win + Ctrl + PgDn/Up : Volume +/-10 without images
Win + Ctrl + Alt PgDn/Up : Volume +/-1 without images
Win + End : Mute/Restore
Win + Home : Show sound volume

Other resources

Looking for even more productivity boosters?

Look no further!

Developer tooling

Outside Github: