Code for less recoil

Ask gaming related questions (AHK v1.1 and older)
BitBot
Posts: 5
Joined: 24 Jan 2019, 10:12

Code for less recoil

24 Jan 2019, 10:22

#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.

Insert:: Hotkey, *~$LButton, Toggle

*~$LButton::
while GetKeyState("LButton")
{
DllCall("mouse_event", uint, 1, int, 0, int, 1, uint, 0, int, 0)
Sleep, 0
DllCall("mouse_event", uint, 1, int, 0, int, 1, uint, 0, int, 0)
Sleep, 5
}



Learning on identifying code and writing it myself. So is the Dllcall mouse event with sleep, 5 control the pull-down of a mouse or is the one with 0

Also what is the 1 after uint control because When I changed them to 2 it causes my weapon to shoot after I actually clicked

So what I need help to find out which one pulls the mouse faster down and what does the number after uint and int do actually?

Thank you!
mast4rwang
Posts: 141
Joined: 19 Jul 2017, 09:59

Re: Code for less recoil

24 Jan 2019, 14:44

All you need to know about mouse_event to be able to send clicks, drag mouse rel/abs and so on:
https://docs.microsoft.com/en-us/windows/desktop/api/winuser/nf-winuser-mouse_event
BitBot
Posts: 5
Joined: 24 Jan 2019, 10:12

Re: Code for less recoil

24 Jan 2019, 18:36

Which values causes it to drag down slow or faster?
mast4rwang
Posts: 141
Joined: 19 Jul 2017, 09:59

Re: Code for less recoil

25 Jan 2019, 11:00

sleep commands
BitBot
Posts: 5
Joined: 24 Jan 2019, 10:12

Re: Code for less recoil

25 Jan 2019, 18:04

How can I add pause and unpause while in program?
BitBot
Posts: 5
Joined: 24 Jan 2019, 10:12

Re: Code for less recoil

25 Jan 2019, 18:17

mast4rwang wrote:
25 Jan 2019, 11:00
sleep commands
Thanks
mast4rwang
Posts: 141
Joined: 19 Jul 2017, 09:59

Re: Code for less recoil

26 Jan 2019, 02:27

BitBot wrote:
25 Jan 2019, 18:04
How can I add pause and unpause while in program?
do some tests with Suspend, On and Suspend, Off commands

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: Gemos and 83 guests