Skip to content

Instantly share code, notes, and snippets.

@wandersick
Created April 12, 2020 11:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wandersick/23fa221ea81f3fcc3682f215a3c1a34e to your computer and use it in GitHub Desktop.
Save wandersick/23fa221ea81f3fcc3682f215a3c1a34e to your computer and use it in GitHub Desktop.
; Always-on-Top Panels for Scratchpad (Google Chrome)
; AutoHotkey script by wandersick 8-Feb-2011 [Revised on 7-Apr]
;
; goals
; 1. ctrl+alt+n to launch scratchpad
; 2. automatically always on top (like panels in ChromeOS)
; 3. alt+shift+t to toggle always on top status in any window
;
; supports:
; - Windows from XP to 7 (by junction)
; - enterprise and regular installation of Chrome
; - multiple instances but the latter run instances will only
; be set to always-on-top when the currently active
; (topmost) window is not a last instance of scratchpad
;
; before this will work, ensure appropiate version of Chrome
; and Scratchpad are installed and account sync is enabled.
Chrome=Google\Chrome\Application\chrome.exe
IfExist,%programFiles%\%Chrome%
Browser=%programFiles%\%Chrome%
IfExist,%userProfile%\Local Settings\Application Data\%Chrome%
Browser=%userProfile%\Local Settings\Application Data\%Chrome%
^!n::
Run, "%Browser%" --app-id="kjebfhglflhjjjiceimfkgicifkhjlnm"
WinWaitActive,Scratchpad
WinSet, AlwaysOnTop, On, A
Return
+!t::Winset, AlwaysOnTop, Toggle, A
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment