Sign in to follow this  
Followers 0
Agusted

Scripting Newbie

6 posts in this topic

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



ok I guess <b> </b> doesnt work, but you get the picture...

Share this post


Link to post
Share on other sites

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

thanks alot

Share this post


Link to post
Share on other sites

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

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

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0