[TC] Gaming Forums

Full Version: Let me know when someone says my name or calls a tow
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

I want to play Euro Truck Simulator 2 and LFS at the same time and i want to know when someone says my name in the chat and when someone calls a tow. My chat is logged into the file msg.txt.

Can someone help me? It doesn't matter how: it may be a sound that plays, a message on my screen, a scroll-lock button which goes on, etc.

Now i have my LFS sound also on when LFS is inactive to hear when someone calls a tow, but i also hear all the other sounds now.

I know the basics of programming languages and i have Visual Studio 2015, but i don't know how to code it.

Thanks in advance!Thumbup

Regards, Wouter

This is the new version of http://forum.city-driving.co.uk/showthre...tid=22186.
Well if your chat is being logged to a text document, you could just set up a timer to read the text document every couple of seconds and then using basic if statements, check if it contains any new instances of a certain string (ie, "is calling a tow").

Why don't you just use InSim.NET? It'll be 100x more efficient and easier to achieve what you're trying to do.
Tingle, thank you very much for your answer!

I will try it in a couple of days.
Alright I've put this together. Try it out and modify to your needs.

VS2015 project
https://www.dropbox.com/s/fbohp4ay8yq0jt...g.rar?dl=0
Thank you very much Chuck!
You saved my day! Biggrin
Is it allowed to publish here the modified version?
Ye sure, do whatever you wanna do with it.
Reference URL's