Agusted 0 Report post 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 ^^ Share this post Link to post Share on other sites
Agusted 0 Report post Posted August 13, 2004 ok I guess <b> </b> doesnt work, but you get the picture... Share this post Link to post Share on other sites
mcfr1es 0 Report post 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. Share this post Link to post Share on other sites
Agusted 0 Report post Posted August 13, 2004 thanks alot Share this post Link to post Share on other sites
Agusted 0 Report post 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 Share this post Link to post Share on other sites
mcfr1es 0 Report post 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. Share this post Link to post Share on other sites