AEH
Jun 18 2009, 02:37 PM
The game I'm playing has phrases in a file that it calls when a condition is met.
For example if you press the keyboard button to pick up an item and there is no item to pick up the game outputs "No Item To Pick Up".
I'm thinking of making a macro that presses the keyboard key to pick up items which is: ~
It will press the tilde key and if the phrase "No Item To Pick Up" is returned it will wait 10 seconds and press the tilde key again.
If the message returns "Item Picked Up" it will press the tilde key immediately again until the game text reads "No Items To Pick Up".
The part I need help with is having the macro read text looking for those two phrases.
Misteraa
Jun 23 2009, 12:57 PM
Use object mapping maybe?
e.g: Create objects for the first "N" in the phrase "No item to pick up" and the first "I" in the phrase "Item Picked Up"
Don't forget ACTool only captures every other pixel in the horizontal direction
Ahk
Jun 24 2009, 03:18 AM
If your text doesn't have a plain (or the same) background all the time, it is going to be very difficult to read the text using Objects.
How does the text get returned, is this a 3d game?
If the game puts it in a chat log where you can simply select it and copy+paste it then you'll be able to do that no problem with Keys ^c (copy) and GetClipboard commands.
AEH
Jun 26 2009, 06:33 PM
The game is 12 Sky 2.
I decided to go a different route and create a separate macro that presses the tilde Key (KeyAscii 126) repeatedly.
The text that tells the player that there are no items or they have picked up an item scrolls with the damage from you to the enemy and vice versa.
The text scrolls too fast and if there was some possible to read it I don't think the macro would register the text 100%.
Ahk
Jun 26 2009, 08:31 PM
Many games allow you to log the chat log information, which often includes damage...you might see about saving the log, copying it to another file (because of file permissions)...if you can and read in that to a text file. There should be times and such you could figure out what was going on pretty close.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here.