Pushing Commands to Window Console via Script

There are no stupid questions, just stupid answers.
4 posts Page 1 of 1
Posts: 1
Joined: Fri Jul 26, 2019 7:49 pm
by tycox94@gmail.com » Fri Jul 26, 2019 7:50 pm
I have a server that runs in a windows console. I am trying to write a python script that will enter information into the game's server console. How can this be done?
Posts: 84
Joined: Fri Feb 27, 2015 5:13 pm
by irei1as » Sat Jul 27, 2019 11:22 am
The easiest way would be to use an external text file that is written by the py and read by the exe in intervals but it may end with access issues if they both try to use it at the same time.
Site Admin
Posts: 447
Joined: Tue Feb 03, 2015 7:25 pm
by LukasPJ » Wed Jul 31, 2019 8:53 am
I used a local network connection in order to connect to Python with c# (my Torque script).
You could explore something similar?

Depends on your use case, but network connection is pretty painless and not an unusual solution
Posts: 12
Joined: Sat Feb 07, 2015 2:58 pm
by GuyA » Tue Aug 06, 2019 7:33 am
If the telnet console is still part of the engine, you could use the python library telnetlib to interact with the server.
Telnet is not secure, so don't go accessing remote machines with it, it will be Ok for use on a lan.
4 posts Page 1 of 1

Who is online

Users browsing this forum: No registered users and 2 guests