Skip to content

Instantly share code, notes, and snippets.

@alshain
Last active April 7, 2019 11:42
Show Gist options
  • Save alshain/b177c29a364915eecde213bbf893709d to your computer and use it in GitHub Desktop.
Save alshain/b177c29a364915eecde213bbf893709d to your computer and use it in GitHub Desktop.
AutoHotkey to launch Everything via Ctrl-Win-Enter
; Press Ctrl-Win-Enter to show Everything (also works on NumPad)
; Create file in run `install_startmenu_startup_shortcut.bat` to register the file for the currently running user as a startup item.
; ^ Ctrl
; # Windows key
^#Enter::Run "C:\Program Files\Everything\Everything.exe" -togglewindow
; Hmm, when working on notebook attached to full size keyboard
; Ctrl-Win-Numpad works just fine with only the above key.
; Why do I also need this then for the Desktop computer? What gives?
^#NumpadEnter::Run "C:\Program Files\Everything\Everything.exe" -togglewindow
powershell "$s=(New-Object -COM WScript.Shell).CreateShortcut('%userprofile%\Start Menu\Programs\Startup\everything.ahk.lnk');$s.TargetPath=([string] (Resolve-Path 'everything.ahk'));$s.Save(); Write-Output 'All global Start-up programs via Start Menu';Get-ChildItem '%ALLUSERSPROFILE%\Start Menu\Programs\Startup';Write-Output 'All User-Defined Start-up programs';Get-ChildItem '%userprofile%\Start Menu\Programs\Startup'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment