|
Post by TinyTerror on Oct 11, 2004 23:05:55 GMT -5
This thread is for those with zero experiance in scripting. It will cover how to install AutoIT and how to make and run a script. The first thing you are going to want to do is to download AutoIT. You need this in order to run scripts as well as making your own. You can download it here: www.autoitscript.com/cgi-bin/getfile.pl?autoit3/autoit-v3-setup.exeDownload it and install it. Now you are ready to begin! On your start menu, you will now have an AutoIT folder. This folder contains two usefull links for beginners. First you have the Run Script link thats used to run scripts, and second you have the Examples link. The examples are short easy scripts that you can look at to get a general idea of how things work. To run example scripts, or oter scripts you download from the internet, you use the Run Script program I mentioned above. When you click on Run Script, a file open dialog box will come up asking you to select the script you would like to run. Alternately, you can double click on the icon for your script to run it. When you run a script, one of two things will happen. If your script has no errors, it will run happily in the background. You will see a little AutoIT icon in your system tray. Clicking on this icon will pause the script. Right click and uncheck pause to continue. If your script has errors, AutoIT will bring up an error message telling you what line the error took place on. For the most part, you should be able to run other people's scripts fairly well without errors. When it comes time for you to make your own script, you start by creating the script file. This is done by right clicking, then going to new->AutoIT V3 Script. A new file with a .AU3 extension will be created. To edit this file, right click and select edit. AutoIT scripts are just text files, so you can edit them in notepad or another text editor of your choice. When you want to run your script, double click on it or use the Run Script link in the start menu. To stop a script from running, right click on the autoIT icon in your system tray and select exit. In order to make the starting and stopping of scripts easier, I recomend using the FFXI windower. This way you can start and stop scripts at will without having to exit FFXI. Post any questions!
|
|
Ibus
New Member
Posts: 22
|
Post by Ibus on Oct 12, 2004 4:23:09 GMT -5
Is the coding in AutoIT different from ACTools? Can I use scripts from ACTools with AutoIT?
|
|
|
Post by TinyTerror on Oct 12, 2004 13:59:23 GMT -5
AutoIT and AC Tools are two different languages, and are not compatable with each other.
|
|
|
Post by jtatauburn on Oct 28, 2004 9:12:13 GMT -5
As i've mentioned in a previous post, i just bought this for PC last night after 7 months on PS2, what is the windower you run scripts out of?
|
|
|
Post by jtatauburn on Oct 28, 2004 9:13:43 GMT -5
jesus christ i guess i better look closely at the forums before i post stupid questions, disregard my last post
|
|
|
Post by TinyTerror on Oct 28, 2004 9:25:49 GMT -5
Relax. Nobody is going to jump down your throat for being a little confused.
|
|
Joker
New Member
Posts: 7
|
Post by Joker on Nov 17, 2004 22:19:52 GMT -5
I have a fish bot for autoIt but would like to put in something so if someone namingly a gm was to send me a tell I would get a buzzer and auto pause the script.The script i have theres no way to stop it once you start it and if you have every typed anything while the bot is on it would send whatever got typed before it autocasted.Kinda a pain when you get half way thrue typing and the person says .Was wondering if thers a script i could put in and where would i put it at?
|
|
|
Post by TinyTerror on Nov 17, 2004 23:55:13 GMT -5
GM's dont use tells. They have a custom dialog box that pops up and asks you if you are AFK. With current methods, its hard to scan for this box without taking up all of the CPU. Eventually I expect a good method to pop up, but until then, you are best off sticking close to your computer while running scripts.
|
|
Joker
New Member
Posts: 7
|
Post by Joker on Nov 19, 2004 5:12:08 GMT -5
I am sory for the newb questions but i gues its the only way to learn. This prob. sounds like a dumb question but i am going to ask it anyhow lol. I want to start scripting so i figure i will play around with a script i already have and work from there.I seen on a diff. post here about a fishing bot that kinda got me thinking.I have some sound files i would like to imput into the script for when you catch a fish and things like that.I have tried to imput them and i could get one to work but it seems to just keep looping that same sound file over and over.I dont use bots that often and when i do its just to tinker around and learn new ideas.I was wondering where should i put the script. this is a part of my script that i have so far. If PixelGetColor(47,1000) = 16777215 AND PixelGetColor(142,999) = 16777215 AND PixelGetColor(330,997) = 16777215 Then $nobait = 1;You ran out of bait so let's get ready to change it. $soundfile="C:\SOUND\outofbait.mp3" SoundPlay($soundfile) EndIf if anyone has any ideas it would help me out. this is a 1280x1024 res.would also like to change it to a 800x600. was also wondering how i could do that.
|
|
|
Post by TinyTerror on Nov 19, 2004 8:15:02 GMT -5
It would help if you posted the entire script. Its a little hard to nail down a problem when all we have is a short block of code. I'll try to help you once you provide a bit more code for me to take a look at.
|
|
Joker
New Member
Posts: 7
|
Post by Joker on Nov 19, 2004 14:14:26 GMT -5
I got the actual bot from rpg awhile back.This is what ive dont to it trying to get sounds.
Sleep(100000);give time to open FFXI $fisha = 2; $event = 0; $bite = 0; $failsafe=0; $nobait = 0; WinWaitActive("FFXiApp");
While $fisha > 1 AutoItSetOption("SendKeyDelay", 40); Send ("!1"); fishing macro $event = 0; $failsafe = 0; $nobait = 0;
Do $soundfile="C:\SOUND\Commenced.mp3" SoundPlay($soundfile) Sleep(250);
If PixelGetColor(22,994) = 16777215 AND PixelGetColor(108,996) = 16777215 AND PixelGetColor(228,997) = 16777215 Then AutoItSetOption("SendKeyDelay", 40); Sleep(Random(3000,3200)); Send("{ENTER}"); Sleep(5400); EndIf
If PixelGetColor(43,997) = 16777215 AND PixelGetColor(83,998) = 16777215 AND PixelGetColor(175,999) = 16777215 Then Sleep(Random(5100,5400));You lost your catch. Finish and speed things up a little. $event = 1; $soundfile="C:\SOUND\fishgotaway.mp3" SoundPlay($soundfile) EndIf
If PixelGetColor(37,1000) = 16777215 AND PixelGetColor(77,1000) = 16777215 AND PixelGetColor(180,998) = 16777215 Then Sleep(Random(5100,5400));You didn't catch anything. Finish and speed things up a little. $event = 1; EndIf
If PixelGetColor(47,1000) = 16777215 AND PixelGetColor(142,999) = 16777215 AND PixelGetColor(330,997) = 16777215 Then $nobait = 1;You ran out of bait so let's get ready to change it. $soundfile="C:\SOUND\outofbait.mp3" SoundPlay($soundfile) EndIf
If PixelGetColor(43,995) = 16777215 AND PixelGetColor(71,997) = 16777215 AND PixelGetColor(84,995) = 16777215 Then autosort() Sleep(Random(2100,2200)); $event = 1;You caught something so now autosort, sleep a bit, and finish the event. $soundfile="C:\SOUND\cought.mp3" SoundPlay($soundfile) EndIf
$failsafe = $failsafe+1; If $failsafe = 175 Then $event = 1; EndIf
Until $event = 1
sleep(2000);
If $nobait = 1 Then Send("!2");change bait $soundfile="C:\SOUND\BaitReset.mp3" SoundPlay($soundfile) EndIf
WEnd
Func autosort() $soundfile="C:\SOUND\sorting.mp3" SoundPlay($soundfile) Sleep(9000); AutoItSetOption("SendKeyDelay", 0235); Send ("!i"); Sleep(0250); Send ("{NUMPADADD}"); Sleep (0250); Send ("{ENTER}"); sleep(0350); Send ( "a" ); sleep(0350); Send ("{ENTER}"); sleep(0250); Send ("{ESCAPE}"); sleep(0250); Send ("{ESCAPE}"); Sleep (0250); EndFunc
|
|
|
Post by TinyTerror on Nov 19, 2004 14:24:54 GMT -5
The reason the sound keeps looping over and over is because you have the sound play repeatedly in the loop. Try removing the sound code under the do statement. I have a feeling having the script play a sound every time it casts would get pretty irritating.
|
|
|
Post by SpaceMarine on Dec 9, 2004 1:36:31 GMT -5
So when you have AutoIT running in the background, what is the deal with the macros that are set for alt and cntl and such. I assume AutoIT activates these? I tried a scripting the other night with a fishbot, just goofing around, and it went crazy. It tried synthing with lightning crystals. I had no idea what was going on. Still working on the stuff...
|
|
|
Post by TinyTerror on Dec 9, 2004 7:15:39 GMT -5
AutoIT is basically designed to automate user interface related tasks in windows. Any window that has focus will recieve input from the autoit script that is running. And dont be put off by scripts going crazy. This is by no means an exact science, and a script that works fine for one person might melt on another person's setup. Keep at it and you will get it working.
|
|
|
Post by Ashitaka on Jan 5, 2005 2:07:29 GMT -5
I don't mean to sound uninformed, but I am in this area. I have a fishing bot and it works fine but the command"autosort()" is a problem. Occasionally it will open up the auto sort but it hits "No" (this being the button the cursor is on when you open this particular window) is there anyway to get it to move up 1 button on to "yes" before it hits enter? Any help would be appriciated.
|
|