Has someone, or can someone code me an AHK, that is compatible with any shooter Game, which when i hold down the left mouse button, it automatically drags doen, maybe with a variable where I can easily change how fast it drags down?
Thanks!
AHK for Shooter
Re: AHK for Shooter
Hallo,
is compatible with any shooter Game? Hardly!
Try:
is compatible with any shooter Game? Hardly!
Try:
Code: Select all
DragDown = 4 ; Speed
~*LButton::SetTimer, DragDown, 1
~*LButton Up::SetTimer, DragDown, Off
DragDown:
SetMouseDelay, -1
MouseMove, 0, %DragDown%, 0, R
Return
Re: AHK for Shooter
I thank you really much, it works for WarZone. When I want the speed slower than 1, what should I type, cause e.g. 0,5 is not working!
Thanks!
Thanks!
Re: AHK for Shooter
@Rohwedder Could you also add a Key to toggle it? LeftAlt Maybe? Ill might change it later.
Thanks!
Thanks!
Re: AHK for Shooter
Then,
try:
try:
Code: Select all
Speed = 0.1 ; between zero and infinity, exclusively
LAlt::DragDown := !DragDown ;on/off with LeftAlt
#If DragDown
~*LButton::SetTimer, DragDown,% 10/Speed
~*LButton Up::SetTimer, DragDown, Off
#If
DragDown:
SetMouseDelay, -1
MouseMove, 0,% 1+Speed, 0, R
Return
Re: AHK for Shooter
I thank you really much, ill test it later c:
Re: AHK for Shooter
@Rohwedder Okay, basicly its working, but when I press LClick the Mouse Drags down, but sometimes, it telepots to an position I were like 1 sec before. Is that fixable?
Re: AHK for Shooter
It moves the cursor to a position it had 1 second before? This must be WarZone's fault!
The script does not know where the cursor was 1 second ago. The command MouseMove, in relative mode, moves the cursor relatively each time, i.e. the then new position is the old one plus a difference.
The script does not know where the cursor was 1 second ago. The command MouseMove, in relative mode, moves the cursor relatively each time, i.e. the then new position is the old one plus a difference.
Re: AHK for Shooter
@Rohwedder
Okay, and is it possibke, to code it working for WarZone? I mean, it works really well but this little error makes it not that useful?
Okay, and is it possibke, to code it working for WarZone? I mean, it works really well but this little error makes it not that useful?
Re: AHK for Shooter
Maybe WarZone likes mouse_event?
Code: Select all
Speed = 0.1 ; between zero and infinity, exclusively
LAlt::DragDown := !DragDown ;on/off with LeftAlt
#If DragDown
~*LButton::SetTimer, DragDown,% 10/Speed
~*LButton Up::SetTimer, DragDown, Off
#If
DragDown:
DllCall("mouse_event", "UInt", 0x01, "UInt", 0, "UInt", 1+Speed)
Return
Re: AHK for Shooter
@Rohwedder Hey, its working perfectly, I really appreciate your work in the Forum. Could you maybe, just if you have time, or if its very easy to you: Could you maybe add a GUI to this Script with following points?
-Button for refreshing the Script
-Text Field to change the Drag down speed
-Text Field to change the toggle key
-Button to deactivate the toggle option
(You can also ignore some points, if they are hard to code or smth, but I would really appreciate it)
Thanks Mate!
-Button for refreshing the Script
-Text Field to change the Drag down speed
-Text Field to change the toggle key
-Button to deactivate the toggle option
(You can also ignore some points, if they are hard to code or smth, but I would really appreciate it)
Thanks Mate!
Re: AHK for Shooter
Creating a gui with the mentioned skills is a beginner's exercise. Get a little busy with Autohotkey and you can do it yourself.
Good success!
Good success!
Re: AHK for Shooter
@Rohwedder Sure, ill look into it, Thanks for your Help!
Re: AHK for Shooter
@Rohwedder Can I post this script in the working Scripts Topic with Credits to you?
Re: AHK for Shooter
No problem.
Who is online
Users browsing this forum: ReyAHK and 56 guests