I posted in the wrong place so I am reposting it here.
I'm not sure if this is the correct spot to ask this question but, once the image is clicked on then a prompt comes up saying ok or cancel and it seems that it is waiting until the prompt is clicked on cause once I manually click it or hit enter, then mouse then moves. Is there anyway to click on the prompt or hit enter?
#include<IE.au3>
; Set Variables
;==============================================
$pass = "putyourshere"
$email = "putyourshere"
;==============================================
; End Veriables
Dim $oIE
$Url = "www.myspace.com"
_IEAttach ($oIE)
If Not IsObj($oIE) Then
$oIE = _IECreate ()
_IENavigate ($oIE, $Url)
EndIf
; get pointers to the login form and username and password fields
$o_form = _IEFormGetObjByIndex($oIE, 1)
$o_name = _IEFormElementGetObjByName($o_form, "email")
$o_to = _IEFormElementGetObjByName($o_form, "password")
; ****Login****
_IEFormElementSetValue($o_name, $email)
_IEFormElementSetValue($o_to, $pass)
Sleep(2000)
_IEFormSubmit($o_form)
; ****End loging****
Sleep(2000)
_IEClickLinkByText($oIE, "friend requests")
$o_form = _IEFormGetObjByIndex($oIE, 3)
$o_name = _IEFormElementGetObjByName($o_form, "selectAll")
$o_name.click
_IEFormImageClick($o_form, "http://x.myspace.com/images/mail/approveSelected.gif")
MouseMove(460, 431)
MouseClick("left")