Jump to content

Getting test within a window


Guest inbali
 Share

Recommended Posts

Guest inbali

Getting text within a window

I have a window, divided to several parts,

I need to get the text from one of the edit box in the window

(Then, Compare it with my expected text and

Save the result in a file)

I could not find the way to get the text

Can anyone help

:(

Thanks

Edited by inbali
Link to comment
Share on other sites

Getting text within a window

I have a window, divided to several parts,

I need to get the text from one of the edit box in the window

(Then, Compare it with my expected text and

Save the result in a file)

I could not find the way to get the text

Can anyone help

:(

Thanks

<{POST_SNAPBACK}>

try post your code, then i could take a look at it
Link to comment
Share on other sites

Getting text within a window

I have a window, divided to several parts,

I need to get the text from one of the edit box in the window

(Then, Compare it with my expected text and

Save the result in a file)

I could not find the way to get the text

Can anyone help

:(

Thanks

<{POST_SNAPBACK}>

Use tab keys or mouse clicks to give focus to this window. Send a ctrl-a (for select all) and then a ctrl-c (for copy to clipboard). You can use the ClipGet() function to return the contents of the clipboard to a variable. Finally, you can use StringInStr() to search for the desired text.

-John

Link to comment
Share on other sites

Use tab keys or mouse clicks to give focus to this window.  Send a ctrl-a (for select all) and then a ctrl-c (for copy to clipboard).  You can use the ClipGet() function to return the contents of the clipboard to a variable.  Finally, you can use StringInStr() to search for the desired text.

-John

<{POST_SNAPBACK}>

I would use Winactivate("Window")

I don't understand, do you want to get some txt within a GUICtrlCreateEdit, and then compare it with some other text?

If you have problems, post your script and ill look at it :(

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...