Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- GroupAdd, f4group, ahk_class Chrome_WidgetWin_1
- GroupAdd, f4group, ahk_class Photoshop
- ; you can add as many as you like here
- #IfWinNotActive ahk_group f4group
- ^w::Send !{F4}
- #if !WinActive("ahk_class Notepad") or !WinActive("ahk_class Notepad")
- +F5::Edit ; Shift-F5 launches the current AutoHotkey script in preferred editor, else Notepad
- ^F5::Reload ; Ctrl-F5 reloads the current AutoHotKey script after any edits.
- ; Shift + Wheel for horizontal scrolling
- +WheelUp::
- if !WinActive("ahk_class SunAwtFrame") {
- ; Scroll to the left
- MouseGetPos,,,id, fcontrol,1
- Loop 8 ; <-- Increase for faster scrolling
- SendMessage, 0x114, 0, 0, %fcontrol%, ahk_id %id% ; 0x114 is WM_HSCROLL and the 0 after it is SB_LINERIGHT.
- }
- return
- +WheelDown::
- if !WinActive("ahk_class SunAwtFrame") {
- ;Scroll to the right
- MouseGetPos,,,id, fcontrol,1
- Loop 8 ; <-- Increase for faster scrolling
- SendMessage, 0x114, 1, 0, %fcontrol%, ahk_id %id% ; 0x114 is WM_HSCROLL and the 1 after it is SB_LINELEFT.
- }
- return
- ; active ctrl+v dans les consoles
- #If WinActive("ahk_class ConsoleWindowClass") or WinActive("ahk_class mintty") or WinActive("ahk_class KiTTY")
- ^V::
- SendInput {Raw}%clipboard%
- return
- #IfWinActive
- ;=============================================================================;
- ; WINDOWS KEY + Alt + Down -- Minimizies Active window
- ;=============================================================================;
- ; instead of "Restore Down" for Win+Down
- #!Down::WinMinimize, A
- ::bonj::
- SendInput Bonjour,{enter}{enter}{enter}{enter}Cordialement,{enter}{enter}me
- Send {Left 32}
- return
- ::cco::
- SendInput Cordialement,{enter}{enter}me
- return
- ::@+::
- SendInput @{+}{enter}me
- return
- ::@td::
- SendInput %A_YYYY%-%A_MM%-%A_DD%
- return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement