Jump to content

Recommended Posts

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 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.

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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...