Skip to content

Instantly share code, notes, and snippets.

@asaf400
Last active August 11, 2023 14:51
Show Gist options
  • Save asaf400/a79d759e493f1de05d9c90762b2eed9c to your computer and use it in GitHub Desktop.
Save asaf400/a79d759e493f1de05d9c90762b2eed9c to your computer and use it in GitHub Desktop.
Mimic the ROCCAT™ Easy-Shift[+]™ feature using AutoHotKey for use with other gaming mice.
; written by https://github.com/asaf400
; well, not really.. Thanks ChatGPT :)
; This is an EasyShift (ROCCAT™ Easy-Shift[+]™) implementation in AHK dubed - EasyAutoShift
; Initialize variables
global awaitingEASButton := false
; List of AHK keys: https://www.autohotkey.com/docs/v1/KeyList.htm
; Define the hotkey for XButton1 (Mouse4) press - EasyAutoShift button
XButton1::
; Set the flag to indicate that EasyAutoShift is pressed and awaiting scroll wheel event
awaitingEASButton := true
return
; Define the hotkey for EasyAutoShift release - EasyAutoShift button
XButton1 Up::
; Reset the flags and state
awaitingEASButton := false
return
; Check for scroll wheel actions and execute if EasyAutoShift was pressed
#If (awaitingEASButton)
WheelUp::
; Perform the desired action when EasyAutoShift was pressed and then scroll wheel is moved up
; Replace the following line with your desired action
MsgBox, Scroll wheel up action executed!
return
WheelDown::
; Perform the desired action when EasyAutoShift was pressed and then scroll wheel is moved down
; Replace the following line with your desired action
MsgBox, Scroll wheel down action executed!
return
#If
@asaf400
Copy link
Author

asaf400 commented Aug 9, 2023

Personally, I use this for Volume control:

Send {Volume_Up}
Send {Volume_Down}

on the scroll events

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment