Jump to content

Mguyear

Members
  • Posts

    6
  • Joined

  • Last visited

Mguyear's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Ya, it makes perfect since, but I am totally new to autoit and scripting with it so I do not know the commands. Could you help out a lil bit and get me started off in the right direction? Thanks
  2. Ok, that dosn't work either. I also noticed that the mouse dosn't move until you click ok and the new page loads too. Thanks BD!
  3. 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")
  4. 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. #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")
  5. I have been trying at this for a while now, I can get it to where it is at the bulletin screen and filled in with text, but when it goes to post, it just sits there. If you would like to try it, you have to be logged into myspace in another IE window. #include <IE.au3> $o_IE = _IECreate () _IENavigate ($o_IE, "http://home.myspace.com/index.cfm?fuseaction=user") _IEClickLinkByText ($o_IE, "post bulletin") $o_Bulletin = _IEFormGetObjByName ($o_IE, "bulletinForm") $o_subject = _IEFormElementGetObjByName ($o_Bulletin, "subject") $o_body = _IEFormElementGetObjByName ($o_Bulletin, "body") _IEFormElementSetValue ($o_subject, "Hey") _IEFormElementSetValue ($o_body, "hey") _IEFormSubmit ($o_Bulletin) Thanks
×
×
  • Create New...