Guest inbali Posted May 17, 2005 Share Posted May 17, 2005 (edited) 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 May 17, 2005 by inbali Link to comment Share on other sites More sharing options...
Wb-FreeKill Posted May 17, 2005 Share Posted May 17, 2005 Getting text within a windowI 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 andSave the result in a file)I could not find the way to get the textCan anyone help Thanks<{POST_SNAPBACK}>try post your code, then i could take a look at it Link to comment Share on other sites More sharing options...
jftuga Posted May 17, 2005 Share Posted May 17, 2005 Getting text within a windowI 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 andSave the result in a file)I could not find the way to get the textCan 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 Admin_Popup, show computer info or launch shellRemote Manager, facilitates connecting to RDP / VNCProc_Watch, reprioritize cpu intensive processesUDF: _ini_to_dict, transforms ini file entries into variablesUDF: monitor_resolutions, returns resolutions of multiple monitorsReport Computer Problem, for your IT help deskProfile Fixer, fixes a 'missing' AD user profile Link to comment Share on other sites More sharing options...
Wb-FreeKill Posted May 17, 2005 Share Posted May 17, 2005 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 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