Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Apr 2nd, 2008, 12:07 AM   #1
Maxmackey
Unverified User
 
Join Date: Apr 2008
Posts: 5
Rep Power: 0 Maxmackey is on a distinguished road
Detect a string of text in a running program.

Hello, new to the forums and my apologies if this is the wrong place for this

I want to know if this is possible, if a program already exists, or how hard it would be to make such a program, if I need to pay someone to make it.



I am running a full screen game similar to World of Warcraft, if anyone has played it.
I am trying to find a program, that will detect text that is sent to me/displayed on my screen in the game. I would then like the program to make a loud obnoxious noise, once that string of text is detected.


I.E:
"Selected 'X' target"
Program then emits a loud noise.
Maxmackey is offline   Reply With Quote
Old Apr 2nd, 2008, 1:03 AM   #2
Jessehk
The Oblivious One
 
Jessehk's Avatar
 
Join Date: May 2005
Location: Ontario, Canada
Posts: 648
Rep Power: 4 Jessehk is on a distinguished road
Re: Detect a string of text in a running program.

Well, this could be way off base since I've never played WoW. I do know that WoW can be controlled through a scripting language called Lua.

This might be useful, but I really don't know. http://www.wowwiki.com/Lua
__________________
Dr. Zoidberg: [ecstatic] I'm going to a movie... with FRIENDS!
Jessehk is offline   Reply With Quote
Old Apr 2nd, 2008, 1:17 AM   #3
Jimbo
Battle Programmer
 
Jimbo's Avatar
 
Join Date: Feb 2006
Location: Bellevue, WA, USA
Posts: 770
Rep Power: 3 Jimbo is on a distinguished road
Re: Detect a string of text in a running program.

Your program could take a screenshot and then try to OCR some meaning out of it. Probably too much work for an unreliable solution though
__________________
<insert disclaimer here>
<insert shameless plug for Visual Studio here>
Jimbo is offline   Reply With Quote
Old Apr 2nd, 2008, 2:29 AM   #4
Maxmackey
Unverified User
 
Join Date: Apr 2008
Posts: 5
Rep Power: 0 Maxmackey is on a distinguished road
Re: Detect a string of text in a running program.

Not QUITE what I was looking for but the LUA link did give me some info.

Ive been tooling around with the games files, and have discovered that everything I type is stored in an in game log.

So, theoretically, I suppose the easiest way to make a program like this would be to have a program that opens up the text file, searches for the text, and if it exists to then make the noise.

Anyone know if this is possible?











Heres some example of the text:
[04/01/08 23:27:07] Lothir -> WreckLoose : Quick Major Health V of Purifying [ Casting... ]
[04/01/08 23:27:07] Indestructible Fyakki -> WreckLoose [ Missed ]
[04/01/08 23:27:07] WreckLoose -> Indestructible Fyakki : Cloak of Thorns IV [ 137 pierce ]




So lets say if the program detected:
Indestructible Fyakki -> WreckLoose [ Missed ]
I would want it to make a sound.

Last edited by Maxmackey; Apr 2nd, 2008 at 2:52 AM.
Maxmackey is offline   Reply With Quote
Old Apr 2nd, 2008, 7:17 AM   #5
Jabo
Not a user?
 
Join Date: Sep 2007
Posts: 308
Rep Power: 2 Jabo is on a distinguished road
Re: Detect a string of text in a running program.

Sounds like you're wanting to make a gamebot, which is most likely against the game TOS
Jabo is offline   Reply With Quote
Old Apr 2nd, 2008, 12:00 PM   #6
peaceofpi
hi: for(;;) goto hi;
 
peaceofpi's Avatar
 
Join Date: Jun 2006
Posts: 116
Rep Power: 3 peaceofpi is on a distinguished road
Send a message via AIM to peaceofpi Send a message via MSN to peaceofpi
Re: Detect a string of text in a running program.

Quote:
Originally Posted by Maxmackey View Post
So, theoretically, I suppose the easiest way to make a program like this would be to have a program that opens up the text file, searches for the text, and if it exists to then make the noise.

Anyone know if this is possible?
http://www.cplusplus.com/doc/tutorial/files.html
__________________
How do you play Religious Roulette?
Stand around in a circle and blaspheme till someone gets struck by lightning.
peaceofpi is offline   Reply With Quote
Old Apr 2nd, 2008, 1:20 PM   #7
Maxmackey
Unverified User
 
Join Date: Apr 2008
Posts: 5
Rep Power: 0 Maxmackey is on a distinguished road
Re: Detect a string of text in a running program.

I am NOT making a game bot.

The program will be used to notify me when someone is sending me a group message.


If you want details:
Someone in my group will be saying "Selected Valkor the Impaler" I then wish to have the program notify me, either if im asleep or just alt+tabbed, so I can then start the game and join them.
Maxmackey is offline   Reply With Quote
Old Apr 2nd, 2008, 7:39 PM   #8
PhilBon
Hobbyist Programmer
 
PhilBon's Avatar
 
Join Date: Nov 2005
Posts: 172
Rep Power: 4 PhilBon is on a distinguished road
Send a message via AIM to PhilBon Send a message via MSN to PhilBon
Re: Detect a string of text in a running program.

I would make sure that you make a copy of the file before opening it and reading it. There are some programs that if they try to reopen an open file it will fail. Make sure you sure some kind of error handling.
PhilBon is offline   Reply With Quote
Old May 3rd, 2008, 5:49 PM   #9
Watchman
Newbie
 
Join Date: May 2008
Posts: 4
Rep Power: 0 Watchman is an unknown quantity at this point
Re: Detect a string of text in a running program.

You have been reported - again. Have a nice day.
Watchman is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Matlab - How to display a variable and text string in same disp command finlejb Other Programming Languages 0 Feb 15th, 2006 7:53 PM
How to detect cursor location and insert text??? syntax-error C# 3 Jun 30th, 2005 2:42 AM
Hi, and a question about cost of running a program säkki Community Introductions 5 Feb 6th, 2005 7:03 AM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 10:08 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC