Bigboy Posted July 29, 2011 Share Posted July 29, 2011 1. My control information is :<input type='file' name='fileExample'></td><td><input type='file' name='fileExample'></td>2. The screenshot please refer to "Browse.jpg".3.My code is:#include <IE.au3>$oIE = _IE_Example("form")$oForm = _IEFormGetObjByName($oIE, "ExampleForm")$oInputFile = _IEFormElementGetObjByName($oForm, "fileExample")_IEAction($oInputFile, "click");;Atfer this ,it will pop up a window ,i want to set text to the edit box,but failed!;Why the window can not be identified?It is a standard microsoft window.Winwait("选择文件")ControlSetText("选择文件","","Edit1","c:\my text")4.The window information is:>>>> Window <<<<Title: 选择文件Class: #32770Position: 0, 20Size: 610, 507Style: 0x96CC02C4ExStyle: 0x00010101Handle: 0x001F01D6>>>> Control <<<<Class: EditInstance: 1ClassnameNN: Edit1Name: Advanced (Class): [CLASS:Edit; INSTANCE:1]ID: 1148Text: Position: 180, 419Size: 194, 12ControlClick Coords: 97, 9Style: 0x54000080ExStyle: 0x00000000Handle: 0x003D045EAnnybody can help?Its urgent...Appreciate it! Link to comment Share on other sites More sharing options...
Bigboy Posted July 30, 2011 Author Share Posted July 30, 2011 Please help!!Thanks in advance. Link to comment Share on other sites More sharing options...
Bert Posted July 30, 2011 Share Posted July 30, 2011 If you are working with a web window it is not a standard microsoft window. You need to review the IE controls further to get the id you need. Second, don't bump your threads so quickly. It annoys the moderators when you do that. The Vollatran project My blog: http://www.vollysinterestingshit.com/ 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