xtrykr Posted August 20, 2008 Posted August 20, 2008 Is there an example script that allows me to set a key to a macro that rapidfires a certain key, and then if i press that key again, it turns the rapidfire off? Thanks!
JFee Posted August 20, 2008 Posted August 20, 2008 Not that I know of... you're gonna have to do some coding yourself. OH NO! Here are some things to look up Do...until loops TimerInit and TimerDiff (to detect a double tap to start the "rapid fire") Send Regards,Josh
rasim Posted August 20, 2008 Posted August 20, 2008 (edited) xtrykrDon`t completely understand what is a rapid fire, this?#include <Misc.au3> $hDll = DllOpen("user32.dll") MsgBox(0, "Info", 'Press "A" key for rapid fire') While 1 If _IsPressed("41", $hDll) Then Do Send("a") Sleep(100) Until _IsPressed("41", $hDll) = 1 EndIf Sleep(100) WEnd Func OnAutoItExit() DllClose($hDll) EndFunc Edited August 20, 2008 by rasim
dgarrett8 Posted August 23, 2008 Posted August 23, 2008 (edited) While 1 If _IsPressed("41", $hDll) Then Do Send("a") Sleep(100) Until _IsPressed("41", $hDll) = 1 EndIf Sleep(100) WEnd I have a simple question. What does the "41" represent? Edited August 23, 2008 by dgarrett8 "I think, therefore I am"[size="1"]René Descartes[/size]
BrettF Posted August 23, 2008 Posted August 23, 2008 Quick search of the help file would have told you this. 41 A key Cheers Brett Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version!
dgarrett8 Posted August 23, 2008 Posted August 23, 2008 (edited) I see now, it represents the hex. I looked under FAQ before i posted here and I was confused. So no need to get " " But thank you for helping me understand better. Edited August 23, 2008 by dgarrett8 "I think, therefore I am"[size="1"]René Descartes[/size]
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now