Sign in to follow this  
Followers 0
goflago

Forum auto-poster

12 posts in this topic

I made a "gaiaonline.com" bot that would post to a specific topic using "IE.au3", but it could only handle one bot due to the fact that it requires that I have to enabled cookies to submit a reply. Then, I went searching this morning for posting with "winhttp.winhttprequest.5.1" and it seems like a great solution, but I don't know how I would go about this. Any help?

Share this post


Link to post
Share on other sites



Hehe, about a month ago, I tryed making an autoposter

it made a topic, then deleted it, then made it again, and looped, but it didnt work, for some reason, i even tryed making it wat 4minutes between each post, but didnt want to work, so I stopped trying.


# MY LOVE FOR YOU... IS LIKE A TRUCK- #

Share this post


Link to post
Share on other sites

Hehe, about a month ago, I tryed making an autoposter

it made a topic, then deleted it, then made it again, and looped, but it didnt work, for some reason, i even tryed making it wat 4minutes between each post, but didnt want to work, so I stopped trying.

Not that I want to hijack your topic, but could you give me some pointers? like, using ie.au3, it kept confusing me, I have no idea what im meant to do with it

# MY LOVE FOR YOU... IS LIKE A TRUCK- #

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

#include <IE.au3>

; Variables
$Username   =  ""
$Password   =  ""
$Message    =  ""
$TopicNumber = ""
$PostNumber = ""
$sid        =  ""
$sid2       =  ""
Dim $Thread[4]  = ["http://gaiaonline.com/forum/viewtopic.php?t=" & $TopicNumber,"http://www.gaiaonline.com/forum/posting.php?mode=edit&p=" & $PostNumber,"http://www.gaiaonline.com/forum/posting.php?mode=reply&tc=1&t=" & $TopicNumber,"http://www.gaiaonline.com/forum/posting.php?mode=reply&tc=561&t=" & $TopicNumber]
$Forum      =  "http://gaiaonline.com/forum/viewforum.php?f=23"
$Main       =  "http://gaiaonline.com"
$Exit       =  1

;Hotkeys
HotKeySet("^s", "Begin")
HotKeySet("^e", "Stop")

While $Exit = 1
    Sleep(100)
WEnd

Func Begin()
    If $Exit = 1 Then
        $Exit = 0
        Global $IE = _IECreate("")
        Call("Prog")
    EndIf
EndFunc

Func Stop()
    $Exit = 1
Endfunc
    
Func Prog()
    Call("Login")
    Call("Post")
EndFunc

Func Login()
    _IENavigate($IE,"http://www.gaiaonline.com/gaia/login.php?")
    $Login = _IEFormGetObjByName($IE,"loginForm")
    $User = _IEFormElementGetObjByName($Login,"username")
    $Pass = _IEFormElementGetObjByName($Login,"password")
    _IEFormElementSetValue($User,$Username)
    _IEFormElementSetValue($Pass,$Password)
    _IEFormSubmit($Login)
    $sid2 = _IEPropertyGet($IE,"locationurl")
    $sid = "&" & StringMid($sid2,37, 9999)
EndFunc
    
Func Logout()
    _IENavigate($IE,$Main)
    _IELinkClickByText($IE,"Logout")
EndFunc

Func Post()
    While $Exit = 0
        _IENavigate($IE,$Thread[2] & $sid)
        $Post = _IEFormGetObjByName($IE,"post")
        $Mess = _IEFormElementGetObjByName($Post,"message")
        _IEFormElementSetValue($Mess,$Message)
        _IEFormImageClick ($Post,"Submit","alt")
        Sleep(50000)
                _IENavigate($IE,$Thread[3] & $sid)
        $Post = _IEFormGetObjByName($IE,"post")
        $Mess = _IEFormElementGetObjByName($Post,"message")
        _IEFormElementSetValue($Mess,$Message)
        _IEFormImageClick ($Post,"Submit","alt")
        Sleep(50000)
    WEnd
EndFunc

My IE.au3 based auto-poller.

Edited by goflago

Share this post


Link to post
Share on other sites

Does that like, Make a topic, then bump? or just make new topics, of just bump a topic over and over? (( Im not reading through it atm, will do later ))


# MY LOVE FOR YOU... IS LIKE A TRUCK- #

Share this post


Link to post
Share on other sites

Does that like, Make a topic, then bump? or just make new topics, of just bump a topic over and over? (( Im not reading through it atm, will do later ))

First it logs in with $Username and $Password. Then it navigates to the topic supplied by $Thread[2] & $Thread[3], fills the text area with $Message and submits the message by clicking the submit button. It can be minimized due to using IE.au3 and you can resume normal activities, you just can't run more than 1 bot at once because it requires cookies are enabled as far as I know.

Share this post


Link to post
Share on other sites

First it logs in with $Username and $Password. Then it navigates to the topic supplied by $Thread[2] & $Thread[3], fills the text area with $Message and submits the message by clicking the submit button. It can be minimized due to using IE.au3 and you can resume normal activities, you just can't run more than 1 bot at once because it requires cookies are enabled as far as I know.

ah, oke

# MY LOVE FOR YOU... IS LIKE A TRUCK- #

Share this post


Link to post
Share on other sites

Uhm... Help please? :D

Share this post


Link to post
Share on other sites

Uhm... Help please? :D

I don't understand your trouble. IE.au3 will work with cookies just as you would interactively. Persistent cookies affect all IE instances, session cookies affect all instances inthe same process tree.

Dale


Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl

MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model

Automate input type=file (Related)

Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded  Better Better?

IE.au3 issues with Vista - Workarounds

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

Share this post


Link to post
Share on other sites

I don't understand your trouble. IE.au3 will work with cookies just as you would interactively. Persistent cookies affect all IE instances, session cookies affect all instances inthe same process tree.

Dale

At the moment I can only run one bot, but I want to be able to run more. All I can do right now is enable cookies so I am always logged in, but the system also can run on a session ID, set by putting &sid=# after it. But, all I can do with the session method is browse, I can't actually submit any posts. If you could figure out a way to run on the session method I would be very grateful. :D

Share this post


Link to post
Share on other sites

At the moment I can only run one bot, but I want to be able to run more. All I can do right now is enable cookies so I am always logged in, but the system also can run on a session ID, set by putting &sid=# after it. But, all I can do with the session method is browse, I can't actually submit any posts. If you could figure out a way to run on the session method I would be very grateful. :D

I'm sorry, I don't understand your problem or your terminology.

Are you trying to do something that IE will not allow you to do interactively?

Dale


Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl

MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model

Automate input type=file (Related)

Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded  Better Better?

IE.au3 issues with Vista - Workarounds

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

Share this post


Link to post
Share on other sites

I'm sorry, I don't understand your problem or your terminology.

Are you trying to do something that IE will not allow you to do interactively?

Dale

This site uses cookies to keep me logged in. I need to be logged in to post. How can I stay logged in without every single IE window becoming logged in to one user?

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0