Originally Posted by
swollen
Works really well =]
Having a little bit of trouble with it.
Can't seem to get anything working outside a function called main()
The whole point of main() is to make it more like a C++ program. You should put everything you want executed in main. The program then handles closing its handles after your code is done executing. Use a while loop to stay in main just like you would when writing a gui script.
The way it works is
- Initialize connection to wow.exe and acquire base offsets
- Call main
- Cleanly exit program
So all you have to do is
Code:
#include "lib/wow.au3"
function main()
// your code here
endfunc
and your program will work fine