Capcuzzz Posted February 9, 2010 Share Posted February 9, 2010 (edited) hi need some help here, I am using autoit for the first time, so please explain it in "english" 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 expandcollapse popup#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 February 9, 2010 by Capcuzzz Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted February 9, 2010 Moderators Share Posted February 9, 2010 Capcuzzz, And what website are you asking us to help you spam? M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Capcuzzz Posted February 9, 2010 Author Share Posted February 9, 2010 (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 February 9, 2010 by Capcuzzz 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