Need Help creating a Basic Script

Ask gaming related questions (AHK v1.1 and older)
tier_problems
Posts: 1
Joined: 08 Aug 2018, 03:17

Need Help creating a Basic Script

08 Aug 2018, 03:29

Hi Team,
can anyone help me out with a basic scrip which performs the following functions ?

* Sets the left click to 25ms delay (which causes a weapon to auto fire for the primary weapon)

* As soon as i press a button to swap to my secondary by pressing a key (lets say q). The delay goes back to its normal state

I tried creating such macro for quite some time , but failed every time. Can anyone tell me any pointers to this ? or perhaps share code for this macro. I`ll greatly appreciate it
Rohwedder
Posts: 7630
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: Need Help creating a Basic Script

09 Aug 2018, 02:12

Hallo,
this ?:

Code: Select all

*q::Return ;Key Q's native function will be blocked
~*LButton::
While, GetKeyState("LButton","P") And !GetKeyState("q","P")
{
	Sleep, 25
	Click
}
Return

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: No registered users and 142 guests