Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #SingleInstance Force
- #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
- ; #Warn ; Enable warnings to assist with detecting common errors.
- ; author: https://cosci.de
- ; https://www.autohotkey.com/docs/Tutorial.htm
- ; https://www.autohotkey.com/docs/commands/SoundSet.htm
- ; Windows Terminal
- ; STRG+ALT
- ^!T::
- WinActivate Program Manager ; desktop
- RUN wt.exe
- return
- ; Windows Terminal Elevated/Admin User
- ; STRG+ALT+SHIFT
- ^!+T::
- WinActivate Program Manager ; desktop
- RUN *RunAs wt.exe
- return
- ; Mouse Volume Control
- ; Mouse Forward - Volume Up
- XButton2::
- Send {Volume_Up}
- ;repeats the hotkey while holding the buttons
- ; while(GetKeyState("XButton2","P")){
- ; Send {Volume_Up}
- ; Sleep, 100
- ; }
- return
- ; Mouse Back - Volume Down
- XButton1::
- Send {Volume_Down}
- ; SoundSet,-5 ;Volume -5
- return
- ; Mouse Window Control
- ; Mouse Thumb Forward - Tab Right
- XButton2 & LButton::
- ;repeats the hotkey while holding the buttons
- while(GetKeyState("XButton2","P") && GetKeyState("LButton","P")){
- Send ^+{Tab}
- Sleep, 400
- }
- return
- ; Mouse Thumb Forward - Tab Left
- XButton2 & RButton::
- while(GetKeyState("XButton2","P") && GetKeyState("RButton","P")){
- Send ^{Tab}
- Sleep, 400
- }
- return
- ; Mouse Thumb Forward - Reload
- XButton2 & MButton::
- Send ^R
- return
- ; Mouse Thumb Back - Virtual Desktop Left
- XButton1 & LButton::
- Send #^{LEFT}
- return
- ; Mouse Thumb Back - Virtual Desktop Right
- XButton1 & RButton::
- Send #^{Right}
- return
- ; Mouse Thumb Back - Close Tab
- XButton1 & MButton::
- ;Send ^W
- Send ^{F4}
- return
- ; Wheel Up - Move Window Left
- XButton2 & WheelUp::
- Send #{LEFT}
- return
- ; Wheel Down - Move Window Right
- XButton2 & WheelDown::
- Send #{RIGHT}
- return
- ; Wheel Up - Zoom In
- XButton1 & WheelUp::
- Send ^{WheelUp}
- return
- ; Wheel Down - Zoom Out
- XButton1 & WheelDown::
- Send ^{WheelDown}
- return
- ; Media Control on Keyboard
- ; WIN+CTRL+SHIFT
- #^+UP::
- ; SoundSet,+5 ;Volume +5
- Send {Volume_Up}
- return
- #^+DOWN::
- Send {Volume_Down}
- return
- #^Numpad0::
- SoundSet,0 ; set Volume to 10
- Send {Volume_Mute} ; Volume mute
- ; SoundSet,0 ; Volume mute
- return
- #^Numpad1::
- Send {Volume_Up} ; shows the Windows Volume Overlay
- SoundSet,10 ; set Volume to 10
- return
- #^Numpad2::
- Send {Volume_Up} ; shows the Windows Volume Overlay
- SoundSet,20 ; set Volume to 20
- return
- #^Numpad3::
- Send {Volume_Up} ; shows the Windows Volume Overlay
- SoundSet,30 ; set Volume to 30
- return
- #^Numpad4::
- Send {Volume_Up} ; shows the Windows Volume Overlay
- SoundSet,40 ; set Volume to 30
- return
- #^Numpad5::
- Send {Volume_Up} ; shows the Windows Volume Overlay
- SoundSet,50 ; set Volume to 30
- return
- #^Numpad6::
- Send {Volume_Up} ; shows the Windows Volume Overlay
- SoundSet,60 ; set Volume to 30
- return
- #^Numpad7::
- Send {Volume_Up} ; shows the Windows Volume Overlay
- SoundSet,70 ; set Volume to 30
- return
- #^Numpad8::
- Send {Volume_Up} ; shows the Windows Volume Overlay
- SoundSet,80 ; set Volume to 30
- return
- #^Numpad9::
- Send {Volume_Up} ; shows the Windows Volume Overlay
- SoundSet,90 ; set Volume to 30
- return
Advertisement
Add Comment
Please, Sign In to add comment