Let me know when someone says my name or calls a tow - Printable Version +- [TC] Gaming Forums (https://forum.city-driving.co.uk) +-- Forum: General Information (/forumdisplay.php?fid=1) +--- Forum: General Discussions (/forumdisplay.php?fid=4) +---- Forum: Help Requests & Technical Support (/forumdisplay.php?fid=9) +---- Thread: Let me know when someone says my name or calls a tow (/showthread.php?tid=22209) |
Let me know when someone says my name or calls a tow - Wouter - 2016-04-25 13:03 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! Regards, Wouter This is the new version of http://forum.city-driving.co.uk/showthread.php?tid=22186. RE: Let me know when someone says my name or calls a tow - Tingle - 2016-04-25 15:59 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. RE: Let me know when someone says my name or calls a tow - Wouter - 2016-04-25 16:33 Tingle, thank you very much for your answer! I will try it in a couple of days. RE: Let me know when someone says my name or calls a tow - Chuck - 2016-04-26 17:10 Alright I've put this together. Try it out and modify to your needs. VS2015 project https://www.dropbox.com/s/fbohp4ay8yq0jt8/LfsSoundThing.rar?dl=0 RE: Let me know when someone says my name or calls a tow - Wouter - 2016-04-27 09:17 Thank you very much Chuck! You saved my day! RE: Let me know when someone says my name or calls a tow - Wouter - 2016-04-29 13:04 Is it allowed to publish here the modified version? RE: Let me know when someone says my name or calls a tow - Chuck - 2016-04-30 06:25 Ye sure, do whatever you wanna do with it. |