Jump to content

Recommended Posts

Posted (edited)

Update, It works perfectly, BUT!: It will not edit the Text ventrilo comment when the GUI window is active. If i use other windows, such as msn, Firefox, it will work properly. So to make it work, I give it the strings i want it to run through, then press start, and switch windows to something else. otherwise, if the GUI window is still the active window, the start button will start the script, but will not send any strings to the vent comment. It will only go to the edit vent comment window, then press enter to close it. (the GUI window stays active throughout the whole script)

And If you are wondering, no the checkbox doesn't work. :/

#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 625, 445, 192, 124)
$iSpam1 = GUICtrlCreateInput("", 56, 32, 121, 21)
$iSpam2 = GUICtrlCreateInput("", 56, 64, 121, 21)
$iSpam3 = GUICtrlCreateInput("", 56, 96, 121, 21)
$iSpam4 = GUICtrlCreateInput("", 56, 128, 121, 21)
$iSpam5 = GUICtrlCreateInput("", 56, 160, 121, 21)
$loop = GUICtrlCreateCheckbox("Check here to loop!", 256, 64, 121, 17)
$Start = GUICtrlCreateButton("Start", 256, 128, 161, 33, $WS_GROUP)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

Global $Paused
HotKeySet("{ESC}", "TogglePause")

Func TogglePause()
    $Paused = NOT $Paused
    While $Paused
        ToolTip("Press ESC to keep spamming or ALT+ESC to stop the script.",0,0)
        HotKeySet("!{ESC}", "Exitt")
        sleep(100)
    WEnd
    ToolTip("")
EndFunc

Func Exitt()
    Exit
EndFunc

Func Spamz()
    ControlClick("Ventrilo", "Comment", 1060)
    sleep(500)
    ControlSend("Comment - Advanced ", "", "", $spam1 & "~~~~by skitt")
    sleep(500)
    ControlClick("Comment - Advanced", "OK", 1)
    sleep(4000)
    ControlClick("Ventrilo", "Comment", 1060)
    sleep(500)
    ControlSend("Comment - Advanced", "", "", $spam2 & "~~~~by skitt")
    sleep(500)
    ControlClick("Comment - Advanced", "Enter", 1)
    sleep(4000)
    ControlClick("Ventrilo", "Comment", 1060)
    sleep(500)
    ControlSend("Comment - Advanced", "", "", $spam3 & "~~~~by skitt")
    sleep(500)
    ControlClick("Comment - Advanced", "Enter", 1)
    sleep(4000)
    ControlClick("Ventrilo", "Comment", 1060)
    sleep(500)
    ControlSend("Comment - Advanced", "", "", $spam4 & "~~~~by skitt")
    sleep(500)
    ControlClick("Comment - Advanced", "Enter", 1)
    sleep(4000)
    ControlClick("Ventrilo", "Comment", 1060)
    sleep(500)  
    ControlSend("Comment - Advanced", "", "", $spam5 & "~~~~by skitt")
    sleep(500)
    ControlClick("Comment - Advanced", "Enter", 1)
    sleep(4000)
EndFunc

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit
        Case $start
            $spam1 = GUICtrlRead($ispam1)
            $spam2 = GUICtrlRead($ispam2)
            $spam3 = GUICtrlRead($ispam3)
            $spam4 = GUICtrlRead($ispam4)
            $spam5 = GUICtrlRead($ispam5)
            Spamz()
        Case $start & $loop
            While 1
            $spam1 = GUICtrlRead($ispam1)
            $spam2 = GUICtrlRead($ispam2)
            $spam3 = GUICtrlRead($ispam3)
            $spam4 = GUICtrlRead($ispam4)
            $spam5 = GUICtrlRead($ispam5)
            Spamz()
            WEnd
    EndSwitch
WEnd
Edited by skitt

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...