Syed23 Posted November 22, 2011 Share Posted November 22, 2011 Hi Friends, Today i came with new idea for automating our environment to make my team members manual job easy. The idea is we have an internal IE site where we will be having N no of labes parallaly all the labels will have their own Text box. my goal is i have read the content from that text box... since i have never came across of IE autmoation no idea or on how to do or what function available for it... is there anyone can help me on this? Please! Thank you,Regards,[font="Garamond"][size="4"]K.Syed Ibrahim.[/size][/font] Link to comment Share on other sites More sharing options...
somdcomputerguy Posted November 22, 2011 Share Posted November 22, 2011 There is example code included.IE user defined functions Reference - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change. Link to comment Share on other sites More sharing options...
Syed23 Posted November 23, 2011 Author Share Posted November 23, 2011 (edited) Thanks for the reply Bruce. i am trying to read the data from the text box.i have taken one example from the UDF and tried but it's not working. i know i am doing something wrong. can you guys correct me where i am doing wrong? Edite: I tried to attach the screen shot but i was unable to do #include <IE.au3> $oIE = _IECreate("mysiteURL",0,1,1,1) $oForm = _IEFormGetObjByName ($oIE, "ChangeNumber :") $oText = _IEFormElementGetObjByName ($oForm, "PackageNumber:") $IEAu3Version = _IE_VersionInfo () _IEFormElementSetValue ($oText, $IEAu3Version[5]) MsgBox(0, "Form Element Value", _IEFormElementGetValue ($oText)) Edited November 24, 2011 by Syed23 Thank you,Regards,[font="Garamond"][size="4"]K.Syed Ibrahim.[/size][/font] Link to comment Share on other sites More sharing options...
Syed23 Posted November 24, 2011 Author Share Posted November 24, 2011 (edited) Do we have any specific function to open IE URl like this ? http://www.testurl/PackageInfo.aspx?num=1234 this how my url will be look like. i want to open this URL and i have to get information of the text box. why i was not able to do with above code ? Edited November 24, 2011 by Syed23 Thank you,Regards,[font="Garamond"][size="4"]K.Syed Ibrahim.[/size][/font] Link to comment Share on other sites More sharing options...
Exit Posted November 24, 2011 Share Posted November 24, 2011 Do we have any specific function to open IE URl like this ? http://www.testurl/PackageInfo.aspx?num=1234 this how my url will be look like. i want to open this URL and i have to get information of the text box. why i was not able to do with above code ? http://www.testurl does not exist. Please specify correct URL. App: Au3toCmd UDF: _SingleScript() Link to comment Share on other sites More sharing options...
Syed23 Posted November 25, 2011 Author Share Posted November 25, 2011 sorry forumer100. that is a internal website we are not suppose to provide and also you can't be able to access from outside of our domain! is there any other way you can help me ? Thank you,Regards,[font="Garamond"][size="4"]K.Syed Ibrahim.[/size][/font] Link to comment Share on other sites More sharing options...
PsaltyDS Posted November 25, 2011 Share Posted November 25, 2011 Do we have any specific function to open IE URl like this ? http://www.testurl/PackageInfo.aspx?num=1234 this how my url will be look like. i want to open this URL and i have to get information of the text box. why i was not able to do with above code ? The URL is clearly obfuscated, but all it takes is _IECreate() if it was valid: $sURL = "http://www.testurl/PackageInfo.aspx?num=1234" $oIE = _IECreate($sURL) You'll have to be more specific about this "text box" for more help. Is it an HTML input field, or does the page call a Flash object, is it inside of a frame or frame set, etc.? You could examine the page with a DOM inspector like DebugBar to see. If the "text box" is a pop up dialog of some kind, check it out with AU3Info.exe to see if it is an IE window or regular Windows dialog. 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 Link to comment Share on other sites More sharing options...
Syed23 Posted November 25, 2011 Author Share Posted November 25, 2011 (edited) Thanks PsaltyDs for the suggestion.... it is a HTML input field... do you have any suggestion for me ? Edited November 26, 2011 by Syed23 Thank you,Regards,[font="Garamond"][size="4"]K.Syed Ibrahim.[/size][/font] Link to comment Share on other sites More sharing options...
PsaltyDS Posted November 29, 2011 Share Posted November 29, 2011 Thanks PsaltyDs for the suggestion.... it is a HTML input field... do you have any suggestion for me ?Examine the page with a DOM inspector (I believe DebugBar was mentioned already) to see what kind of objects that input is a child of, and what identifiers it has (name or id). It could be as simple as setting the value with one of the _IE* functions, or it might take drilling down into Frames and Forms. Depends on the structure of that page. 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 Link to comment Share on other sites More sharing options...
Syed23 Posted December 21, 2011 Author Share Posted December 21, 2011 (edited) Sorry for the delay reply PsaltyDS! i was on official trip to new region for new project.... what is that DOM inspector? where can i download it? sorry for not knowing about that debugger tool.... could you please tell me about that? Edited December 21, 2011 by Syed23 Thank you,Regards,[font="Garamond"][size="4"]K.Syed Ibrahim.[/size][/font] Link to comment Share on other sites More sharing options...
Eemuli Posted December 21, 2011 Share Posted December 21, 2011 Sorry for the delay reply PsaltyDS! i was on official trip to new region for new project.... what is that DOM inspector? where can i download it? sorry for not knowing about that debugger tool.... could you please tell me about that?DOM inspector = a tool you can use to view webpage html layout, all attributes and attached events etc.You may already have one:Internet Explorer (8 & 9) => press F12Google Chrome => ctrl + shift + iMozilla Firefox => Addon called Firebug (https://addons.mozilla.org/en-US/firefox/addon/firebug/?src=search) Country73 1 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