Help - Search - Members - Calendar
Full Version: New to ACTOOL
AC Tools Everything Macro > AC Tool > AC Tool Discussion
Ilan
Hey comrades! what's up?
Anyhow , I just started using ACTool , and I find pretty useful so far.
I have read some guides , but I can't make a commad work.
This is what I want to happen - while I hold down a certain button (say V) , I want the mouse to click continuously with a given delay between clicks (say delay=50).

Is the KeyDown=V a viable command? Any help would be much appreciated!
Vanberk
Hello Ilan, There is a file inside your AC Tool folder with the name actool.chm or press Help -> AC Tool Help inside the program.
Press Index or search and type: KeyDown then you will get Description, Parameters and Example of KeyDown.

-Vanberk
Ilan
QUOTE(Vanberk @ May 28 2009, 05:36 PM) *
Hello Ilan, There is a file inside your AC Tool folder with the name actool.chm or press Help -> AC Tool Help inside the program.
Press Index or search and type: KeyDown then you will get Description, Parameters and Example of KeyDown.

-Vanberk


Hey Vanberk , thanks for your replay but unfortunately , it wasn't helpful.
I have look in the help section , and it doesn't tell me anything useful. I understand how the command works , but what I
don't understand is if it can function as a condition , and if so , how can it be used combined with the "while" command.
I would be happy if someone could post an example script with those command.
Vanberk
KeyDown A 3 sec <-- will hold down A for 3 seconds.
keys ~? = ?
keys ^@2 = @

Like this?
CODE
while 1=1
delay 50
LeftClick
end
Ilan
QUOTE(Vanberk @ May 28 2009, 07:39 PM) *
KeyDown A 3 sec <-- will hold down A for 3 seconds.
keys ~? = ?
keys ^@2 = @

Like this?
CODE
while 1=1
delay 50
LeftClick
end


Kinda , but no.
The condition is that the key is pressed.
Vanberk
If button K is pressed do something?... Like a hotkey?

CODE
constants
  i=0
end

While 1=1
  ProcessMessages
  Delay 500
End

Procedure Test when {Globalkeys} contains 075 // If you press K
  ClearGlobalKeys
  ShowMessage i = Warning, OK, You pressed the K Button.
end
Ilan
Yes , that is more similiad to what I need , but still not quite.
I need to check if a button is pressed down.

Thanks anyway.

Here is the main idea , I know its wrong , I'm new.
CODE
While 1=1
While KeyDown=V
LeftClick
End
Delay 50
End
Vanberk
Okay, now i understand what you want but i cant find a good solution >.<

This is the only way that I could find but I bet there is a much better way. Note: you need to press the same or another key to break the clicking. so you really dont need to hold down V, only press it once and it will continue until another key is pressed.
CODE
ClearGlobalkeys
while 1=1
  delay 500
  while {GlobalKeys} contains 086 // while V have been pressed.
    delay 50
    Leftclick
    If {GlobalKeyCount} > 1
      ClearGlobalkeys // clear keys when same or another is pressed.
    end
  end
end
Ilan
Good idea , but it's not good for I want to do. Let me explain:
In a game (first person shooter), I want to press a button that will cause the weapon to fire at a slower rate , to decrease recoil caused by auto-fire.
So In game I press more than one button at a time , and I want to hold the key so I can control the shooting better.
I'm trying AutoIt now.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.