|
You last visited: Today at 16:33
Advertisement
Parsing log files or OCR
Discussion on Parsing log files or OCR within the AutoIt forum part of the Coders Den category.
08/29/2013, 00:30
|
#1
|
elite*gold: 0
Join Date: Aug 2013
Posts: 3
Received Thanks: 0
|
Parsing log files or OCR
I'm working on updating a script that was dumb (i.e. just clicked at specific spots on the screen at specific times) to actually monitor and respond to what's actually occurring. I've got plenty of things using imagesearch working, and I think I'm getting the hang of pixelsearch. These are great if I know -exactly- where and what's going to be somewhere.
But what if I know the format something will be in, but not specific contents and I want to react based on that information. i.e. an auction is ending in 2h42m and I would like to Call("SetEvent", 162) (162 being 2h42m in min) or my companion <companion name> returned from mission so I would like to call("DoRun", "companion name")
I know the information I need happens to be written into a logfile, I wouldn't have any concerns with reading the text there, but what what I've read elsewhere autoit itself is not suited for reading log files in real time, even for simple exact matches like a specific character name. (please correct me if I'm wrong, I'd really love to be wrong here, this seems to me by far the simplest)
Another way to go about it might be using character recognition, but I'm having difficultly getting OCR to work with it. Is there anything out there that works with autoit & has something to help with the building of your own character sets for in game fonts. If so, are there also locations which have downloadable font sets for particular games (because a: I'm interested in other games and applications too, I need to be able to use this type of functionality flexibly, and b: If I make a character set for my game actually work I'd like to share it because this process has not been easy for me, so I hope I might be able to make it easier for someone else)
Finally, if none of these work, I've used other parsers which can trigger audio alerts on log files. Is there any easy way to detect that app triggering, determine which trigger it was, and take appropriate action in my autoit script.
|
|
|
09/01/2013, 19:26
|
#2
|
elite*gold: 280
Join Date: May 2007
Posts: 2,818
Received Thanks: 3,483
|
Quote:
Originally Posted by AnonAimos
I'm working on updating a script that was dumb (i.e. just clicked at specific spots on the screen at specific times) to actually monitor and respond to what's actually occurring. I've got plenty of things using imagesearch working, and I think I'm getting the hang of pixelsearch. These are great if I know -exactly- where and what's going to be somewhere.
But what if I know the format something will be in, but not specific contents and I want to react based on that information. i.e. an auction is ending in 2h42m and I would like to Call("SetEvent", 162) (162 being 2h42m in min) or my companion <companion name> returned from mission so I would like to call("DoRun", "companion name")
I know the information I need happens to be written into a logfile, I wouldn't have any concerns with reading the text there, but what what I've read elsewhere autoit itself is not suited for reading log files in real time, even for simple exact matches like a specific character name. (please correct me if I'm wrong, I'd really love to be wrong here, this seems to me by far the simplest)
Another way to go about it might be using character recognition, but I'm having difficultly getting OCR to work with it. Is there anything out there that works with autoit & has something to help with the building of your own character sets for in game fonts. If so, are there also locations which have downloadable font sets for particular games (because a: I'm interested in other games and applications too, I need to be able to use this type of functionality flexibly, and b: If I make a character set for my game actually work I'd like to share it because this process has not been easy for me, so I hope I might be able to make it easier for someone else)
Finally, if none of these work, I've used other parsers which can trigger audio alerts on log files. Is there any easy way to detect that app triggering, determine which trigger it was, and take appropriate action in my autoit script.
|
it's pretty hard to get what you actually wanna do...
examples with screenshots might be nice to get a clear understanding of your wishes...
|
|
|
 |
Similar Threads
|
Parsing
02/24/2013 - SRO Coding Corner - 2 Replies
Hey, can anyone please parse that packet(3013), its for my bot, but I got problem when I'm trying to parse charname and X,Y cords, others I know probably. Thanks...
Here it is:
4d e8 62 2b 79 07 00 00 44 37 37 4d db be 00 00 M.b+y...D77M....
00 00 00 57 01 00 00 a4 cd 92 00 00 00 00 00 aa ...W............
05 00 00 00 00 05 00 00 00 00 8f 09 00 00 d1 17 ................
00 00 00 00 00 00 00 00 00 00 00 00 37 2d 00 00 ............7-..
00 00 00 03 75 00 00 00 00 00 00...
|
Parsing GCR Replay Files
10/12/2011 - Grand Chase - 0 Replies
I was wondering if anyone would have any idea how to get data from the replay files that Grand Chase creates. I would like to create a nice parser, however I have no idea how to extract the data from the replay.
I know that WC3 replays use DEFLATE compression algorithm, so I tried to inflate a GCR file with zlib but that didn't get me anywhere.
Any help is appreciated.
Thanks
|
[Request]Parsing the navdata files
11/29/2010 - SRO Coding Corner - 1 Replies
so,I would like to know how to parse the navdata files..if someone could help me that would be great:)
|
DMap File Parsing
03/02/2008 - Conquer Online 2 - 12 Replies
I finished the app, it correctly parses the DMap files and renders them to the screen (from what i could tell on the ones i tried, its slow because its using PSet plus its in vb, but at this point, i dont care about efficiency, i'll worry about that later, the fact is it works.
Refer to: http://www.elitepvpers.com/forum/co2-main-discussio ns-questions/112647-new-bot-development.html for the COBot Project which this is part of.
I took this from my reply i made on my new bot i'm developing,...
|
All times are GMT +1. The time now is 16:33.
|
|