Advertisement
bunam

autokey script

Aug 2nd, 2018
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. GroupAdd, f4group, ahk_class Chrome_WidgetWin_1
  2. GroupAdd, f4group, ahk_class Photoshop
  3. ; you can add as many as you like here
  4.  
  5. #IfWinNotActive ahk_group f4group
  6. ^w::Send !{F4}
  7.  
  8. #if !WinActive("ahk_class Notepad") or !WinActive("ahk_class Notepad")
  9. +F5::Edit ; Shift-F5 launches the current AutoHotkey script in preferred editor, else Notepad
  10. ^F5::Reload ; Ctrl-F5 reloads the current AutoHotKey script after any edits.
  11.  
  12. ; Shift + Wheel for horizontal scrolling
  13.  
  14. +WheelUp::
  15.     if !WinActive("ahk_class SunAwtFrame") {
  16.         ; Scroll to the left
  17.         MouseGetPos,,,id, fcontrol,1
  18.         Loop 8 ; <-- Increase for faster scrolling
  19.             SendMessage, 0x114, 0, 0, %fcontrol%, ahk_id %id% ; 0x114 is WM_HSCROLL and the 0 after it is SB_LINERIGHT.
  20.     }
  21. return
  22.  
  23. +WheelDown::
  24.     if !WinActive("ahk_class SunAwtFrame") {
  25.         ;Scroll to the right
  26.         MouseGetPos,,,id, fcontrol,1
  27.         Loop 8 ; <-- Increase for faster scrolling
  28.             SendMessage, 0x114, 1, 0, %fcontrol%, ahk_id %id% ;  0x114 is WM_HSCROLL and the 1 after it is SB_LINELEFT.
  29.     }
  30. return
  31.  
  32. ; active ctrl+v dans les consoles
  33. #If WinActive("ahk_class ConsoleWindowClass") or WinActive("ahk_class mintty") or WinActive("ahk_class KiTTY")
  34. ^V::
  35. SendInput {Raw}%clipboard%
  36. return
  37. #IfWinActive
  38.  
  39. ;=============================================================================;
  40. ; WINDOWS KEY + Alt + Down  --  Minimizies Active window
  41. ;=============================================================================;
  42. ; instead of "Restore Down" for Win+Down
  43. #!Down::WinMinimize, A
  44.  
  45. ::bonj::
  46. SendInput Bonjour,{enter}{enter}{enter}{enter}Cordialement,{enter}{enter}me
  47. Send {Left 32}
  48. return
  49.  
  50. ::cco::
  51. SendInput Cordialement,{enter}{enter}me
  52. return
  53.  
  54. ::@+::
  55. SendInput @{+}{enter}me
  56. return
  57.  
  58. ::@td::
  59. SendInput %A_YYYY%-%A_MM%-%A_DD%
  60. return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement