Instead of feeding me one.
All i'd like to know is how to put two functions that use the same hotkey without one rendering the other unusable or disrupt its functionality.
For example, I want to put two or three more functions that should be triggered by the ~$*LButton::
Making a thread here is a last resort, I know it might be a generic question answered before but I don't know the right function name in order to Google it and read.
Thanks in advance.
Please teach me how to fish
Re: Please teach me how to fish
How is the script going to know which of the two functions to execute?
There isn’t a function name to search for, you have to use the answer to the above in some sort of conditional statement, like an “If/else”
edit: or do you mean you want multiple functions to execute?
There isn’t a function name to search for, you have to use the answer to the above in some sort of conditional statement, like an “If/else”
edit: or do you mean you want multiple functions to execute?
Code: Select all
hotkey::
Func1()
Func2()
Return
EitherMouse - Multiple mice, individual settings . . . . www.EitherMouse.com . . . . forum . . . .
Re: Please teach me how to fish
Hey, thanks for replying.gwarble wrote: ↑12 Apr 2019, 22:24How is the script going to know which of the two functions to execute?
There isn’t a function name to search for, you have to use the answer to the above in some sort of conditional statement, like an “If/else”
edit: or do you mean you want multiple functions to execute?
Code: Select all
hotkey:: Func1() Func2() Return
What i want to do is unite compensation (helps when shooting in FPS games) and making my left click auto open my scope every time it's pressed then release when im no longer holding left click. The codes i'm testing this with need "~$*LButton::" in order to work but using "~$*LButton::" to execute both scripts cancels the other when i want them to work together and stop together.
Re: Please teach me how to fish
you probably need to post your code so I can understand more, but it seems like you want:
when Lbutton is pressed down, pull up scope, fire, compensate (ie move down a little?), wait until Lbutton is released, put away scope
how will you get in multiple shots without releasing Lbutton?
when Lbutton is pressed down, pull up scope, fire, compensate (ie move down a little?), wait until Lbutton is released, put away scope
how will you get in multiple shots without releasing Lbutton?
EitherMouse - Multiple mice, individual settings . . . . www.EitherMouse.com . . . . forum . . . .
Re: Please teach me how to fish
Code: 1gwarble wrote: ↑13 Apr 2019, 10:42you probably need to post your code so I can understand more, but it seems like you want:
when Lbutton is pressed down, pull up scope, fire, compensate (ie move down a little?), wait until Lbutton is released, put away scope
how will you get in multiple shots without releasing Lbutton?
Code: Select all
Insert:: Hotkey, *~$LButton, Toggle
*~$LButton::
while GetKeyState("LButton")
{
DllCall("mouse_event", uint, 1, int, 0, int, 1, uint, 0, int, 0)
Sleep, 15
DllCall("mouse_event", uint, 1, int, 0, int, 1, uint, 0, int, 0)
Sleep, 5
}
Return
Code: Select all
~$*LButton::
send {RButton down}
keywait,LButton
send {RButton up}
return
Code: Select all
~$*LButton::
{
Loop
{
SetMouseDelay 1
MouseClick, Left
Sleep, 1
If (GetKeyState("LButton","P")=0)
{
Break
Return
}
}
}
I'm reading about IF and ELSE but this is where AHK stops being fun and starts to get complicated.
Re: Please teach me how to fish
try using Blind it helps sometime
https://autohotkey.com/docs/commands/Send.htm#blind
https://autohotkey.com/docs/commands/Send.htm#blind
Re: Please teach me how to fish
So a rapid fire bot, recoil reducer and what, an auto quick scope? :DD
Who is online
Users browsing this forum: No registered users and 56 guests