|
You last visited: Today at 06:23
Advertisement
Help with AHK
Discussion on Help with AHK within the ArmA forum part of the Shooter category.
04/21/2019, 13:10
|
#1
|
elite*gold: 0
Join Date: Feb 2019
Posts: 11
Received Thanks: 0
|
Help with AHK
I need help with my AHK pulldown script, basically i need it to only activate once HOLDING right click and leftclick, but if i lets say stop holding left click it stops. So if my mag runs out it will stop pulling down because i stop shooting since it now just keeps going down if i keep holding right click.
|
|
|
04/22/2019, 15:39
|
#2
|
elite*gold: 0
Join Date: Oct 2016
Posts: 20
Received Thanks: 2
|
~RButton & ~LButton:: add to your ahk script
|
|
|
04/22/2019, 17:20
|
#3
|
elite*gold: 0
Join Date: Feb 2019
Posts: 11
Received Thanks: 0
|
Quote:
Originally Posted by Du$ter
~RButton & ~LButton:: add to your ahk script
|
~RButton & LButton::
while GetKeyState("RButton")
{
DllCall("mouse_event", uint, 1, int, -1, int, 4.5, uint, 0, int, 0)
Sleep, 12
}
return
~MButton::
if GetKeyState("LButton")
{
Sleep, 5
MouseClick, Middle,,,, D
DllCall("mouse_event", uint, 0, int, 0, int, -1, uint, 0, int, 0)
}
this is the script, try it and you will see clicking right and left click together will pull it down, but when you release left click it keeps going, i want to stop this
|
|
|
04/22/2019, 21:13
|
#4
|
elite*gold: 0
Join Date: Oct 2016
Posts: 20
Received Thanks: 2
|
#NoEnv
SendMode Input
SetWorkingDir %A_ScriptDir%
;
NRA := 1
; SS
NumpadEnter::Suspend
; NR
~RButton & ~LButton::
while GetKeyState("LButton") & NRA
{
DllCall("mouse_event", uint, 1, int, -2, int, 2, uint, 1, int, 0)
Sleep, 1
DllCall("mouse_event", uint, 1, int, 2, int, 1, uint, 0, int, 0)
Sleep, 48
}
return
|
|
|
 |
Similar Threads
|
Experienced AHK users help needed
10/29/2010 - CO2 Programming - 0 Replies
Ok a little guidance is needed now because I am studying ahk files and have tried adding a disconnect on player function to Coelse because it has to be possible and it`s probably really really simple to do. I will add the file for people with knowledge of ahk and tell me where I am going wrong.
By the way I got TWO green addresses so I will also try with the other address to see if that disconnects the player. I have used a .txt to upload it.
Ok then what is wrong with this little script?...
|
[Help] AHK background click
10/01/2010 - Conquer Online 2 - 0 Replies
So I was re-writing a little macro for my tao to help me lvl my tro (I made one similar about a year ago, but lost it lol).
Basically when I press alt+1 the tao should stig+soa+shield+follow me (main char is team leader).
I did the stig+soa+shield using ControlClick command. When I tryed using the same command for follow, it just didn't work (even though it worked about a year ago).
I used WindowSpy and noticed that it had a value for ClassNN (Button14 - if only the team window is opened); I...
|
Request: Help with AHK (explanation in msg)
07/24/2009 - CO2 Programming - 3 Replies
1) I am working on an autofogger. So far I have gotten it to fog twice and sit using {F2}. But I cant make it repeat and I don't know why. Any ideas on making the script run itself over and over until ^p:: (Pause) command is used? and also how do I set up the pause command.
2) I need an example of a melee attacking program. I can't seem to make my bot jump around and kill any monster in the general area. So I need an example to work off of.
Any help would be appreciated, and in the final...
|
GUI + AHK Help
01/23/2009 - CO2 Programming - 9 Replies
Hi all, I am having trouble creating a GUI with AutoHotKey.
What I am trying to do is make a simple GUI that says Enter Player Coordinates and it has 2 spots to put the x and the y coordinates of the player. Then I would like to use the entered coordinates and translate them into the position that I want to click on the cowindow, which depends on the initial position entered. I haven't figured out how to convert the coordinates in order for the bot to click at the right spot given the...
|
All times are GMT +1. The time now is 06:23.
|
|