AzKay Posted September 8, 2006 Share Posted September 8, 2006 Well, Im making a mule-maker. Im trying to make it using GET Stuff. Though. Everytime it registers, it needs a new SID, As far as I know. Because, I cant keep using the same one. So, Any idea how I could get the sid by reading the source? I never really figured out how to get the Split() functions working. # MY LOVE FOR YOU... IS LIKE A TRUCK- # Link to comment Share on other sites More sharing options...
lod3n Posted September 8, 2006 Share Posted September 8, 2006 What is a "mule-maker". What is "GET Stuff". Could you post the source containing the "SID"? [font="Fixedsys"][list][*]All of my AutoIt Example Scripts[*]http://saneasylum.com[/list][/font] Link to comment Share on other sites More sharing options...
AzKay Posted September 8, 2006 Author Share Posted September 8, 2006 Oh sorry, I forgot to give any info Heres my script. I looked at the source again, and saw it has <name=sid ="ssdsdsds"> Something like that, So I tryed using the _IEgetobject function thing, but its erroring. #include <IE.au3> $username = "Cake_TakerZ__" $password = "lololol" $email = "g_g_test@hotmail.com" $month = "5" $day = "5" $year = "2000" $oHTTP = ObjCreate("winhttp.winhttprequest.5.1") $oHTTP.Open("GET", _ "http://www.gaiaonline.com/profile/character.php?mode=register?username=" _ & $username & "&email=" & $email & "&confirm_email=" & $email & "&new_password=" _ & $password & "&password_confirm=" & $password & "&month=" & $month & "&day=" & $day & "&year=" _ & $year & "&bug=slug&agreed=yes&submitbtn.x=37&submitbtn.y=26&submitbtn=submitbtn&sid=" & _IEFormGetObjByName ($oHTTP, "sid")) $oHTTP.Send() $HTMLSource = $oHTTP.Responsetext ConsoleWrite($HTMLSource) A mule account, is like an account, that you dont use. Just like, use it to store items and stuff. # MY LOVE FOR YOU... IS LIKE A TRUCK- # Link to comment Share on other sites More sharing options...
AzKay Posted September 8, 2006 Author Share Posted September 8, 2006 Oh wait, that wouldnt work, Seeing as, im not using IE. Stupid me . Any other ideas of getting the sid? # MY LOVE FOR YOU... IS LIKE A TRUCK- # Link to comment Share on other sites More sharing options...
lod3n Posted September 8, 2006 Share Posted September 8, 2006 And why can't you use IE?$url = "Whatever you came up with up there" $oIE = _IECreate($url) $oSid= _IEGetObjByName ($oIE, "sid") consolewrite($oSid.value) [font="Fixedsys"][list][*]All of my AutoIt Example Scripts[*]http://saneasylum.com[/list][/font] Link to comment Share on other sites More sharing options...
AzKay Posted September 8, 2006 Author Share Posted September 8, 2006 Because, Then ill have to have IExplorer running. I was trying to make it work without IE having to be running xD, If I use, IE, I wont need the winhttprequests atall. # MY LOVE FOR YOU... IS LIKE A TRUCK- # Link to comment Share on other sites More sharing options...
lod3n Posted September 8, 2006 Share Posted September 8, 2006 $oIE = _IECreate($url,0,0) Will make it run hidden. Then run _IEQuit($oIE) when you're done. [font="Fixedsys"][list][*]All of my AutoIt Example Scripts[*]http://saneasylum.com[/list][/font] Link to comment Share on other sites More sharing options...
AzKay Posted September 8, 2006 Author Share Posted September 8, 2006 Okay, Thanks # MY LOVE FOR YOU... IS LIKE A TRUCK- # Link to comment Share on other sites More sharing options...
AceLoc Posted September 8, 2006 Share Posted September 8, 2006 this will make it hided aswell $oHWND = _IEPropertyGet($oIE, "hwnd") WinSetState($oHWND, "", @SW_HIDED) [quote name='AceLoc']I gots new sunglasses there cool.[/quote] Link to comment Share on other sites More sharing options...
AzKay Posted September 8, 2006 Author Share Posted September 8, 2006 this will make it hided aswell $oHWND = _IEPropertyGet($oIE, "hwnd") WinSetState($oHWND, "", @SW_HIDED)Knew that one But thanks anyway # MY LOVE FOR YOU... IS LIKE A TRUCK- # Link to comment Share on other sites More sharing options...
AceLoc Posted September 8, 2006 Share Posted September 8, 2006 no problmz, and sorry for bothering then [quote name='AceLoc']I gots new sunglasses there cool.[/quote] Link to comment Share on other sites More sharing options...
AzKay Posted September 8, 2006 Author Share Posted September 8, 2006 no problmz, and sorry for bothering then No bother ^^. Do you need anything? As in, Need help with anything your making? Ive nothing do xD # MY LOVE FOR YOU... IS LIKE A TRUCK- # Link to comment Share on other sites More sharing options...
AzKay Posted September 8, 2006 Author Share Posted September 8, 2006 Now ive another problem $username = "Test" $password = "Test" $email = "Test" $month = "1" $day = "1" $year = "2006" $oIE = _IECreate("http://www.gaiaonline.com/profile/character.php?mode=register", 0, 1) $oForm = _IEFormGetObjByName ($oIE, "") $oUsername = _IEFormElementGetObjByName ($oForm, "username") $oPassword = _IEFormElementGetObjByName ($oForm, "new_password") $oPasswordConfirm = _IEFormElementGetObjByName ($oForm, "confirm_password") $oEmail = _IEFormElementGetObjByName ($oForm, "email") $oEmailConfirm = _IEFormElementGetObjByName ($oForm, "confirm_email") $oMonth = _IEFormElementGetObjByName ($oForm, "month") $oDay = _IEFormElementGetObjByName ($oForm, "day") $oYear = _IEFormElementGetObjByName ($oForm, "year") $oAgree = _IEFormElementGetObjByName ($oForm, "agreed") _IEFormElementSetValue ($oUsername, $username) _IEFormElementSetValue ($oPassword, $password) _IEFormElementSetValue ($oPasswordConfirm, $password) _IEFormElementSetValue ($oEmail, $email) _IEFormElementSetValue ($oEmailConfirm, $email) _IEFormElementSetValue ($oMonth, $month) _IEFormElementSetValue ($oDay, $day) _IEFormElementSetValue ($oYear, $year) _IEFormElementCheckBoxSelect ($oAgree, "yes") Gets a bunch of status errors. Though, I cant see whats wrong =/ # MY LOVE FOR YOU... IS LIKE A TRUCK- # Link to comment Share on other sites More sharing options...
lod3n Posted September 8, 2006 Share Posted September 8, 2006 What status errors? Remember, errors are important. They're the only way you can tell what's really wrong. [font="Fixedsys"][list][*]All of my AutoIt Example Scripts[*]http://saneasylum.com[/list][/font] Link to comment Share on other sites More sharing options...
AzKay Posted September 8, 2006 Author Share Posted September 8, 2006 --> IE.au3 Warning from function _IEFormGetObjByName, $_IEStatus_NoMatch --> IE.au3 Error from function _IEFormElementGetObjByName, $_IEStatus_InvalidDataType --> IE.au3 Error from function _IEFormElementGetObjByName, $_IEStatus_InvalidDataType --> IE.au3 Error from function _IEFormElementGetObjByName, $_IEStatus_InvalidDataType --> IE.au3 Error from function _IEFormElementGetObjByName, $_IEStatus_InvalidDataType --> IE.au3 Error from function _IEFormElementGetObjByName, $_IEStatus_InvalidDataType --> IE.au3 Error from function _IEFormElementGetObjByName, $_IEStatus_InvalidDataType --> IE.au3 Error from function _IEFormElementGetObjByName, $_IEStatus_InvalidDataType --> IE.au3 Error from function _IEFormElementGetObjByName, $_IEStatus_InvalidDataType --> IE.au3 Error from function _IEFormElementGetObjByName, $_IEStatus_InvalidDataType --> IE.au3 Error from function _IEFormElementSetValue, $_IEStatus_InvalidDataType --> IE.au3 Error from function _IEFormElementSetValue, $_IEStatus_InvalidDataType --> IE.au3 Error from function _IEFormElementSetValue, $_IEStatus_InvalidDataType --> IE.au3 Error from function _IEFormElementSetValue, $_IEStatus_InvalidDataType --> IE.au3 Error from function _IEFormElementSetValue, $_IEStatus_InvalidDataType --> IE.au3 Error from function _IEFormElementSetValue, $_IEStatus_InvalidDataType --> IE.au3 Error from function _IEFormElementSetValue, $_IEStatus_InvalidDataType --> IE.au3 Error from function _IEFormElementSetValue, $_IEStatus_InvalidDataType --> IE.au3 Error from function _IEFormElementCheckboxSelect, $_IEStatus_InvalidDataType # MY LOVE FOR YOU... IS LIKE A TRUCK- # Link to comment Share on other sites More sharing options...
lod3n Posted September 8, 2006 Share Posted September 8, 2006 I would put an if not isobj($oForm) then msgbox(0,"","Didn't get the form!") [font="Fixedsys"][list][*]All of my AutoIt Example Scripts[*]http://saneasylum.com[/list][/font] Link to comment Share on other sites More sharing options...
lod3n Posted September 8, 2006 Share Posted September 8, 2006 Try getting the form with this: $oForms = _IEFormGetCollection ($oIE) For $oForm In $oForms exitloop ; the first form it finds in the form collection is usually the one you want Next [font="Fixedsys"][list][*]All of my AutoIt Example Scripts[*]http://saneasylum.com[/list][/font] Link to comment Share on other sites More sharing options...
AzKay Posted September 8, 2006 Author Share Posted September 8, 2006 Apparently it didnt. But, The form doesnt have a name =/ # MY LOVE FOR YOU... IS LIKE A TRUCK- # Link to comment Share on other sites More sharing options...
AzKay Posted September 8, 2006 Author Share Posted September 8, 2006 Try getting the form with this: $oForms = _IEFormGetCollection ($oIE) For $oForm In $oForms exitloop ; the first form it finds in the form collection is usually the one you want NextoÝ÷ Ûú®¢×£²¯x&zØb±«¢+Ø(´´ØÈì%¹ÔÌ]ɹ¥¹É½´Õ¹Ñ¥½¸}%½ÉµÑ=© å9µ°ÀÌØí}%MÑÑÕÍ}9½5Ñ (´´ØÈì%¹ÔÌ]ɹ¥¹É½´Õ¹Ñ¥½¸}%½Éµ±µ¹ÑÑ=© å9µ°ÀÌØí}%MÑÑÕÍ}9½5Ñ (´´ØÈì%¹ÔÌÉɽÈɽ´Õ¹Ñ¥½¸}%½Éµ±µ¹ÑMÑY±Õ°ÀÌØí}%MÑÑÕÍ}%¹Ù±¥ÑQåÁ(´´ØÈì%¹ÔÌÉɽÈɽ´Õ¹Ñ¥½¸}%½Éµ±µ¹Ñ ¡½áM±Ð°ÀÌØí}%MÑÑÕÍ}%¹Ù±¥=©ÑQåÁ( # MY LOVE FOR YOU... IS LIKE A TRUCK- # Link to comment Share on other sites More sharing options...
lod3n Posted September 8, 2006 Share Posted September 8, 2006 My recent code was meant to replace your _IEFormGetObjByName [font="Fixedsys"][list][*]All of my AutoIt Example Scripts[*]http://saneasylum.com[/list][/font] 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