Rapid Fire while holding Left Ctrl Topic is solved
Rapid Fire while holding Left Ctrl
Hello.
I'd like to get help in the script so that when I hold the Left Ctrl key, my left mouse click becomes fast, and getting disabled when I release the Left Ctrl.
Thanks.
I'd like to get help in the script so that when I hold the Left Ctrl key, my left mouse click becomes fast, and getting disabled when I release the Left Ctrl.
Thanks.
Re: Rapid Fire while holding Left Ctrl
Hallo,
try:
try:
Code: Select all
*LCtrl::
~*LButton::
While, GetKeyState("LCtrl","P") And GetKeyState("LButton","P")
SendInput, {LButton}
Return
Re: Rapid Fire while holding Left Ctrl
Worked perfectlyRohwedder wrote: ↑07 Oct 2022, 01:50Hallo,
try:Code: Select all
*LCtrl:: ~*LButton:: While, GetKeyState("LCtrl","P") And GetKeyState("LButton","P") SendInput, {LButton} Return
It would be possible to create a script that allows me to hold Lshift, and while pressed, would activate Lctrl pressed + left mouse click stay fast, being disabled when releasing Lshift. If possible too, being able to adjust the amount of mouse clicks, like 10 clicks per second or something like that.
This would really help my wrists in Path of Exile game.
Sorry to bother.
Thanks.
Re: Rapid Fire while holding Left Ctrl
Then perhaps:My opinion: It's a waste to block two of the valuable modifier keys for this purpose.
Code: Select all
#InstallKeybdHook
#InstallMouseHook
#IF GetKeyState("LShift","P")
*LCtrl::
~*LButton::
While, GetKeyState("LCtrl","P") And GetKeyState("LButton","P")
{
SendInput, {LButton}
ToolTip,% A_TickCount
Sleep, 100 ;to adjust the amount of mouse clicks per second
}
Return
#IF
Re: Rapid Fire while holding Left Ctrl
It doesnt work for what i need. But as you say, its a waste block them.
Maybe some script like this one, but instead of auto clicking, make it manual click with some function sleep to control the ammount of clicks per second.
[Mod edit: [code][/code] tags added.]
Maybe some script like this one, but instead of auto clicking, make it manual click with some function sleep to control the ammount of clicks per second.
Code: Select all
#MaxThreadsPerHotkey, 2
SetDefaultMouseSpeed, 0
SetBatchLines, -1
ListLines, Off
F12::
bFlag := !bFlag
While bFlag
Click
Return
Re: Rapid Fire while holding Left Ctrl
Then,
try this Timer:
A Timer is not suitable for very fast repetition rates, because its period (here 110 ms) is typically rounded up to the next multiple of 10 or 15.6 ms (depending on the type of hardware and the installed drivers).
try this Timer:
Code: Select all
F12::SetTimer, F12 Up,% (F12:=!F12)?110:"Off"
F12 Up::Click %F12% ; on/off, every 110 ms
Re: Rapid Fire while holding Left Ctrl
Thanks man, works so great.
One last ask. Can you do this but with no automatic click? Just rapid click but manual please.
Thank you so much for your time.
One last ask. Can you do this but with no automatic click? Just rapid click but manual please.
Thank you so much for your time.
Re: Rapid Fire while holding Left Ctrl Topic is solved
This?:
Code: Select all
#InstallMouseHook
F12::SetTimer, F12 Up,% (F12:=!F12)?110:"Off"
F12 Up::Click,% F12&&GetKeyState("LButton","P")
; on/off, every 110 ms if LButton down
Re: Rapid Fire while holding Left Ctrl
Thank you so much for your attention. You help me a lot.
My hand alrelady get better a little bit.
My hand alrelady get better a little bit.