In-Game automated messages.

Ask gaming related questions (AHK v1.1 and older)
Zxeiz
Posts: 3
Joined: 12 Apr 2021, 14:25

In-Game automated messages.

12 Apr 2021, 14:32

Been looking for a script that basically just activates a certain key every x seconds. It's based around a game where you can bind a certain key to do different thing like commands/text messages. So what im looking for is a scrip that hits that specific key in which it then activates the in-game bind.
Zxeiz
Posts: 3
Joined: 12 Apr 2021, 14:25

Re: In-Game automated messages.

12 Apr 2021, 14:48

This seems to be a manual process. If not. Is this the line up of the format properly.

Code: Select all

; This is a manually toggled routine.

freq := 2000 ; 

Tab::        ; 
SetTimer, Go, % (on := !on) ?
SoundBeep, OK ? 1500 : 1000, 30            ; Play a sound; OK to delete
Return

Go:          ;
Click
Send {Space down}
Sleep, 1400
Send {Space up}
Return
[Mod edit: [code][/code] tags added.]
Zxeiz
Posts: 3
Joined: 12 Apr 2021, 14:25

Re: In-Game automated messages.

12 Apr 2021, 15:02

@mikeyww

I've got the script to work, however. When the 2000 mil seconds have passed it mouse1 clicks for some reason. How do I fix that.
User avatar
mikeyww
Posts: 26877
Joined: 09 Sep 2014, 18:38

Re: In-Game automated messages.

12 Apr 2021, 15:12

You can replace the code in the "Go" routine with "a certain key"-- whatever you need. You can use Send.

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: No registered users and 70 guests