Page 1 of 1

faster sequence in a game

Posted: 12 Oct 2019, 01:23
by Osama-Ragab
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

#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

Send {y down}
Send {\ down}
keywait, f
Send {y up}
Send {y down}
Send {y up}
Send {\ up}
[Mod edit: [code][/code] tags added]
[Mod edit: improved title

Re: help

Posted: 12 Oct 2019, 01:35
by gregster
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.

Re: help

Posted: 12 Oct 2019, 03:20
by Sid4G
isn't dllcall sleep limited to ~16ms?