Sardith Posted February 25, 2006 Share Posted February 25, 2006 I wanted to know if it was possible to capture a screen shot or something of the sort. Real time or Screen shot. Then if the text was found on screen. Like "Hello" or something then it used a send command. Is that possible, or is there only pixel search? [font="Verdana"]Valik:Get it straight - I'm not here to say please, I'm here to help - if my help's not appreciated then lotsa luck, gentlemen.[/font] Link to comment Share on other sites More sharing options...
ChrisL Posted February 25, 2006 Share Posted February 25, 2006 I think you would have to use pixel search and write some OCR code to search for the characters, very complicated. What is it that you need to get the "word(s)" from? Maybe you can look at WinExists(), WinGetText(), or ControlGetText() functions. [u]Scripts[/u]Minimize gui to systray _ Fail safe source recoveryMsgbox UDF _ _procwatch() Stop your app from being closedLicensed/Trial software system _ Buffering Hotkeys_SQL.au3 ADODB.Connection _ Search 2d Arrays_SplashTextWithGraphicOn() _ Adjust Screen GammaTransparent Controls _ Eventlogs without the crap_GuiCtrlCreateFlash() _ Simple Interscript communication[u]Websites[/u]Curious Campers VW Hightops Lambert Plant Hire Link to comment Share on other sites More sharing options...
Sardith Posted February 25, 2006 Author Share Posted February 25, 2006 Well it's for a game. I want it to send a key string if it see's "hello" on the screen. [font="Verdana"]Valik:Get it straight - I'm not here to say please, I'm here to help - if my help's not appreciated then lotsa luck, gentlemen.[/font] Link to comment Share on other sites More sharing options...
greenmachine Posted February 25, 2006 Share Posted February 25, 2006 Here's how you can get a screenshot (and automatically save it to a file), but about actually looking through the picture and finding text, that's definitely an OCR task.http://www.autoitscript.com/forum/index.php?showtopic=8377 Link to comment Share on other sites More sharing options...
Sardith Posted February 25, 2006 Author Share Posted February 25, 2006 Thanks. One step closer I suppose. [font="Verdana"]Valik:Get it straight - I'm not here to say please, I'm here to help - if my help's not appreciated then lotsa luck, gentlemen.[/font] Link to comment Share on other sites More sharing options...
greenmachine Posted February 25, 2006 Share Posted February 25, 2006 What game is it for? There might already be an OCR built for the game. Link to comment Share on other sites More sharing options...
Sardith Posted February 25, 2006 Author Share Posted February 25, 2006 (edited) It's for Darkages. (Darkages.com) Pretty much, it's so a friend of mine, if I type "Hello" or he does, then it sends a combo "d123456789", from my char and his char at the same time. I need a way so that it searchs the screen, and if it finds "Hello" then it send's the combo. If not it, just continues to look. Edited February 25, 2006 by Sardith [font="Verdana"]Valik:Get it straight - I'm not here to say please, I'm here to help - if my help's not appreciated then lotsa luck, gentlemen.[/font] Link to comment Share on other sites More sharing options...
Sardith Posted February 25, 2006 Author Share Posted February 25, 2006 Is any of this possible or no? [font="Verdana"]Valik:Get it straight - I'm not here to say please, I'm here to help - if my help's not appreciated then lotsa luck, gentlemen.[/font] Link to comment Share on other sites More sharing options...
ChrisL Posted February 25, 2006 Share Posted February 25, 2006 It may be possible to do what you want with dalehohm's IE.au3 UDF. http://www.autoitscript.com/forum/index.php?showtopic=13398 rather than looking for graphic text [u]Scripts[/u]Minimize gui to systray _ Fail safe source recoveryMsgbox UDF _ _procwatch() Stop your app from being closedLicensed/Trial software system _ Buffering Hotkeys_SQL.au3 ADODB.Connection _ Search 2d Arrays_SplashTextWithGraphicOn() _ Adjust Screen GammaTransparent Controls _ Eventlogs without the crap_GuiCtrlCreateFlash() _ Simple Interscript communication[u]Websites[/u]Curious Campers VW Hightops Lambert Plant Hire Link to comment Share on other sites More sharing options...
Sardith Posted February 25, 2006 Author Share Posted February 25, 2006 It's a client based game.. [font="Verdana"]Valik:Get it straight - I'm not here to say please, I'm here to help - if my help's not appreciated then lotsa luck, gentlemen.[/font] Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now