Jump to content

send() messing up.


Recommended Posts

Ok if your going to run this make sure you enter a mybrute name (use test as its the one i was using to test this script) then go File>Run and it types aa then clears the text when its going to send $first

My code

#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <IE.au3> 
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$first = Random(1,90)
$Form1 = GUICreate("ArtaBrute - version 1.0", 760, 590, 10, 10)
$MenuItem1 = GUICtrlCreateMenu("File")
$Start = GUICtrlCreateMenuItem("Start", $MenuItem1)
$exit = GUICtrlCreateMenuItem("Exit", $MenuItem1)
$MenuItem3 = GUICtrlCreateMenu("Configure")
$username = GUICtrlCreateMenuItem("MyBrute Username", $MenuItem3)
$Group1 = GUICtrlCreateGroup("", 8, 8, 737, 513)
$page = _IECreateEmbedded ()
$GUIActiveX = GUICtrlCreateObj($page, 17, 21, 720, 494)
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit

        Case $exit
            exit
        Case $username
            $user = InputBox("Enter your MyBrute username", "Please enter your MyBrute username.","","",300,130)
        Case $Start
            _IENavigate ($page, "http://"&$user&".mybrute.com/")
            Sleep(300)
            MouseClick("left", 739,541,2)
            sleep(300)
            MouseClick("left", 122,244)
            sleep(300)
            Send("{a down}") ;Holds the A key down
            Send("{a up}") ;Releases the A key
            Sleep(1000)
            Send("{a down}") ;Holds the A key down
            Send("{a up}") ;Releases the A key
            Sleep(1000)
            Send($first)
    EndSwitch
WEnd

Thanks for reading.

Link to comment
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
 Share

  • Recently Browsing   0 members

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