1 hotkey, 5 variants and then reset

Ask gaming related questions (AHK v1.1 and older)
SmokeW33D
Posts: 1
Joined: 31 Jan 2024, 00:29

1 hotkey, 5 variants and then reset

Post by SmokeW33D » 31 Jan 2024, 00:35

Hello,

I'm currently in the process of assigning an AHK keybinder for my group because I have special requests for features that not every keybinder includes and you would then have to switch between several keybinders.

I stand by the issue of healing your life with fish. There are 5 fishing spots.

I want the keybinder (for a hotkey) to output /eat 1 - to /eat 5
| One number larger per keystroke. When you get to 5, the next keystroke should trigger /eat 1 again. How do I code this?


[Mod action: Moved topic to the “Gaming” section.]

Rohwedder
Posts: 7773
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: 1 hotkey, 5 variants and then reset

Post by Rohwedder » 31 Jan 2024, 07:59

Hallo,
try:

Code: Select all

q::Send,% "/ eat" ++Fish:=Mod(0 Fish, 5)
Healing your life with Omega-3 Long-Chain Polyunsaturated Fatty Acids?

Post Reply

Return to “Gaming Help (v1)”