How to remove delay?

Ask gaming related questions
Frosse1
Posts: 9
Joined: 11 Oct 2019, 17:47

How to remove delay?

12 Oct 2019, 13:38

Hey

Im new here and im making simple scripts for video games. One guy helped me with dragging script and he gave me some experience about it. He made simple script that ill post below and its working perfectly but i want to remove DELAY when im holding hotkey to run this script. I mean when i press hotkey ( F1 here ) it drags once and if i still hold this F1 key there is 1 second delay and then script is spammed. I want to remove this 1 sec delay if its possible. My simple script looks like this:

Code: Select all

#SingleInstance, Force
#NoEnv
SetBatchLines, -1
SendMode Input
SetKeyDelay, -1, -1
SetWinDelay, -1
SetControlDelay, -1
SetMouseDelay, -1
SetDefaultMouseSpeed, 0


F4::
MouseGetPos, MX, MY
MouseClickDrag, L, 1745, 781, MX, MY, 0
return
If you need me to record you i can do it because its complicated to explain
Rohwedder
Posts: 2290
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: How to remove delay?

13 Oct 2019, 01:35

Hallo,
F1? It's more likely to be F4! Try:

Code: Select all

#SingleInstance, Force
#NoEnv
SetBatchLines, -1
SendMode Input
SetKeyDelay, -1, -1
SetWinDelay, -1
SetControlDelay, -1
SetMouseDelay, -1
SetDefaultMouseSpeed, 0
F4::
While, GetKeyState("F4","P")
{
	MouseGetPos, MX, MY
	MouseClickDrag, L, 1745, 781, MX, MY, 0
}
return
Frosse1
Posts: 9
Joined: 11 Oct 2019, 17:47

Re: How to remove delay?

13 Oct 2019, 10:23

yes yes its f4 my bad and i see you know what i mean cuz its working like it should but not exactly because its too slow now but delay is removed so its good but i need my spam fast as fuck again now

Return to “Gaming”

Who is online

Users browsing this forum: No registered users and 26 guests