Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; Always-on-Top/Panel for Scratchpad (Google Chrome)
- ; AutoHotkey script by wandersick (at gmail) 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,ahk_class Chrome_WidgetWin_0,Scratchpad
- WinSet, AlwaysOnTop, On, A
- Return
- +!t::Winset, AlwaysOnTop, Toggle, A
Add Comment
Please, Sign In to add comment