CoastalP Posted June 18, 2006 Posted June 18, 2006 run("C:\Program Files\Internet Explorer\iexplore.exe") WinWaitActive("C:\Program Files\Internet Explorer\iexplore.exe") send("https://login.yahoo.com/config/login?.src=fpctx&.done=http://www.yahoo.com") send("{ENTER}") send("e-mail address") send("{TAB}") send("password") send("{ENTER}") NOTE: i have the e-mail address and the password spots filled out correctly well when i click on it it opens up IE but it doesnt type in the address. can somebody please tell me whats wrong
gamepin126 Posted June 18, 2006 Posted June 18, 2006 (edited) WinWaitActive searches for a windows caption, like "Microsoft Internet Explorer" not a path. With that link, e-mail address, and password do you want those typed or do you want to submit an ie form? Edited June 18, 2006 by gamepin126
Thatsgreat2345 Posted June 18, 2006 Posted June 18, 2006 (edited) check out IE.au3 in the Scripts and Scrapsheres the link and if your going to use that up above either use window handle or use processexist http://www.autoitscript.com/forum/index.php?showtopic=25629 Edited June 18, 2006 by thatsgreat2345
CoastalP Posted June 18, 2006 Author Posted June 18, 2006 thanks. BTW im just tryna make a script to login to yahoo automatically
CoastalP Posted June 19, 2006 Author Posted June 19, 2006 I NEED THE CODE SO THE ADDRESS GOES INTO THE ADDRESS BAR AND THEN AUTOMATICALLY GOES TO THE PAGE AND ENTERS MY LOGIN INFORMATION. so i need to be able to do like AddressBarSend or w/e it is and like to be able to have it enter my login info. can any1 tell me how to do that?
Moderators SmOke_N Posted June 19, 2006 Moderators Posted June 19, 2006 (edited) I NEED THE CODE SO THE ADDRESS GOES INTO THE ADDRESS BAR AND THEN AUTOMATICALLY GOES TO THE PAGE AND ENTERS MY LOGIN INFORMATION.so i need to be able to do like AddressBarSend or w/e it is and like to be able to have it enter my login info. can any1 tell me how to do that?YOU WERE GIVEN THE ANSWER BY THATSGREAT2345, SEARCH FOR IE.AU3 IN THE SCRIPTS AND SCRAPS FORUM. Edited June 19, 2006 by SmOke_N Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
CoastalP Posted June 19, 2006 Author Posted June 19, 2006 yea but i dont understand it. its my first day using this
Thatsgreat2345 Posted June 19, 2006 Posted June 19, 2006 5 bucks u havent even gone to the post, and since im a nice guy and its easy to write here, BUT YOU MUST GO TO THE TOPIC AND DOWNLOAD THE IE.AU3 AND PUT IT IN THE BETA INCLUDE FILE #include <IE.au3> $IE = _IECreate("https://login.yahoo.com/config/login?.src=fpctx&.done=http://www.yahoo.com") _IELoadWait($IE) $form = _IEFormGetObjByName($IE,"login_form") $Email = _IEFormElementGetObjByName($form,"username") $Password = _IEFormElementGetObjByName($form,"passwd") _IEFormElementSetValue($Email,"YOUR USERNAME HERE") _IEFormElementSetValue($Password,"YOUR PASSWORD HERE") _IEFormSubmit($form)
CoastalP Posted June 19, 2006 Author Posted June 19, 2006 _IEFrameGetObjByName("AddressBar") Would i use that to activate the address bar so it will type in it??
Thatsgreat2345 Posted June 19, 2006 Posted June 19, 2006 (edited) No if you read my script loook for your URL where do you see it?, in the _IECreate between the"" that means that you specify where to go there and if you want to go somewhere else you would use the command _IENavigate($IE,"THEPLACEYOUWANTTOGO") JUST GO TO THE TOPIC I SPECIFIED here are all the functions from the OLD IE.au3 some have been added and renamed but i only used old ones CODE \\\ Core Functions _IECreate() Create an Internet Explorer Browser Window _IENavigate() Directs an existing browser window to navigate to the specified URL _IEAttach() Attach to the first existing instance of Internet Explorer where the search string sub-string matches based on the mode selected. _IEDocumentGetObj() Given a Window object, returns an object associated with the embedded document \\\ Frame Functions _IEIsFrameSet() Chects to see if the specified Window contains a FrameSet _IEFrameGetCount() Find the number of Frames (standard or iFrame) in the specified document _IEFrameGetCollection() Get a collection object containing the frames in a FrameSet or the iFrames on a normal page _IEFrameGetObjByIndex() Returns an object reference to a window within the specified frame (note that frame collection is 0 based) This object can be used in the same manner as the InternetExplorer.Application object _IEFrameGetObjByName() Obtain an object reference to a frame by name _IEFrameGetNameByIndex() Obtain an object reference to a frame by 0-based index _IEFrameGetSrcByIndex() Obtain the URL references within a frame by 0-based index _IEFrameGetSrcByName() Obtain the URL references within a frame by name \\\ Link Functions _IEClickLinkByText() Simulate a mouse click on a link with text sub-string matching the string provided _IEClickLinkByIndex() Simulate a mouse click on a link by 0-based index (in source order) \\\ Image Functions _IEClickImg() Simulate a mouse click on an image. Match by sub-string match of alt text, name or src \\\ Form Functions _IEFormGetCount() Get the count of the number of forms in the document _IEFormGetCollection() Obtain a collection object variable representing the frames in the document _IEFormGetObjByIndex() Obtain an object variable reference to a form by 0-based index _IEFormGetObjByName() Obtain an object variable reference to a form by name _IEFormGetNameByIndex() Obtain the name of a form by its 0-based index _IEFormElementGetCount() Obtain a count of the number of form elements within a given form _IEFormElementGetCollection() Obtain a collection object variable of all form elements within a given form _IEFormElementGetObjByIndex() Obtain a object reference to a form element within a form by 0-based index _IEFormElementGetObjByName() Obtain a object reference to a form element within a form by name _IEFormElementGetTypeByIndex() Obtain the type of a givien form element within a form by 0-based index (button, checkbox, fileUpload, hidden, image, password, radio, reset, submit, or text) _IEFormElementOptionGetCount() Get count of Options within a Select drop-down form element _IEFormElementGetValue() Get the value of a specifid form element _IEFormElementSetValue() Set the value of a specified form element _IEFormSubmit() Submit a specified form _IEFormReset() Reset a specified form \\\ Table Functions _IETableGetCount() Get count of tables within a document _IETableGetCollection() Obtain a collection object variable representing all the tables in a document _IETableGetObjByIndex() Obtain an object reference to a table in a document by 0-based index _IETableWriteToArray() Reads the contents of a table into an array. Note: Currently, if any of the cells span more than one column, the column offsets will be incorrect \\\ Body functions _IEBodyReadHTML() Retrieves the HTML inside the <body> tag of the document _IEBodyWriteHTML() Replaces the HTML inside the <body> tag of the document \\\ Utility Functions _IETagNameGetCollection() Returns a collection object all elements in the object with the specified tagName. The DOM is hierarchical, so if the object passed is the document object, all elements in the docuemtn are returned. If the object passed in is an object inside the document (e.g. a TABLE object), then only the elements inside that object are returned. _IETagNameAllGetCollection() Returns a collection object all elements in the document in source order. _IELoadWait() Wait for a browser page load to complete before returning _IEAction() Perform any of a set of simple actions on the Browser _IEGetProperty() Retrieve a select property of the Browser _IEQuit() Close the browser and remove the object refernce to it Edited June 19, 2006 by thatsgreat2345
CoastalP Posted June 19, 2006 Author Posted June 19, 2006 thank u and i did download the file and i was reading the stuff but i didnt really understand it. but thanx
Uten Posted June 19, 2006 Posted June 19, 2006 (edited) The IE.au3 UDF is about 100 times more reliable than this little script. opt("WinTitleMatchMode",4) ;Search in the help file run("C:\Program Files\Internet Explorer\iexplore.exe") WinWaitActive("regexp=.*[iI]nternet [eE]xplorer.*") ;Probably add somthing identifying your home (default ) page sleep(3000) Send("!D") sleep(3000 ) send("https://login.yahoo.com/config/login?.src=fpctx&.done=http://www.yahoo.com") send("{ENTER}") WinWaitActive("regexp=.*[Yy]ahoo!.*[iI]nternet [eE]xplorer.*") ;Probably add somthing identifying your yahoo page sleep(1000) send("e-mail address") send("{TAB}") send("password") send("{ENTER}") Edited June 19, 2006 by Uten Please keep your sig. small! Use the help file. Search the forum. Then ask unresolved questions :) Script plugin demo, Simple Trace udf, TrayMenuEx udf, IOChatter demo, freebasic multithreaded dll sample, PostMessage, Aspell, Code profiling
Fckzr Posted June 21, 2006 Posted June 21, 2006 run("C:\Program Files\Internet Explorer\iexplore.exe") WinWaitActive("C:\Program Files\Internet Explorer\iexplore.exe") send("https://login.yahoo.com/config/login?.src=fpctx&.done=http://www.yahoo.com") send("{ENTER}") send("e-mail address") send("{TAB}") send("password") send("{ENTER}") NOTE: i have the e-mail address and the password spots filled out correctly well when i click on it it opens up IE but it doesnt type in the address. can somebody please tell me whats wrong Is this fixed already? Anyway I'll say it anyway try Send("{F4}") before you send the url in. And 2nd is indeed the winwaitactive -> needs name not a path Cheers (sry if this is old lol)
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