Simple "Macro" for any mouse

Posts 3142 of 42 · Page 3 of 3
How to stop and start.It's very troublesome when I pick up something or change weapons
got1
Quote Originally Posted by l2370033 View Post
How to stop and start.It's very troublesome when I pick up something or change weapons
Hi, you can use '/' to suspend the script.

I made my own modified version which has the following keys:
P = 0n/off
N =drop item under mouse
U = less recoil (more reduction)
Y = more recoil (less reduction)
/ = suspend (this makes your mouse act normal and the pnuy buttons work again)


Code:
dc = 0

recoil = 6

Pause::Suspend,Toggle
/::Suspend 
LButton:: 
Loop 
{ 
if (dc = 1)
{
SetMouseDelay 10 
Click
DllCall("mouse_event", uint, 1, int, 0, int, 6, uint, 0, int, 0)
If (GetKeyState("LButton","P")=0) 
Break 
}
else {
Click
Break
}
}
return

P::
Loop {
	If(GetKeyState("P", "P")=0)
	{
		if dc = 0
		{
		dc = 1
		ComObjCreate("SAPI.SpVoice").Speak("on")
		}
		else
		{
		dc = 0
		ComObjCreate("SAPI.SpVoice").Speak("off")
		}
		Break
	}
}
return


U::
Loop {
	If(GetKeyState("U", "P")=0)
	{
		recoil += 1
		ComObjCreate("SAPI.SpVoice").Speak(recoil)
		Break
	}
}
return

Y::
Loop {
	If(GetKeyState("Y", "P")=0)
	{
		recoil -= 1
		ComObjCreate("SAPI.SpVoice").Speak(recoil)
		Break
	}
}
return



N::
Loop {
	If(GetKeyState("N", "P")=0)
	{
		send {SHIFT down}
		MouseGetPos, xpos, ypos
		MouseClickDrag, left, xpos, ypos, xpos-200, ypos
		send {SHIFT up}
		MouseMove, xpos, ypos
		Break
	}
}
return

I have never really used AutoHotKey so this is the best i could do for now.

I recommend you to check the PUBG MPGH forum since there is a post about macros now being bannable.
I havent read this yet but i decided to stay off the macros for now.



EDIT:
In my version and the original version you will see a line that say /::suspend which is the keybind to 'pause' the script.
Shouldn't it be?:
DllCall("mouse_event", uint, 1, int, 0, int, recoil, uint, 0, int, 0)
Instead of:
DllCall("mouse_event", uint, 1, int, 0, int, 6, uint, 0, int, 0)
Can you please either post source code or make button to toggle something else not everyone has 4 and 5 mouse buttons ty.
is this bannable?
QUOTE=Demolis;13098725]is this bannable?[/QUOTE]
no
Quote Originally Posted by viczai View Post


add skype: victor.jimenez95
Your video is not working anymore?
is it "save" to use? = no autoban?
virus
Nice virus fuck you
Quote Originally Posted by Dinny99 View Post
Nice virus fuck you
You are a retarded.
Quote Originally Posted by ReeceDaBeast View Post
lmao what... that doesnt make sense
MY BOY.. can u give me the source code ? i really love this fucking macro

- - - Updated - - -

Quote Originally Posted by Pixelazed View Post
There you go ^
for this one, the cursor does not spray down
Posts 3142 of 42 · Page 3 of 3

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?