Advertisement
Guest User

Untitled

a guest
Dec 27th, 2018
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. #Include Screen_brightness.ahk
  2. BS := new BrightnessSetter()
  3. #F5::BS.SetBrightness(3)
  4. #F4::BS.SetBrightness(-3)
  5. return
  6.  
  7. SetTitleMatchMode, Regex
  8. #If WinActive("Google Docs ahk_class Chrome_WidgetWin_1")
  9. ; #If WinActive("Log ahk_class Chrome_WidgetWin_1")|| WinActive("Jan ahk_class Chrome_WidgetWin_1")|| WinActive("Feb ahk_class Chrome_WidgetWin_1")|| WinActive("Mar ahk_class Chrome_WidgetWin_1")
  10. ; prevent page from reloading
  11. F5::
  12. return
  13.  
  14. ; create a comment
  15. !c::
  16. send ^!m
  17. sleep, 100
  18. return
  19.  
  20.  
  21. SetTitleMatchMode, RegEx
  22. #If WinActive("Google Sheets ahk_class Chrome_WidgetWin_1")
  23. ; create a new line in google sheets
  24. !r::
  25. send +!i
  26. sleep 100
  27. send r
  28. return
  29.  
  30. #IfWinActive ; reset winactive"
  31.  
  32. #n::
  33. run Notepad++
  34. return
  35. #w::
  36. run winword
  37. sleep, 6000
  38. return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement