Sign in to follow this  
Followers 0
sevad

How to get text from program screen

8 posts in this topic

Is there a way to read the text off a window in which the text does not show up in the window information? I have been trying and trying to figure out how to get my autoit script to read it, but the only feasible thing at this point seems to be to just get an ocr and take a picture. Any suggestions?

Share this post


Link to post
Share on other sites



Tried copying the text, or are there any loggs of this text ?


UDF:Crypter a file encrypt / decrypt tool with no need to remember a password again. Based on Caesar cipher using entire ASCII Table.Script's: PixelSearch Helper, quick and simple way to create a PixelSeach.Chatserver - simplified, not so complicated multi-socket server.AutoIT - Firewall, simple example on howto create a firewall with AutoIt.

Share this post


Link to post
Share on other sites

Tried copying the text, or are there any loggs of this text ?

Yeah tried to copy it, doesn't work, and there aren't any logs available that i know of.

Share this post


Link to post
Share on other sites

Also, if it helps, the text I'm trying to obtain the text from a java application's window, and it's definitely text and not just a picture or something like that.

Share this post


Link to post
Share on other sites

No one knows anything about this at all?

Share this post


Link to post
Share on other sites

I'll use my magic eightball to check in the program for myself.... What program is you trying to get text from


Start here if you are new Valuater's AutoIT 1-2-3Looking for an UDF - Look hereDo you need to do it twice - Autoit

Share this post


Link to post
Share on other sites

I'll use my magic eightball to check in the program for myself.... What program is you trying to get text from

Could have used one of them in August :whistle:

[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

Really had to :whistle:

#include <GUIConstants.au3>

GUICreate("Magic EightBall", 200, 100)
GUICtrlCreateLabel("Ask a question... and click the button", 10, 10)
$answer = GUICtrlCreateButton("The Answer", 10, 40, 180, 40)
GUISetState()


While 1
    $msg = GUIGetMsg()
    
    If $msg = $GUI_EVENT_CLOSE Then Exit
    
    If $msg = $answer Then _EightBall()
    
WEnd

Func _EightBall()
    Local $TheTruth[20]
    $TheTruth[0] = "Signs Point To Yes";
    $TheTruth[1] = "Yes";
    $TheTruth[2] = "You May Rely On It";
    $TheTruth[3] = "Ask Again Later";
    $TheTruth[4] = "Concentrate And Ask Again ";
    $TheTruth[5] = "Outlook Good";
    $TheTruth[6] = "My Sources Say No";
    $TheTruth[7] = "Better Not Tell You Now";
    $TheTruth[8] = "Without A Doubt";
    $TheTruth[9] = "Reply Hazy Try Again";
    $TheTruth[10] = "It Is Decidedly So";
    $TheTruth[11] = "Cannot Predict Now";
    $TheTruth[12] = "My Reply Is No";
    $TheTruth[13] = "As I See It Yes";
    $TheTruth[14] = "It Is Certain";
    $TheTruth[15] = "Yes Definitely";
    $TheTruth[16] = "Don't Count On It";
    $TheTruth[17] = "Most Likely";
    $TheTruth[18] = "Cannot Predict Now";
    $TheTruth[19] = "Outlook Not So Good";
    $i = Random(0,20)
    MsgBox(65,"The truth",$TheTruth[$i])
    
EndFunc

Start here if you are new Valuater's AutoIT 1-2-3Looking for an UDF - Look hereDo you need to do it twice - Autoit

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0