Hey Leute, wie mache ich ne SWITCH Funktion in dieser Combo Box, dass ne MSG erscheint:
[autoit]
#include <ComboConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 633, 447, 192, 124)
$Combo1 = GUICtrlCreateCombo("Combo1", 244, 52, 145, 25)
GUICtrlSetData(-1, "1|2|3|A|B|C")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
EDIT//
Switch hat sich erledigt !!!
2. Ich habe jetzt die Combo Box, und je nachdem was man darin auswählt, soll sich ein neues Fenster öffnen:
[autoit]
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 633, 447, 192, 124)
$Button1 = GUICtrlCreateButton("Button1", 208, 156, 75, 25, $WS_GROUP)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
(ratlos :()
3. Ich habe eine ListView erstellt und dort kann man werte eintragen... jetzt soll aber auf Button 2 das ganze ausgelesen werden, also das eine...
Zudem sollte man z.B. bei C eine Zahl reinschreiben, und dort soll dann die MSGBOX so oft wie die Zahl des einzelnen ITEMS ist abgrufen werden: (also, meinetwegen in C steht 3, dann kommt 3 mal eine MSG BOX)
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <ListViewConstants.au3>
#include <WindowsConstants.au3>
Global $Zahl = 0
#Region ### START Koda GUI section ### Form=
$Form1_1 = GUICreate("Form1", 339, 261, 192, 124)
$ListView1 = GUICtrlCreateListView("A|B|C|", 72, 60, 230, 150)
GUICtrlSendMsg(-1, $LVM_SETCOLUMNWIDTH, 0, 75)
GUICtrlSendMsg(-1, $LVM_SETCOLUMNWIDTH, 1, 75)
GUICtrlSendMsg(-1, $LVM_SETCOLUMNWIDTH, 2, 75)
$Button1 = GUICtrlCreateButton("Button1", 144, 216, 75, 25, $WS_GROUP)
$Button2 = GUICtrlCreateButton("Button2", 136, 32, 75, 25, $WS_GROUP)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
$A = InputBox("A", "A")
$B = InputBox("B", "B")
$C = InputBox("C", "C")
GUICtrlCreateListViewItem($A&"|"&$B&"|"&$C, $ListView1)
Case $Button2
[/autoit][autoit][/autoit][autoit][/autoit][autoit][/autoit][autoit]EndSwitch
WEnd