Jump to content

How to get text from program screen


sevad
 Share

Recommended Posts

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?

Link to comment
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.
Link to comment
Share on other sites

  • Moderators

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:

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.

Link to comment
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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...