Sign in to follow this  
Followers 0
XInFisk

A GUI questin

3 posts in this topic

Hi now i have made this:

#region --- GuiBuilder code Start ---
; Script generated by AutoBuilder 0.6 Prototype

#include <GuiConstants.au3>

GuiCreate("WE LOVE TO PWN D2X", 392, 316,-1, -1 , BitOR($WS_OVERLAPPEDWINDOW, $WS_CLIPSIBLINGS))

$Checkbox_1 = GuiCtrlCreateCheckbox("Pwn D2X", 150, 20, 80, 20)
$Button_2 = GuiCtrlCreateButton("Go pwn d2x", 140, 60, 100, 40)

GuiSetState()
While 1
    $msg = GuiGetMsg()
    Select
    Case $msg = $GUI_EVENT_CLOSE
        ExitLoop
    Case Else
    ;;;
    EndSelect
WEnd
Exit
#endregion --- GuiBuilder generated code End ---

But how do i do so when i push "Go pwn d2x" Then it run this script:

Sleep("300000")
While 1
Send("{F5}")
Sleep("300000")
WEnd

Share this post


Link to post
Share on other sites



#region --- GuiBuilder code Start ---
; Script generated by AutoBuilder 0.6 Prototype

#include <GuiConstants.au3>

GUICreate("WE LOVE TO PWN D2X", 392, 316, -1, -1, BitOR($WS_OVERLAPPEDWINDOW, $WS_CLIPSIBLINGS))

$Checkbox_1 = GUICtrlCreateCheckbox("Pwn D2X", 150, 20, 80, 20)
$Button_2 = GUICtrlCreateButton("Go pwn d2x", 140, 60, 100, 40)

GUISetState()
While 1
    $msg = GUIGetMsg()
    Select
        Case $msg = $GUI_EVENT_CLOSE
            ExitLoop
        Case $msg = $Button_2
            Sleep("300000")
            While 1
                Send("{F5}")
                Sleep("300000")
            WEnd
            
        Case Else
            ;;;
    EndSelect
WEnd
Exit
#endregion --- GuiBuilder generated code End ---



Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Share this post


Link to post
Share on other sites

#region --- GuiBuilder code Start ---
; Script generated by AutoBuilder 0.6 Prototype

#include <GuiConstants.au3>

GUICreate("WE LOVE TO PWN D2X", 392, 316, -1, -1, BitOR($WS_OVERLAPPEDWINDOW, $WS_CLIPSIBLINGS))

$Checkbox_1 = GUICtrlCreateCheckbox("Pwn D2X", 150, 20, 80, 20)
$Button_2 = GUICtrlCreateButton("Go pwn d2x", 140, 60, 100, 40)

GUISetState()
While 1
    $msg = GUIGetMsg()
    Select
        Case $msg = $GUI_EVENT_CLOSE
            ExitLoop
        Case $msg = $Button_2
            Sleep("300000")
            While 1
                Send("{F5}")
                Sleep("300000")
            WEnd
            
        Case Else
            ;;;
    EndSelect
WEnd
Exit
#endregion --- GuiBuilder generated code End ---
Thanks !

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