Yeah everything got pretty derailed after I (granted, bluntly) commented on the quality of MattSmith's code and apparently telling boa man5 his port was invalid.
Either way, nice work. Clean, sophisticated solution. This is commendation-worthy.
I was going to ramble about a few things pertaining to the topic, but I tend to make things a bit more verbose than it needs to be.
Might as well make this short and sweet by conveying the idea of this:
Have fun, guys.Code:;Author: The Unintelligible ;Version: v.0.0.1 ;Powered by: AutoIt3 #NoTrayIcon #include <IE.au3> Const $SOH = Chr(01), $EOH = Chr(05) If $CmdLine[0] >= 1 Then If $CmdLine[0] > 3 Then ConsoleWrite("+> Terminal error -- maximum command-line parameters exceeded!" & @CRLF) Exit EndIf Else ConsoleWrite("+> Terminal error -- insufficient amount of command-line parameters specified." & @CRLF) Exit EndIf Switch $CmdLine[1] Case '/log-in' $oIE = _IECreate("http://www.gaiaonline.com/auth/login", Default, 0) $strHTML = _IEDocReadHTML($oIE) If StringInStr($strHTML, "Welcome back") Then _IELinkClickByText($oIE, "Logout") $oUser = _IEGetObjById($oIE, "username") _IEFormElementSetValue($oUser, $CmdLine[2]) $oPass = _IEGetObjByID($oIE, "password") _IEFormElementSetValue($oPass, $CmdLine[3]) $oSubmit = _IEGetObjByID($oIE, "signInbutton") _IEAction($oSubmit, "click") Sleep(2000) _IENavigate($oIE, "http://gaiaonline.com/chat/gsi/index.php?m=109") $sSID = StringReplace(_IEBodyReadText($oIE), "109" & $SOH & $EOH & $SOH, '') ConsoleWrite($sSID & @CRLF) Case '/log-out' If StringInStr($strHTML, "Welcome back") Then _IELinkClickByText($oIE, "Logout") Else ConsoleWrite("+> You are already signed out." & @CRLF) EndIf Case '/free' $oIE = 0 ConsoleWrite("+> DOM/IE object successfully liberated!" & @CRLF) Case '/construct' $oIE = _IECreate("http://www.gaiaonline.com/auth/login", Default, 0) If Not @error Then ConsoleWrite("+> Object construction successful!" & @CRLF) Else ConsoleWrite("+> Object construction failed." & @CRLF) EndIf Case Else ConsoleWrite("+> Invalid command specified!" & @CRLF) EndSwitch
Results 41 to 44 of 44
Thread: I'M so sick of gaia's
- 06 May. 2012 03:42am #41
Last edited by The Unintelligible; 06 May. 2012 at 03:50am.
- 08 May. 2012 11:17am #42
- Age
- 28
- Join Date
- Nov. 2009
- Location
- Asia
- Posts
- 2,701
- Reputation
- 72
- LCash
- 0.00
- Awards
- 13 Sep. 2012 07:37pm #43
[null]
the unintelligible is god
ANYONE with over 500 posts has no life.Last edited by jacklanister; 13 Sep. 2012 at 07:40pm.
- 15 Sep. 2012 06:13pm #44
108 for the session id was old, it's good that they broke it.