How can I produce a "rapidfire" hotkey when holding CTRL + Left Click?!
When I release one of both, the rapidfire have to stop AND do one last Left Click.
Code: Select all
#IfWinActive Diablo III ahk_class D3 Main Window Class
CapsLock::Ctrl
Ctrl::Alt
<!$LButton::
Loop {
Click, L
sleep 25
If (!GetKeyState("LButton","p"))
break
}
Return
#IfWinActive
It's working. BUT only if I hold Ctrl FIRST and LeftClick after... :-\
I want to perform it when both keys are holding down, not in a special order.
So for example:
When I hold down LeftClick to move in Diablo 3, and I press Ctrl it have to spam LeftClicks.
When I release the Ctrl key again, it have to press ONE time LeftClick again (because I still hold LeftClick) to move!
When I press Ctrl first, LeftClick after it have to spam LeftClicks aswell. The order shouldn't matter. Just spam LeftClicks when BOTH keys are holding down.
When release Ctrl +1 last LeftClick to still move around.
If you have Diablo 3 you can test it your own.
This is pretty nice to loot all the items on the ground. LeftClick hold = walk around. CTRL + LeftClick = spam LeftClicks to mouse over the items on the ground to loot them!
My script above works well. But only in correct order. AND if I release Ctrl I have to release LeftClick and press (and hold) it again to move :-\
I hope you understand and can help somehow.
Thanks a lot for reading!