Jump to content

Help with gui


Kripp4
 Share

Recommended Posts

#include <GuiConstants.au3>

If Not IsDeclared('WS_CLIPSIBLINGS') Then Global $WS_CLIPSIBLINGS = 0x04000000

GuiCreate("Info", 140, 178,(@DesktopWidth-140)/2, (@DesktopHeight-178)/2 , $WS_OVERLAPPEDWINDOW + $WS_VISIBLE + $WS_CLIPSIBLINGS)

$Button_1 = GuiCtrlCreateButton("Start", 0, 100, 140, 80)
$Input_2 = GuiCtrlCreateInput("Nick", 0, 0, 140, 20)
$Input_3 = GuiCtrlCreateInput("Pass", 0, 30, 140, 20)
$Input_4 = GuiCtrlCreateInput("Text att spamma", 0, 60, 140, 20)

GuiSetState()
While 1
    $msg = GuiGetMsg()
    Select
    Case $msg = $GUI_EVENT_CLOSE
        ExitLoop
    Case Else
    ;;;
    EndSelect
WEnd
Exit

What do i write for the button to start the script? :)

Link to comment
Share on other sites

Like this ?

#include <GuiConstants.au3>

If Not IsDeclared('WS_CLIPSIBLINGS') Then Global $WS_CLIPSIBLINGS = 0x04000000

GuiCreate("Info", 140, 178,(@DesktopWidth-140)/2, (@DesktopHeight-178)/2 , $WS_OVERLAPPEDWINDOW + $WS_VISIBLE + $WS_CLIPSIBLINGS)

$Button_1 = GuiCtrlCreateButton("Start", 0, 100, 140, 80)
$Input_2 = GuiCtrlCreateInput("Nick", 0, 0, 140, 20)
$Input_3 = GuiCtrlCreateInput("Pass", 0, 30, 140, 20)
$Input_4 = GuiCtrlCreateInput("Text att spamma", 0, 60, 140, 20)

GuiSetState()
While 1
    $msg = GuiGetMsg()
    Select
    Case $msg = $GUI_EVENT_CLOSE
        
    Case $msg = $Button_1
    ; spam her !
        MsgBox(64,"","Slem svenske !")
        
        ExitLoop
    Case Else
   ;;;
    EndSelect
WEnd
Exit
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...