Jump to content

Recommended Posts

Posted

Hi there, 

please can  you assist me, i am using auto it for the first time and i am really struggling to get the value of the text from the window.

below are the details

Request you to assist me and i am not finding any joy with our application.

Code:

Below is the code that i am trying to use to extract the text "Invalid Account Number Enter" (highlighted in green) i have attached screen shot. 

i have attached properties window.

MouseClick("left",422 , 115)
Sleep(500)
Local $aPos = MouseGetPos()
Local $sText = ControlGetText($aPos, "", "[CLASS:DoddleFrame]")
MsgBox(0,"Text", $sText)

Application.PNG

Doddleframe.PNG

  • 2 weeks later...
Posted (edited)

Hi, and welcome

What is that? SAP? or old DOS? There may be different ways to do this. What additional info can you provide?

Which control exactly are you trying to hit? The spytool shows a DoddleFrame (window) and a DoddleNode.  I am guessing a specific DoddleNode, but that is not what you have in your script.

Edited by Skysnake

Skysnake

Why is the snake in the sky?

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
×
×
  • Create New...