Skip to content

About

MouseWheel description

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

Repository files navigation

MouseWheel

MouseWheel is an AutoHotkey v2 script that remaps mouse wheel input for RIFT-related game windows and adds a small floating status overlay.

The current published script is mousewheel_4_16_fixed_v4_14.ahk.

MouseWheel overlay preview

Installation

  1. Install AutoHotkey v2.
  2. Download this repository or clone it.
  3. Run mousewheel_4_16_fixed_v4_14.ahk.
  4. Focus a supported game window and use the hotkeys below.

If your install uses the UX launcher, the executable may be here:

C:\Users\mrkoo\AppData\Local\Programs\AutoHotkey\UX\AutoHotkeyUX.exe

What It Does

  • Sends 1 when you use Ctrl + WheelUp
  • Sends 2 when you use Ctrl + WheelDown
  • Starts or stops auto-repeat with Shift + WheelUp and Shift + WheelDown
  • Stops repeat automatically when the game loses focus
  • Shows a compact overlay with current status and the active target window
  • Reduces accidental in-game zoom by suppressing stray wheel input while spam controls are active

Supported Windows

The script only activates when the focused window title contains one of these values:

  • RIFT
  • OMB1
  • OMB2
  • OMB3
  • OMB4
  • OMB5

If no supported window is focused, the overlay shows No Target and repeat mode will not continue running.

Hotkeys

Input Result
Ctrl + WheelUp Sends 1 once
Ctrl + WheelDown Sends 2 once
Shift + WheelUp Toggles repeating 1
Shift + WheelDown Toggles repeating 2
Escape while repeating Stops repeat
Escape while idle Passes through normally

Repeat Behavior

  • Repeat interval is 70 ms
  • Shift-wheel toggle debounce is 150 ms
  • Repeat stops immediately when the target window loses focus
  • While repeat is active, using another shift-wheel command stops repeat instead of switching directions mid-stream

This is intentional to keep behavior predictable during gameplay and Alt-Tab or focus changes.

Overlay

The script shows a small always-on-top overlay with:

  • Title row: RIFT Wheel
  • Repeat indicator dot
  • Active target label, or No Target when nothing supported is focused
  • A close button to exit the script

You can drag the overlay to reposition it.

Anti-Zoom Protection

The current build keeps the raw wheel suppression added in v4.13 while reorganizing the script into clearer modules in v4.14:

  • Ctrl is held
  • Shift is held
  • auto-repeat is active

This helps prevent occasional wheel events from leaking through to the game as zoom in/out while using the spam controls.

Safety Notes

  • The script is scoped to supported window titles only
  • Losing focus is treated as normal behavior, not an error condition
  • If the active window briefly disappears during focus changes, the script falls back safely instead of throwing a popup

Customization

If you want to change the mapped keys or timing, edit these values near the top of the script:

  • CtrlWheelUpKey
  • CtrlWheelDownKey
  • ShiftWheelUpKey
  • ShiftWheelDownKey
  • RepeatIntervalMs
  • ShiftToggleDebounceMs
  • IdleOverlayLabel
  • TargetWindowTitles

Current Version

Current version: v4.14

Highlights:

  • compact release format
  • focus-loss-safe target detection
  • working overlay close button
  • overlay spacing cleanup
  • symbol encoding fix
  • raw wheel suppression to reduce accidental zoom
  • modular structure cleanup with clearer logical sections

License

This project is licensed under the MIT License.

About

MouseWheel description

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages