#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!
Code for less recoil
-
- Posts: 141
- Joined: 19 Jul 2017, 09:59
Re: Code for less recoil
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
https://docs.microsoft.com/en-us/windows/desktop/api/winuser/nf-winuser-mouse_event
Re: Code for less recoil
Which values causes it to drag down slow or faster?
-
- Posts: 141
- Joined: 19 Jul 2017, 09:59
Re: Code for less recoil
sleep commands
Re: Code for less recoil
How can I add pause and unpause while in program?
Re: Code for less recoil
Thanks
-
- Posts: 141
- Joined: 19 Jul 2017, 09:59
Who is online
Users browsing this forum: Gemos and 83 guests