Windower scripting is composed of executing a series of commands to windower to perform a useful task. The main use of scripting has been to create infinite line macros in order to swap out every piece of gear you have.
However, doing this for an entire series of macro's can be quite cumbersome and requires a LOT of files, so SpellCast was designed to help reduce the need for using scripting for macros. However, scripting still proves to be convenient for other tasks.
Keep in mind, Windower scripting is deliberately lacking some 'features' in order to help keep users from creating malicious botting scripts. Windower Scripting will not let you make the ultimate claim bot, sorry!
While there are many commands for windower, this wiki entry will list the ones that are most relevant to scripting. Please view the Command List for full syntax on each command.
bind !1 input /ma "Thunder IV"
alias equipgear input /equip body "Igqira Weskit";input /equip main "Jupiter's Staff"; alias thun4 equipgear;input /ma "Thunder IV"
As you can see, you call the thun4 alias which then calls the equipgear alias before executing the input.
alias equipgear input /equip body "Igqira Weskit";input /equip head "Wizard's Petaso";input /equip waist "Penitents Rope"; alias tstaff input /equip main "Jupiter's Staff"; alias istaff input /equip main "Aquilo's Staff"; alias thun4 equipgear;tstaff;input /ma "Thunder IV" alias thun3 equipgear;tstaff;input /ma "Thunder III" alias bliz4 equipgear;istaff;input /ma "Blizzard IV" alias bliz3 equipgear;istaff;input /ma "Blizzard III"
Now you can replace the gear just in 1 spot and it changes them all.
Filename: loop.txt echo "hi"; wait 120; //wait 2 minutes exec loop.txt
Now this is highly unrecommended, because you can't stop it! You will never be able to stop this loop.
alias runme exec loop.txt; alias stopme alias runme /; echo "hi"; wait 120; runme;
See what stopme's doing? It's redefining runme again, but with a blank command! So runme does nothing when it is hit. Typing //stopme will stop the loop after those 2 minutes pass.
bind !1 ma Thunder4 bind !2 ma Blizzard3 bind !3 ja Elemental Seal bind !4 ma Cure3
for example, and execute this everytime you switch to the job.
load tparty load spellcast load silence load distance
then you can type //exec filename.txt to load your plugins at once manually if you do not want them to autoload.
Here is a listing of User Contributed Resources.
Please take note of the Create Commons License before submitting a script or guide, and understand that other users are able to edit, and/or copy your work under certain circumstances!