You last visited: Today at 10:21
Advertisement
[PROBLEM]AutoIt Gui
Discussion on [PROBLEM]AutoIt Gui within the General Coding forum part of the Coders Den category.
11/05/2010, 18:50
#1
elite*gold: 0
Join Date: Oct 2010
Posts: 82
Received Thanks: 18
[PROBLEM]AutoIt Gui
Ich habe bereits einen fertigen Gui der so aussieht:
Code:
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("M2 GM Helper by Höllenbestie", 307, 138, 192, 114)
$Label1 = GUICtrlCreateLabel("Wähle deine Klasse aus, um fortzufahren:", 32, 8, 247, 20)
GUICtrlSetFont(-1, 10, 400, 0, "MS Sans Serif")
$Button1 = GUICtrlCreateButton("Krieger", 8, 32, 75, 25, 0)
$Button2 = GUICtrlCreateButton("Ninja", 8, 64, 75, 25, 0)
$Button3 = GUICtrlCreateButton("Sura", 224, 32, 75, 25, 0)
$Button4 = GUICtrlCreateButton("Schamane", 224, 64, 75, 25, 0)
$Label2 = GUICtrlCreateLabel("by Höllenbestie from elitepvpers.com!", 64, 112, 172, 17)
GUICtrlSetBkColor(-1, 0xFF0000)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
Und ich will jetzt folgendes einfügen:
Code:
Func button1()
EndFunc
Aber wo genau soll ich das einfügen. Es kommt immer entweder ein Error also ich kann den Script gar net starten oder es passiert nix wenn ich auf den Button drücke.
11/05/2010, 20:06
#2
elite*gold: 0
Join Date: Feb 2009
Posts: 542
Received Thanks: 112
PHP Code:
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate ( "M2 GM Helper by Höllenbestie" , 307 , 138 , 192 , 114 )
$Label1 = GUICtrlCreateLabel ( "Wähle deine Klasse aus, um fortzufahren:" , 32 , 8 , 247 , 20 )
GUICtrlSetFont (- 1 , 10 , 400 , 0 , "MS Sans Serif" )
$Button1 = GUICtrlCreateButton ( "Krieger" , 8 , 32 , 75 , 25 , 0 )
$Button2 = GUICtrlCreateButton ( "Ninja" , 8 , 64 , 75 , 25 , 0 )
$Button3 = GUICtrlCreateButton ( "Sura" , 224 , 32 , 75 , 25 , 0 )
$Button4 = GUICtrlCreateButton ( "Schamane" , 224 , 64 , 75 , 25 , 0 )
$Label2 = GUICtrlCreateLabel ( "by Höllenbestie from elitepvpers.com!" , 64 , 112 , 172 , 17 )
GUICtrlSetBkColor (- 1 , 0xFF0000 )
GUISetState (@ SW_SHOW )
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg ()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
case $button1
_button1 ()
EndSwitch
WEnd
Func _button1 ()
; deine funktion
Endfunc
11/05/2010, 20:53
#3
elite*gold: 42
Join Date: Jun 2008
Posts: 5,425
Received Thanks: 1,888
Ach, hier ist die autoit sektion? wär mir neu :>
11/05/2010, 22:08
#4
elite*gold: 0
Join Date: Oct 2010
Posts: 82
Received Thanks: 18
Achso.... S0rry hatte nur STRF+F un dann Coding eingegeben
Sry
11/06/2010, 10:50
#5
elite*gold: 0
Join Date: Jan 2010
Posts: 1,385
Received Thanks: 1,006
case button1
deine anweisungen
case button2
usw
All times are GMT +2. The time now is 10:21 .