dina Posted February 21, 2008 Posted February 21, 2008 Hi all, I am new using AutoIT. I have found it very simple and easy to automate the windows applications. Now I am trying to automate a C# Windows form. I just need to pass a value to a text box in the window. When tried to get the name of the textbox through the AutoIT Window Info Tool, I got the class name as "WindowsForms10.EDIT.app4" and the instance is 1. Could anyone please help me on this? Regards, Dina.
PsaltyDS Posted February 22, 2008 Posted February 22, 2008 Hi all, I am new using AutoIT. I have found it very simple and easy to automate the windows applications. Now I am trying to automate a C# Windows form. I just need to pass a value to a text box in the window. When tried to get the name of the textbox through the AutoIT Window Info Tool, I got the class name as "WindowsForms10.EDIT.app4" and the instance is 1. Could anyone please help me on this? Regards, Dina. Look up ControlSetText() in the help file. Use the advanced format to specify the ControlID: $sNewText = "This is new text." $hWin = WinGetHandle("Window Title", "Window Text") ControlSetText($hWin, "", "[CLASS:WindowsForms10.EDIT.app4; INSTANCE:1]", $sNewText) Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
dina Posted February 22, 2008 Author Posted February 22, 2008 Look up ControlSetText() in the help file. Use the advanced format to specify the ControlID: $sNewText = "This is new text." $hWin = WinGetHandle("Window Title", "Window Text") ControlSetText($hWin, "", "[CLASS:WindowsForms10.EDIT.app4; INSTANCE:1]", $sNewText) Thank you so much! I got it worked. Regards, Dina.
Mathivanan Posted July 16, 2015 Posted July 16, 2015 Hope these links within this link help you out: LinkEDIT: Welcome to the AutoIt forum @Mathivanan
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