faster sequence in a game

Ask gaming related questions (AHK v1.1 and older)
Osama-Ragab
Posts: 1
Joined: 11 Oct 2019, 22:47

faster sequence in a game

12 Oct 2019, 01:23

hello
i was wondering if someone could help me i made a script to do this sequence in a game the problem is i feel it's not fast enough the code is

Code: Select all

#NoEnv
#MaxHotkeysPerInterval 99000000
#HotkeyInterval 99000000
#KeyHistory 0
ListLines Off
Process, Priority, , A
SetBatchLines, -1
SetKeyDelay, -1, -1
SetMouseDelay, -1
SetDefaultMouseSpeed, 0
SetWinDelay, -1
SetControlDelay, -1
SendMode Input

*f::
Send {y down}
DllCall("Sleep",UInt,10)
Send {\ down}
keywait, f
Send {y up}
DllCall("Sleep",UInt,10)
Send {y down}
Send {y up}
Send {\ up}
return
[Mod edit: [code][/code] tags added]
[Mod edit: improved title
gregster
Posts: 9029
Joined: 30 Sep 2013, 06:48

Re: help

12 Oct 2019, 01:35

I think, it is quite fast.
Well, the keywait, f line will prevent the sequence from repeating, while you hold the f key (you will have to release f and press it again), but I could imagine that it could actually be too fast for some games to register, if you remove that line. Then, you might to need to make the sleep time longer.
Sid4G
Posts: 48
Joined: 02 Apr 2016, 19:11

Re: help

12 Oct 2019, 03:20

isn't dllcall sleep limited to ~16ms?

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: No registered users and 84 guests