Last active
August 11, 2023 14:51
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Personally, I use this for Volume control:
on the scroll events