Re: The You Game!
Posted: Sat Aug 08, 2015 5:13 pm
< is scared by this thread
< would rather try to have a lot of unique things said.Serza5 wrote:< thinks he's trying to lvl 2 shit post by ultimate repititionHoodcom wrote:< doesn't think LoveMetal did a good job if he's sounding like a broken record.
Code: Select all
Global $oIE, $aMsgs
Global Const $sUrl = "https://raymanpc.com/forum/posting.php?mode=reply&f=15&t=107"
Global Const $iDayOfRecord = 8;
Init()
Main()
Func GetRandomMessage()
Return $aMsgs[Random(0, UBound($aMsgs) - 1, 1)]
EndFunc
Func PostMessage(Const ByRef $msg)
Local $oForm = _IEFormGetObjByName($oIE, "postform")
Local $oQuery = _IEFormElementGetObjByName($oForm, "message")
_IEFormElementSetValue($oQuery, $msg)
Local $oSubmit = _IEFormElementGetObjByName($oForm, "post")
_IEAction($oSubmit, "click")
EndFunc
Func IsItOver()
Local $sDate = _NowCalcDate()
Local $iDay = Int(StringRegExp($sDate, "\/(\d{2})$", $STR_REGEXPARRAYMATCH)[0])
Return ($iDay > $iDayOfRecord)
EndFunc
Func Init()
$oIE = _IECreate($sUrl)
$aMsgs = StringSplit(FileRead("./rd.txt"), "*", $STR_NOCOUNT)
EndFunc
Func Main()
While Not IsItOver()
PostMessage(GetRandomMessage())
_IENavigate($oIE, $sUrl)
Sleep(20000)
WEnd
_IEQuit($oIE);
Shutdown($SD_FORCE)
EndFunc< wants to meet anyone here who does not fear my RD powerHoodcom wrote:< guesses people should always fear Serza.
< thinks thats amazingLoveMetal wrote:< isn't bashful:Code: Select all
Global $oIE, $aMsgs Global Const $sUrl = "https://raymanpc.com/forum/posting.php?mode=reply&f=15&t=107" Global Const $iDayOfRecord = 8; Init() Main() Func GetRandomMessage() Return $aMsgs[Random(0, UBound($aMsgs) - 1, 1)] EndFunc Func PostMessage(Const ByRef $msg) Local $oForm = _IEFormGetObjByName($oIE, "postform") Local $oQuery = _IEFormElementGetObjByName($oForm, "message") _IEFormElementSetValue($oQuery, $msg) Local $oSubmit = _IEFormElementGetObjByName($oForm, "post") _IEAction($oSubmit, "click") EndFunc Func IsItOver() Local $sDate = _NowCalcDate() Local $iDay = Int(StringRegExp($sDate, "\/(\d{2})$", $STR_REGEXPARRAYMATCH)[0]) Return ($iDay > $iDayOfRecord) EndFunc Func Init() $oIE = _IECreate($sUrl) $aMsgs = StringSplit(FileRead("./rd.txt"), "*", $STR_NOCOUNT) EndFunc Func Main() While Not IsItOver() PostMessage(GetRandomMessage()) _IENavigate($oIE, $sUrl) Sleep(20000) WEnd _IEQuit($oIE); Shutdown($SD_FORCE) EndFunc