Jump to content

� WHATS WRONG WITH THIS SCRIPT �


Recommended Posts

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

Link to comment
Share on other sites

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 by gamepin126
Link to comment
Share on other sites

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?

Link to comment
Share on other sites

  • Moderators

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 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.

Link to comment
Share on other sites

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)
Link to comment
Share on other sites

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 by thatsgreat2345
Link to comment
Share on other sites

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 by Uten
Link to comment
Share on other sites

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 :D

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)

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...