Mouse Wheel sequence.

Get help with using AutoHotkey and its commands and hotkeys
Posts: 1
Joined: 15 Sep 2018, 06:47

Mouse Wheel sequence.

15 Sep 2018, 06:53

Hi, so I want my mouse wheel to do a cycle of things, each action on 1 roll.

For example:
1 Wheel Down -> Press H
Next Wheel Down -> Press E
Next Wheel Down -> Press L
Next Wheel Down -> Press L
Next Wheel Down -> O

So when I Roll my mouse wheel down fast, it writes: "Hello"
and It can go repeat from top again.

What's the code for this?
User avatar
Posts: 496
Joined: 06 Aug 2017, 08:21
Location: Germany

Re: Mouse Wheel sequence.

16 Sep 2018, 05:55

You need:
- WheelDown:: which lets you activate the script by using Mwheel down
- a counter variable which gets incremented by 1 each time you move the mouse wheel down
- if statements that check the value of the variable
- send commands which send the specific key, depending on the value of the variable

I'm not an expert, just an enthusiastic AutoHotkey user. 8-)
Please do not support cheaters!
Keyboard: Logitech G15 first generation - Mice: Logitech G9, G502, G602 - OS: Windows 7 Pro 64 Bit - AHK version:

Return to “Ask For Help”

Who is online

Users browsing this forum: OCP and 122 guests