Let me know when someone says my name or calls a tow
|
2016-04-25, 13:03
Post: #1
|
|||||||
|
|||||||
Let me know when someone says my name or calls a tow
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/showthre...tid=22186. |
|||||||
|
|||||||
2016-04-25, 15:59
(This post was last modified: 2016-04-25 16:29 by Tingle.)
Post: #2
|
|||||||
|
|||||||
RE: Let me know when someone says my name or calls a tow
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. |
|||||||
|
|||||||
2016-04-25, 16:33
Post: #3
|
|||||||
|
|||||||
RE: Let me know when someone says my name or calls a tow
Tingle, thank you very much for your answer!
I will try it in a couple of days. |
|||||||
|
|||||||
2016-04-26, 17:10
(This post was last modified: 2016-04-26 17:10 by Chuck.)
Post: #4
|
|||||||
|
|||||||
RE: Let me know when someone says my name or calls a tow
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 |
|||||||
|
|||||||
2016-04-27, 09:17
Post: #5
|
|||||||
|
|||||||
RE: Let me know when someone says my name or calls a tow
Thank you very much Chuck!
You saved my day! |
|||||||
|
|||||||
2016-04-29, 13:04
Post: #6
|
|||||||
|
|||||||
RE: Let me know when someone says my name or calls a tow
Is it allowed to publish here the modified version?
|
|||||||
|
|||||||
2016-04-30, 06:25
Post: #7
|
|||||||
|
|||||||
RE: Let me know when someone says my name or calls a tow
Ye sure, do whatever you wanna do with it.
|
|||||||
|
|||||||
« Next Oldest | Next Newest »
|
Possibly Related Threads... | |||||
Thread: | Author | Replies: | Views: | Last Post | |
SOS Calls - What are they and how do we respond as a COP? | Tommer | 2 | 1,771 |
2021-06-01 07:12 Last Post: Chuck |
User(s) browsing this thread: 2 Guest(s)
Powered By MyBB, © 2002-2025 MyBB Group