Mouse Wheel sequence.

Get help with using AutoHotkey and its commands and hotkeys
Hess1378
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
Scr1pter
Posts: 370
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

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

Return to “Ask For Help”

Who is online

Users browsing this forum: Elaphe666 and 77 guests