Sign in to follow this  
Followers 0
Capcuzzz

Help on auto post thing

3 posts in this topic

#1 ·  Posted (edited)

hi need some help here, I am using autoit for the first time, so please explain it in "english" :D

This is what I am doing

. navigate to random site

. click on random x and y in that site

. click on button that will create a small popup

. fill up random text

. press the submit button

. loop

This is what I've done so far

#include <IE.au3>
#include <string.au3>


Opt("WinWaitDelay", 100)
Opt("WinTitleMatchMode", 4)
Opt("WinDetectHiddenText", 1)
Opt("MouseCoordMode", 0)



Global $interval = 15000



$randomx = Random (1,5,1)
                Select
                    Case $randomx = 1
                         $randomx = "380"
                    Case $randomx = 2
                         $randomx = "490"
                    Case $randomx = 3
                         $randomx = "600"
                    Case $randomx = 4
                         $randomx = "710"
                    Case $randomx = 5
                         $randomx = "820"
                EndSelect
$randomy = Random(1,4,1)
                Select
                    Case $randomy = 1
                         $randomy = "290"
                    Case $randomy = 2
                         $randomy = "410"
                    Case $randomy = 3
                         $randomy = "530"
                    Case $randomy = 4
                         $randomy = "650"
                EndSelect
$oIE = _IECreate ("www.website.com")
WinSetState(_IEPropertyGet($oIE, "hwnd"), "", @SW_MAXIMIZE)
Sleep ($interval)





Sleep ($interval * 0.3)

_randomfolder ()

Sleep ($interval)
_randompic ()

Sleep ($interval * 0.3)

_share ()





Func _randomfolder ()
$randomfolder = Random (1, 3, 1)
                    Select
                        Case $randomfolder = 1
                            $oIE.Navigate("website1")
                        Case $randomfolder = 2
                            $oIE.Navigate("website2")
                        Case $randomfolder = 3
                            $oIE.Navigate("website3")
                        
                    EndSelect

    _IELoadWait ($oIE)
EndFunc

Func _randompic ()
    MouseMove($randomx,$randomy)
    MouseDown("left")
    MouseUp("left")

EndFunc

Func _share ()
    _IELinkClickByText ($oIE, "share")
    Sleep ($interval)
    $randommessage = Random(1, 3,1)
                    Select
                        Case $randommessage = 1
                            Send ("POST TESTING1")
                            Sleep ($interval)
                        Case $randommessage = 2
                            Send ("POST TESTING2")
                            Sleep ($interval)
                        Case $randommessage = 3
                            Send ("POST TESTING3")
                            Sleep ($interval)
                        EndSelect

My questions are:

. as you can see randomx and randomy in total there will be 20 possibility of picture clicks. but the problem is some of the site have only 12 picture, which positioned as

1 2 3 4 5

1 2 3 4 5

1 2

so, how can I make exception for that site? so it won't click on empty space? can I use if? I get confused and can't understand how to apply it if it can be used.

. at the end of the script, I need to click on a button to submit, I tried using text, but it is a button,I also tried the the HTML shows

<INPUT class=UIButton_Text value=Share type=button>

so how do I make it to click to submit?

added: where to put While Wend ?

Thanks =)

Edited by Capcuzzz

Share this post


Link to post
Share on other sites



Capcuzzz,

And what website are you asking us to help you spam? :D

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

It's not a website to spam, it's actually my facebook fanspage that I want to auto share it's picture.

do you consider that as spam??

btw, what I meant by "site" in my previous post was actually direct link to my picture folders in facebook fanspage.

I am using this to autoshare pictures. you can try to open any facebook fanspage and see the button to share HTML if it's same with I've posted above.

Edited by Capcuzzz

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