|
Post by Aikizen on Nov 7, 2004 3:26:48 GMT -5
Hello there, I'm new to scripting and just made my first attempt at a simple script to repeat synthing, it works the first 2-3 times, and then it seems to miss some of the RIGHT commands, or an ENTER here and there, and messes it all up.
Can't figure out why, tried working with extra sleep between sends and such, no avail. Any help would be greatly appreciated!
Here's the code:
AutoItSetOption("SendKeyDelay", 330); $Counter = 0; sleep(5000);
While $Counter < 12 Synth(); $Counter = $Counter + 1; sleep(30000); Wend Send("/party <call2>{ENTER}");
Func Synth(); Send("^i"); Send("{ENTER 3}"); Sleep(30); Send("{DOWN}"); sleep(20); Send("{ENTER 2}"); sleep(30); Send("{RIGHT 4}"); sleep(30); Send("{ENTER}");
EndFunc;
|
|
|
Post by TinyTerror on Nov 7, 2004 13:14:52 GMT -5
Try adding the following line underneath the first AutoITSetOption command:
AutoItSetOption("SendKeyDownDelay",200);
This will make autouIT hold down the macro keys for longer, ensuring that the macro is actually executed. FFXI can be a bit slow recognizing that macros have been pressed. If you still have problems, you can make this number as high as you want. Making it over 1000 most likely won't make much of a difference.
|
|
|
Post by Aikizen on Nov 7, 2004 18:02:03 GMT -5
Ah! I have a feeling that will work, I'm at work right now, will try it tonight. Thanks a lot.
|
|
|
Post by Aikizen on Nov 8, 2004 14:58:30 GMT -5
Thanks a bunch TinyTerror, that fully solved my problem Looking forward to figuring out how to use FFACT now.
|
|
|
Post by TinyTerror on Nov 8, 2004 16:03:20 GMT -5
If you have anymore questions, please post.
|
|
Baz
New Member
Posts: 5
|
Post by Baz on Dec 8, 2004 6:28:00 GMT -5
ok im really new hehe and I was wondering what the ^i is and also why the script goes to a macro and why u have different numbers after the enter key
thanx sorry for the newbee questions
|
|
|
Post by TinyTerror on Dec 8, 2004 8:29:07 GMT -5
The ^ tells autoit to press ctrl while sending the key. Send("^6") is like saying ctrl+6. Send({ENTER 4}) presses enter 4 times.
|
|