trigen Posted May 8, 2011 Posted May 8, 2011 Just wondering Would it be possible to send a command from the in game chat window /restart to an external app like Autohotkey? and could one make an array of mission to choose from and then send the spesific command ? Thanks 1080 ti, i7700k 5ghz, 16gb 3600 cl14 ddr4 oc
-Dagger- Posted May 8, 2011 Posted May 8, 2011 Yes, it's possible, but you need programming skills. You can use the server.lua and inside the function "on_chat(id, msg, all)" specify that if you recieve a message with the word "/XYZ" then, call a C++ .dll that do something. Then with C++ you can do almost everything. I don't know how Autohotkey works but I guess that if you have the source code of that program you can easily adapt it. If you are interested, see how ServMan captures messages in .lua and see how Leavu+ERI process key presses and call a .dll from lua Not easy, but possible
trigen Posted May 9, 2011 Author Posted May 9, 2011 Thanks and mission accomplished, was simple enough. 1080 ti, i7700k 5ghz, 16gb 3600 cl14 ddr4 oc
Recommended Posts