ConsoLite and Autoit script

Posts 13 of 3 · Page 1 of 1
ConsoLite and Autoit script
You can call consolite commands from within your autoit script, and this is how you can do it.

in consolite, bind a key to execute a command file, in my case
bind "0" "a_exec command.txt"


Now in your autoit script, add the following

Func aexec($str)
Local $fname = "C:\Nexon\Vindictus\en-US\a_cfg\command.txt"; <---- put in your own a_cfg directory + your command file
Local $fh = FileOpen($fname, 2);
if $fh <> -1 Then
FileWriteLine($fh, $str);
FileClose($fh);
Send("{0}");
EndIf
EndFunc


There, console command from your script!
aexec("cc_change_figure_height 30");



Voilà! All we are missing now is a way to communicate from consolite back to your script!
so the script writes to text file each time?
wouldn't there be like a billion lines in the textfile
Quote Originally Posted by zeiontic View Post
so the script writes to text file each time?
wouldn't there be like a billion lines in the textfile
Nope, FileOpen($fname, 2), opening in mode 2 means new file every time.
Posts 13 of 3 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?