hilfe pls

11/16/2008 22:01 exit_Z#16
gib doch einfach seine hprocess exe in google ein xD

es handelt sich hier wohl um Last Chaos
11/17/2008 06:29 bunney#17
jo ist richtig^^
11/17/2008 19:04 bunney#18
hab jetzt schon wieder ne neue frage^^




#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <StatusBarConstants.au3>
#include <WindowsConstants.au3>

$Form1_1 = GUICreate("Label1", 403, 296, 494, 163)
GUISetBkColor(0xC0C0C0)
$Label1 = GUICtrlCreateLabel("Label2", 8, 120, 208, 17)
$Label2 = GUICtrlCreateLabel("Label3", 8, 136, 342, 17)
$Button1 = GUICtrlCreateButton("button1", 8, 152, 75, 25, 0)
$Label3 = GUICtrlCreateLabel("Label4", 8, 192, 202, 17)
$Label4 = GUICtrlCreateLabel("Label5", 8, 208, 330, 17)
$Label5 = GUICtrlCreateLabel("Label6", 8, 224, 341, 17)
$Button2 = GUICtrlCreateButton("Button2", 8, 240, 75, 25, 0)
$Label6 = GUICtrlCreateLabel("Label7", 8, 24, 354, 17)
$Label7 = GUICtrlCreateLabel("Label8", 8, 40, 389, 17)
$Label8 = GUICtrlCreateLabel("Label9", 8, 56, 53, 17)
$Button3 = GUICtrlCreateButton("Button3", 8, 80, 73, 25, 0)
GUISetState(@SW_SHOW)


While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit

EndSwitch
WEnd


wie kann ich dem denn jetzt sagen das wenn er button1 drückt func1 machen soll button2 func2 usw

While True
$MSG = GUIGetMsg()
Select
Case $MSG = $Button1
Call("func1")
Case $MSG = $Button3
Call("func2")
Case $MSG = $Button3
Call("func3")
EndSelect
WEnd

so funkt es i-wie net^^ also wenn ich auf den button klicke tut der nix
pls help^^
11/17/2008 19:14 i4mSoH34Vy#19
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
func
Case $Button2
func
Case $Button3
func
EndSwitch
WEnd
11/17/2008 19:21 darthwitch#20
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <StatusBarConstants.au3>
#include <WindowsConstants.au3>

$Form1_1 = GUICreate("Label1", 403, 296, 494, 163)
GUISetBkColor(0xC0C0C0)
$Label1 = GUICtrlCreateLabel("Label2", 8, 120, 208, 17)
$Label2 = GUICtrlCreateLabel("Label3", 8, 136, 342, 17)
$Button1 = GUICtrlCreateButton("button1", 8, 152, 75, 25, 0)
$Label3 = GUICtrlCreateLabel("Label4", 8, 192, 202, 17)
$Label4 = GUICtrlCreateLabel("Label5", 8, 208, 330, 17)
$Label5 = GUICtrlCreateLabel("Label6", 8, 224, 341, 17)
$Button2 = GUICtrlCreateButton("Button2", 8, 240, 75, 25, 0)
$Label6 = GUICtrlCreateLabel("Label7", 8, 24, 354, 17)
$Label7 = GUICtrlCreateLabel("Label8", 8, 40, 389, 17)
$Label8 = GUICtrlCreateLabel("Label9", 8, 56, 53, 17)
$Button3 = GUICtrlCreateButton("Button3", 8, 80, 73, 25, 0)
GUISetState(@SW_SHOW)

While 1
$msg=GuiGetMsg()
If $msg=-3 Then Exit
If $msg=$button1 Then button1()
If $msg=$button2 Then button2()
Wend

Func button1()
EndFunc

Func button2()
EndFunc


sonst kleiner tipp guck mal hier im forum nach dem thread von mir VGE dann musst du nur noch die button funcs eintragen und fertig^^