Heroz Posted April 7, 2008 Share Posted April 7, 2008 Hello. I'm new to AutoIt and have an idea on a very simple script I would like to make for playing a game. I would like to make a marco that would just type something into the main chat window upon me hitting buttons 1-9 on the numpad.However I have no idea on where to start, I've been messing with AutoIt for a few hours now and not getting anything working at all.Any assistance with a basic script would be great that I could then modify as I learn to use AutoIt to make it a nicer smoother program.Here is what I would like it to do:Be consistantly paused in the background, until I manually close autoit in the tray.Upon hitting buttons 1-9 on the numpad it would send("{ENTER}my message of choice.{ENTER}").That is all I would like help learning to create. If I only had that I could live with it and then learn to add additional bells and whistles as I learn AutoIt.Any help is greatly appreciated. Link to comment Share on other sites More sharing options...
d4rk Posted April 7, 2008 Share Posted April 7, 2008 #include<Misc.au3> while 1 if _Ispressed("60") then send("{Enter}") send("my first message") send("{Enter}") else if _Ispressed("61") then send("{Enter}") send("my second message") send("{Enter}") ... endif wend [quote]Don't expect for a perfect life ... Expect a least troubles ones[/quote]Contact me : ass@kiss.toWhat I Have Done :Favorites Manager Mangage your favorite's folder, that's coolPC Waker For those who want to save stickersWebScipts Supporter For those who've just started with Web and WebScriptsTemporary Looker Simple but powerful to manage your Temporary folder, you know what you downloaded[UDF] _NumberFormat() Better performance on number display[UDF] _DirGet() What a folder contain [how many (hidden,normal,...) files], with one line of code[UDF] _IsPressEs() Just like _IsPress() but for a group of keys Link to comment Share on other sites More sharing options...
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