Agusted Posted August 13, 2004 Share Posted August 13, 2004 Hi, I am trying to script something for a game, and I have everything working except one key being sent... Here is the portion of the script... Sleep(9000); AutoItSetOption("SendKeyDelay", 0235); Send ("!i"); Sleep(0250); Send ("{NUMPADADD}"); Sleep (0250); Send ("{ENTER}"); sleep(0350); <b>Send ( "a" ); </b> sleep(0350); Send ("{ENTER}"); sleep(0250); Send ("{ESCAPE}"); sleep(0250); Send ("{ESCAPE}"); Sleep (0250); The bold is what does not seem to work. If this is all correct and it is maybe a problem with a game, could you tell me how to script arrow up? Thanks alot ^^ Link to comment Share on other sites More sharing options...
Agusted Posted August 13, 2004 Author Share Posted August 13, 2004 ok I guess <b> </b> doesnt work, but you get the picture... Link to comment Share on other sites More sharing options...
mcfr1es Posted August 13, 2004 Share Posted August 13, 2004 hmm firstly, unlike java or whatever programming language you are familiar with, autoit does not require a ";" at the end of your lines of code. This does not affect your script, but it is messy. secondly, try a sendkeydelay, this is often the problem when sending key commands to games... if its for ffxi, try a 4ms delay Roger! You son of a big pile o' Monkey Nuts. Link to comment Share on other sites More sharing options...
Agusted Posted August 13, 2004 Author Share Posted August 13, 2004 thanks alot Link to comment Share on other sites More sharing options...
Agusted Posted August 13, 2004 Author Share Posted August 13, 2004 could you please show me how to script that in? I'm not getting it to work...my brother made the original script. thanks again Link to comment Share on other sites More sharing options...
mcfr1es Posted August 13, 2004 Share Posted August 13, 2004 AutoItSetOption ( SendKeyDelay, "milliseconds to pause for without the quotes" )That should be the first line of your code, then just type code as usual Roger! You son of a big pile o' Monkey Nuts. 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