Requesting a very simple script.

Ask gaming related questions (AHK v1.1 and older)
Kikijiki
Posts: 1
Joined: 20 Jul 2018, 00:35

Requesting a very simple script.

20 Jul 2018, 00:43

Hello, I currently have a script that presses my "1" key 4 times per second. Unfortunately, the keyboard press interferes with another mod I use in game. I BELIEVE that changing the script to use my side mouse button would alleviate this issue.
I'm a complete novice to scripting, so I was wondering if somebody could give me a new script that would use my side mouse button instead of "1". I don't know what the terminology would be, otherwise I would just change "1" to the mouse button in the script.
In-game, it's labeled as "Mouse Button 4".
Rohwedder
Posts: 7625
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: Requesting a very simple script.

22 Jul 2018, 04:14

Hallo,
try:

Code: Select all

XButton1::
SetKeyDelay, 230, 20
While, GetKeyState("XButton1","P")
	Send, 1
Return

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: No registered users and 69 guests