wanderSick

Always-on-Top/Panel for Scratchpad (Google Chrome) [Revised]

Apr 6th, 2011
289
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ; Always-on-Top/Panel for Scratchpad (Google Chrome)
  2. ; AutoHotkey script by wandersick (at gmail) 8-Feb-2011 [Revised on 7-Apr]
  3. ;
  4. ; goals
  5. ; 1. ctrl+alt+n to launch scratchpad
  6. ; 2. automatically always on top (like panels in ChromeOS)
  7. ; 3. alt+shift+t to toggle always on top status in any window
  8. ;
  9. ; supports:
  10. ; - Windows from XP to 7 (by junction)
  11. ; - enterprise and regular installation of Chrome
  12. ; - multiple instances but the latter run instances will only
  13. ;   be set to always-on-top when the currently active
  14. ;   (topmost) window is not a last instance of scratchpad
  15. ;
  16. ; before this will work, ensure appropiate version of Chrome
  17. ; and Scratchpad are installed and account sync is enabled.
  18.  
  19. Chrome=Google\Chrome\Application\chrome.exe
  20.  
  21. IfExist,%programFiles%\%Chrome%
  22. Browser=%programFiles%\%Chrome%
  23.  
  24. IfExist,%userProfile%\Local Settings\Application Data\%Chrome%
  25. Browser=%userProfile%\Local Settings\Application Data\%Chrome%
  26.  
  27. ^!n::
  28. Run, "%Browser%" --app-id="kjebfhglflhjjjiceimfkgicifkhjlnm"
  29. WinWaitActive,ahk_class Chrome_WidgetWin_0,Scratchpad
  30. WinSet, AlwaysOnTop, On, A
  31. Return
  32.  
  33. +!t::Winset, AlwaysOnTop, Toggle, A
Add Comment
Please, Sign In to add comment