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: 849
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 ignore every thread which contains the P-word :x
(Hint: It rhymes on Shython)
Please do not support cheaters!
Keyboard: Logitech G15 FE - Mice: Logitech G9 FE, G502 FE, G602 - OS: Windows 7 Pro 64 Bit - AHK version:

Return to “Ask For Help”

Who is online

Users browsing this forum: 975779964, MannyKSoSo, mslonik, rambius, Scuzzle_, sinkfaze and 119 guests