I need help with 3 scripts so when i hold LB it spams R - numpad 1 to turn it on and off
when i hold RB it spams T numpad 2
When i hold RB it spams T and F numpad 3
Thanks guys you're the best
Need Help
Re: Need Help
Tell me how it works for you. If you want only one of hotkeys be present you have to alter some of code.
Code: Select all
#InstallKeybdHook
#InstallMouseHook
#Persistent
#useHook, On
#SingleInstance force
SetBatchLines, -1
;Numlock on
Numpad1:: num1 := !num1
Numpad2:: num2 := !num2
Numpad3:: num3 := !num3
;Numlock off
NumpadEnd:: num1 := !num1
NumpadDown:: num2 := !num2
NumpadPgDn:: num3 := !num3
~RButton::
while GetKeyState("RButton", "P")
{
if (A_TickCount >= startTick + sleepTick || A_index = 1)
{
startTick := A_TickCount, sleepTick := randomTick(120, 33)
if(num1)
Send R
if(num2)
Send T
if(num3){
Send T
Send F
}
sleep 20
}
}
return
randomTick(sleeptime = 200, offset = 38)
{
Random, randtime, -offset, offset
return sleeptime += randtime
}
Who is online
Users browsing this forum: Google [Bot], Mannaia666, Pareidol and 143 guests