Hallo
ich will GUICtrlCreateLabel sagen das es z.b. in $tabsheet1 gehen soll obwohl ich davor schon mherer tabsheets gemacht habe
wie krige ich das hin ?
GUICtrlCreate... Problem
-
- [ offen ]
-
Freaky -
4. Juli 2009 um 20:25 -
Geschlossen -
Erledigt
-
-
Kannst du dein Code Posten dann kan man die eher helfen

und beschreibe nochmal dein Problem.
Gruß
SubZero -
Script
[autoit]#include <EditConstants.au3>
[/autoit] [autoit][/autoit] [autoit]
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
Global $TabSheet2, $TabSheet3,$Combo1,$Label13$Form1 = GUICreate("ScriptMaker by Freaky http://www.NosHacks.de", 338, 271, 192, 124)
[/autoit] [autoit][/autoit] [autoit]
$Tab1 = GUICtrlCreateTab(0, 0, 337, 241)
GUICtrlSetResizing(-1, $GUI_DOCKWIDTH + $GUI_DOCKHEIGHT)
$TabSheet1 = GUICtrlCreateTabItem("Seite 1")
$Label1 = GUICtrlCreateLabel("(C)(R) by Freaky for http://www.NosHacks.de", 136, 216, 190, 17)
$Edit1 = GUICtrlCreateEdit("", 32, 112, 273, 89, BitOR($ES_AUTOVSCROLL, $ES_AUTOHSCROLL, $ES_WANTRETURN))
GUICtrlSetData(-1, "Edit1")
$Checkbox3 = GUICtrlCreateCheckbox("Sollen Tasten gedrückt werden ?", 13, 47, 177, 17)
$Checkbox1 = GUICtrlCreateCheckbox("Script mit Login", 13, 25, 81, 17)
$Checkbox2 = GUICtrlCreateCheckbox("Soll nach Farben gesucht werden ?", 13, 72, 209, 17)GUICtrlCreateTabItem("")
[/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]
$Button1 = GUICtrlCreateButton("Script erstellen", 8, 240, 75, 25, $WS_GROUP)
$Button2 = GUICtrlCreateButton("Ende", 88, 240, 75, 25, $WS_GROUP)
$Button3 = GUICtrlCreateButton("Speichern", 168, 240, 75, 25, $WS_GROUP)
$Button4 = GUICtrlCreateButton("Forum", 248, 240, 75, 25, $WS_GROUP)
GUISetState(@SW_SHOW)While 1
[/autoit] [autoit][/autoit] [autoit]
ToolTip (GUICtrlRead ($Combo1),0,0)If GUICtrlGetState($TabSheet2) = 80 Then
[/autoit] [autoit][/autoit] [autoit]
_Tasten_1 ()
EndIf$nMsg = GUIGetMsg()
[/autoit] [autoit][/autoit] [autoit]
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
GUICtrlSetState($Checkbox1, 4)
GUICtrlSetState($Checkbox2, 4)
GUICtrlSetState($Checkbox3, 4)
Case $Checkbox2
If GUICtrlRead($Checkbox2) = 4 Then GUICtrlDelete($TabSheet3)
If GUICtrlRead($Checkbox2) = 1 Then
If GUICtrlGetState($TabSheet3) = -1 Then
_Tab_2()
If GUICtrlGetState($TabSheet1) <> $GUI_SHOW Then
GUICtrlSetState($TabSheet1, $GUI_SHOW)
EndIf
EndIf
EndIf
Case $Checkbox3
If GUICtrlRead($Checkbox3) = 4 Then GUICtrlDelete($TabSheet2)
If GUICtrlRead($Checkbox3) = 1 Then
If GUICtrlGetState($TabSheet2) = -1 Then
_Tab_1()
If GUICtrlGetState($TabSheet1) <> $GUI_SHOW Then
GUICtrlSetState($TabSheet1, $GUI_SHOW)
EndIf
EndIf
EndIf
Case $Combo1EndSwitch
[/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]
WEndFunc _Tab_1()
[/autoit] [autoit][/autoit] [autoit]
$TabSheet2 = GUICtrlCreateTabItem("Tasten")
$Combo1 = GUICtrlCreateCombo("0", 232, 56, 81, 25)
GUICtrlSetData (-1,"1|2|3|4|5|6|7|8|9|10")
$Label2 = GUICtrlCreateLabel("Wieviele Tasten sollen gerdrückt werden ?", 8, 56, 206, 17)
EndFunc ;==>_Tab_1Func _Tasten_1 ()
[/autoit] [autoit][/autoit] [autoit]
If GUICtrlGetState ($Label13) <> 80 Then
$Label13 = GUICtrlCreateLabel("Taste", 24, 88, 31, 17)
$Label14 = GUICtrlCreateLabel("Zeit", 72, 88, 22, 17)
$Label15 = GUICtrlCreateLabel("Taste", 200, 88, 31, 17)
$Label16 = GUICtrlCreateLabel("Zeit", 248, 88, 22, 17)
EndIfIf GUICtrlRead ($Combo1) = "1" Then
[/autoit] [autoit][/autoit] [autoit]
$Label3 = GUICtrlCreateLabel("1", 8, 112, 10, 17)
$Input1 = GUICtrlCreateInput("1", 24, 112, 41, 21)
$Input2 = GUICtrlCreateInput("2", 72, 112, 41, 21)
ElseIf GUICtrlRead ($Combo1) = "2" Then
$Label3 = GUICtrlCreateLabel("1", 8, 112, 10, 17)
$Input1 = GUICtrlCreateInput("1", 24, 112, 41, 21)
$Input2 = GUICtrlCreateInput("2", 72, 112, 41, 21)
$Input3 = GUICtrlCreateInput("2", 72, 136, 41, 21)
$Input4 = GUICtrlCreateInput("1", 24, 136, 41, 21)
$Label4 = GUICtrlCreateLabel("1", 8, 136, 10, 17)
ElseIf GUICtrlRead ($Combo1) = "3" Then
$Label3 = GUICtrlCreateLabel("1", 8, 112, 10, 17)
$Input1 = GUICtrlCreateInput("1", 24, 112, 41, 21)
$Input2 = GUICtrlCreateInput("2", 72, 112, 41, 21)
$Input3 = GUICtrlCreateInput("2", 72, 136, 41, 21)
$Input4 = GUICtrlCreateInput("1", 24, 136, 41, 21)
$Label4 = GUICtrlCreateLabel("1", 8, 136, 10, 17)
$Input5 = GUICtrlCreateInput("2", 72, 160, 41, 21)
$Input6 = GUICtrlCreateInput("1", 24, 160, 41, 21)
$Label5 = GUICtrlCreateLabel("1", 8, 160, 10, 17)
ElseIf GUICtrlRead ($Combo1) = "4" Then
$Label3 = GUICtrlCreateLabel("1", 8, 112, 10, 17)
$Input1 = GUICtrlCreateInput("1", 24, 112, 41, 21)
$Input2 = GUICtrlCreateInput("2", 72, 112, 41, 21)
$Input3 = GUICtrlCreateInput("2", 72, 136, 41, 21)
$Input4 = GUICtrlCreateInput("1", 24, 136, 41, 21)
$Label4 = GUICtrlCreateLabel("1", 8, 136, 10, 17)
$Input5 = GUICtrlCreateInput("2", 72, 160, 41, 21)
$Input6 = GUICtrlCreateInput("1", 24, 160, 41, 21)
$Label5 = GUICtrlCreateLabel("1", 8, 160, 10, 17)
$Input7 = GUICtrlCreateInput("2", 72, 184, 41, 21)
$Input8 = GUICtrlCreateInput("1", 24, 184, 41, 21)
$Label6 = GUICtrlCreateLabel("1", 8, 184, 10, 17)
ElseIf GUICtrlRead ($Combo1) = "5" Then
$Label3 = GUICtrlCreateLabel("1", 8, 112, 10, 17)
$Input1 = GUICtrlCreateInput("1", 24, 112, 41, 21)
$Input2 = GUICtrlCreateInput("2", 72, 112, 41, 21)
$Input3 = GUICtrlCreateInput("2", 72, 136, 41, 21)
$Input4 = GUICtrlCreateInput("1", 24, 136, 41, 21)
$Label4 = GUICtrlCreateLabel("1", 8, 136, 10, 17)
$Input5 = GUICtrlCreateInput("2", 72, 160, 41, 21)
$Input6 = GUICtrlCreateInput("1", 24, 160, 41, 21)
$Label5 = GUICtrlCreateLabel("1", 8, 160, 10, 17)
$Input7 = GUICtrlCreateInput("2", 72, 184, 41, 21)
$Input8 = GUICtrlCreateInput("1", 24, 184, 41, 21)
$Label6 = GUICtrlCreateLabel("1", 8, 184, 10, 17)
$Input9 = GUICtrlCreateInput("2", 72, 208, 41, 21)
$Input10 = GUICtrlCreateInput("1", 24, 208, 41, 21)
$Label7 = GUICtrlCreateLabel("1", 8, 208, 10, 17)
ElseIf GUICtrlRead ($Combo1) = "6" Then
$Label3 = GUICtrlCreateLabel("1", 8, 112, 10, 17)
$Input1 = GUICtrlCreateInput("1", 24, 112, 41, 21)
$Input2 = GUICtrlCreateInput("2", 72, 112, 41, 21)
$Input3 = GUICtrlCreateInput("2", 72, 136, 41, 21)
$Input4 = GUICtrlCreateInput("1", 24, 136, 41, 21)
$Label4 = GUICtrlCreateLabel("1", 8, 136, 10, 17)
$Input5 = GUICtrlCreateInput("2", 72, 160, 41, 21)
$Input6 = GUICtrlCreateInput("1", 24, 160, 41, 21)
$Label5 = GUICtrlCreateLabel("1", 8, 160, 10, 17)
$Input7 = GUICtrlCreateInput("2", 72, 184, 41, 21)
$Input8 = GUICtrlCreateInput("1", 24, 184, 41, 21)
$Label6 = GUICtrlCreateLabel("1", 8, 184, 10, 17)
$Input9 = GUICtrlCreateInput("2", 72, 208, 41, 21)
$Input10 = GUICtrlCreateInput("1", 24, 208, 41, 21)
$Label7 = GUICtrlCreateLabel("1", 8, 208, 10, 17)
$Input11 = GUICtrlCreateInput("2", 248, 112, 41, 21)
$Input12 = GUICtrlCreateInput("1", 200, 112, 41, 21)
$Label8 = GUICtrlCreateLabel("1", 184, 112, 10, 17)
ElseIf GUICtrlRead ($Combo1) = "7" Then
$Label3 = GUICtrlCreateLabel("1", 8, 112, 10, 17)
$Input1 = GUICtrlCreateInput("1", 24, 112, 41, 21)
$Input2 = GUICtrlCreateInput("2", 72, 112, 41, 21)
$Input3 = GUICtrlCreateInput("2", 72, 136, 41, 21)
$Input4 = GUICtrlCreateInput("1", 24, 136, 41, 21)
$Label4 = GUICtrlCreateLabel("1", 8, 136, 10, 17)
$Input5 = GUICtrlCreateInput("2", 72, 160, 41, 21)
$Input6 = GUICtrlCreateInput("1", 24, 160, 41, 21)
$Label5 = GUICtrlCreateLabel("1", 8, 160, 10, 17)
$Input7 = GUICtrlCreateInput("2", 72, 184, 41, 21)
$Input8 = GUICtrlCreateInput("1", 24, 184, 41, 21)
$Label6 = GUICtrlCreateLabel("1", 8, 184, 10, 17)
$Input9 = GUICtrlCreateInput("2", 72, 208, 41, 21)
$Input10 = GUICtrlCreateInput("1", 24, 208, 41, 21)
$Label7 = GUICtrlCreateLabel("1", 8, 208, 10, 17)
$Input11 = GUICtrlCreateInput("2", 248, 112, 41, 21)
$Input12 = GUICtrlCreateInput("1", 200, 112, 41, 21)
$Label8 = GUICtrlCreateLabel("1", 184, 112, 10, 17)
$Input13 = GUICtrlCreateInput("2", 248, 136, 41, 21)
$Input14 = GUICtrlCreateInput("1", 200, 136, 41, 21)
$Label9 = GUICtrlCreateLabel("1", 184, 136, 10, 17)
ElseIf GUICtrlRead ($Combo1) = "8" Then
$Label3 = GUICtrlCreateLabel("1", 8, 112, 10, 17)
$Input1 = GUICtrlCreateInput("1", 24, 112, 41, 21)
$Input2 = GUICtrlCreateInput("2", 72, 112, 41, 21)
$Input3 = GUICtrlCreateInput("2", 72, 136, 41, 21)
$Input4 = GUICtrlCreateInput("1", 24, 136, 41, 21)
$Label4 = GUICtrlCreateLabel("1", 8, 136, 10, 17)
$Input5 = GUICtrlCreateInput("2", 72, 160, 41, 21)
$Input6 = GUICtrlCreateInput("1", 24, 160, 41, 21)
$Label5 = GUICtrlCreateLabel("1", 8, 160, 10, 17)
$Input7 = GUICtrlCreateInput("2", 72, 184, 41, 21)
$Input8 = GUICtrlCreateInput("1", 24, 184, 41, 21)
$Label6 = GUICtrlCreateLabel("1", 8, 184, 10, 17)
$Input9 = GUICtrlCreateInput("2", 72, 208, 41, 21)
$Input10 = GUICtrlCreateInput("1", 24, 208, 41, 21)
$Label7 = GUICtrlCreateLabel("1", 8, 208, 10, 17)
$Input11 = GUICtrlCreateInput("2", 248, 112, 41, 21)
$Input12 = GUICtrlCreateInput("1", 200, 112, 41, 21)
$Label8 = GUICtrlCreateLabel("1", 184, 112, 10, 17)
$Input13 = GUICtrlCreateInput("2", 248, 136, 41, 21)
$Input14 = GUICtrlCreateInput("1", 200, 136, 41, 21)
$Label9 = GUICtrlCreateLabel("1", 184, 136, 10, 17)
$Input15 = GUICtrlCreateInput("2", 248, 160, 41, 21)
$Input16 = GUICtrlCreateInput("1", 200, 160, 41, 21)
$Label10 = GUICtrlCreateLabel("1", 184, 160, 10, 17)
ElseIf GUICtrlRead ($Combo1) = "9" Then
$Label3 = GUICtrlCreateLabel("1", 8, 112, 10, 17)
$Input1 = GUICtrlCreateInput("1", 24, 112, 41, 21)
$Input2 = GUICtrlCreateInput("2", 72, 112, 41, 21)
$Input3 = GUICtrlCreateInput("2", 72, 136, 41, 21)
$Input4 = GUICtrlCreateInput("1", 24, 136, 41, 21)
$Label4 = GUICtrlCreateLabel("1", 8, 136, 10, 17)
$Input5 = GUICtrlCreateInput("2", 72, 160, 41, 21)
$Input6 = GUICtrlCreateInput("1", 24, 160, 41, 21)
$Label5 = GUICtrlCreateLabel("1", 8, 160, 10, 17)
$Input7 = GUICtrlCreateInput("2", 72, 184, 41, 21)
$Input8 = GUICtrlCreateInput("1", 24, 184, 41, 21)
$Label6 = GUICtrlCreateLabel("1", 8, 184, 10, 17)
$Input9 = GUICtrlCreateInput("2", 72, 208, 41, 21)
$Input10 = GUICtrlCreateInput("1", 24, 208, 41, 21)
$Label7 = GUICtrlCreateLabel("1", 8, 208, 10, 17)
$Input11 = GUICtrlCreateInput("2", 248, 112, 41, 21)
$Input12 = GUICtrlCreateInput("1", 200, 112, 41, 21)
$Label8 = GUICtrlCreateLabel("1", 184, 112, 10, 17)
$Input13 = GUICtrlCreateInput("2", 248, 136, 41, 21)
$Input14 = GUICtrlCreateInput("1", 200, 136, 41, 21)
$Label9 = GUICtrlCreateLabel("1", 184, 136, 10, 17)
$Input15 = GUICtrlCreateInput("2", 248, 160, 41, 21)
$Input16 = GUICtrlCreateInput("1", 200, 160, 41, 21)
$Label10 = GUICtrlCreateLabel("1", 184, 160, 10, 17)
$Input17 = GUICtrlCreateInput("2", 248, 184, 41, 21)
$Input18 = GUICtrlCreateInput("1", 200, 184, 41, 21)
$Label11 = GUICtrlCreateLabel("1", 184, 184, 10, 17)
ElseIf GUICtrlRead ($Combo1) = "10" Then
$Label3 = GUICtrlCreateLabel("1", 8, 112, 10, 17)
$Input1 = GUICtrlCreateInput("1", 24, 112, 41, 21)
$Input2 = GUICtrlCreateInput("2", 72, 112, 41, 21)
$Input3 = GUICtrlCreateInput("2", 72, 136, 41, 21)
$Input4 = GUICtrlCreateInput("1", 24, 136, 41, 21)
$Label4 = GUICtrlCreateLabel("1", 8, 136, 10, 17)
$Input5 = GUICtrlCreateInput("2", 72, 160, 41, 21)
$Input6 = GUICtrlCreateInput("1", 24, 160, 41, 21)
$Label5 = GUICtrlCreateLabel("1", 8, 160, 10, 17)
$Input7 = GUICtrlCreateInput("2", 72, 184, 41, 21)
$Input8 = GUICtrlCreateInput("1", 24, 184, 41, 21)
$Label6 = GUICtrlCreateLabel("1", 8, 184, 10, 17)
$Input9 = GUICtrlCreateInput("2", 72, 208, 41, 21)
$Input10 = GUICtrlCreateInput("1", 24, 208, 41, 21)
$Label7 = GUICtrlCreateLabel("1", 8, 208, 10, 17)
$Input11 = GUICtrlCreateInput("2", 248, 112, 41, 21)
$Input12 = GUICtrlCreateInput("1", 200, 112, 41, 21)
$Label8 = GUICtrlCreateLabel("1", 184, 112, 10, 17)
$Input13 = GUICtrlCreateInput("2", 248, 136, 41, 21)
$Input14 = GUICtrlCreateInput("1", 200, 136, 41, 21)
$Label9 = GUICtrlCreateLabel("1", 184, 136, 10, 17)
$Input15 = GUICtrlCreateInput("2", 248, 160, 41, 21)
$Input16 = GUICtrlCreateInput("1", 200, 160, 41, 21)
$Label10 = GUICtrlCreateLabel("1", 184, 160, 10, 17)
$Input17 = GUICtrlCreateInput("2", 248, 184, 41, 21)
$Input18 = GUICtrlCreateInput("1", 200, 184, 41, 21)
$Label11 = GUICtrlCreateLabel("1", 184, 184, 10, 17)
$Input19 = GUICtrlCreateInput("1", 248, 208, 41, 21)
$Input20 = GUICtrlCreateInput("2", 200, 208, 41, 21)
$Label12 = GUICtrlCreateLabel("1", 184, 208, 10, 17)
EndIf
EndFuncFunc _Tab_2()
[/autoit]
$TabSheet3 = GUICtrlCreateTabItem("Farben Suche")
$Input = GUICtrlCreateInput("20", 32, 88, 73, 21)
$Input21 = GUICtrlCreateInput("21", 112, 88, 41, 21)
$Input22 = GUICtrlCreateInput("22", 160, 88, 41, 21)
$Label19 = GUICtrlCreateLabel("Zeit warten nachdem Farbe gefunden wurde", 32, 120, 214, 17)
$Input23 = GUICtrlCreateInput("23", 256, 120, 57, 21)
$Label20 = GUICtrlCreateLabel("Taste die nach der Zeit gerdückt werden soll", 32, 144, 215, 17)
$Input24 = GUICtrlCreateInput("24", 256, 144, 57, 21)
$Label21 = GUICtrlCreateLabel("Zeit warten nachdem Farbe gefunden wurde", 32, 168, 214, 17)
$Input25 = GUICtrlCreateInput("25", 256, 168, 57, 21)
$Label17 = GUICtrlCreateLabel("Farbe", 40, 64, 31, 17)
$Label18 = GUICtrlCreateLabel("x", 128, 64, 9, 17)
$Label22 = GUICtrlCreateLabel("y", 176, 64, 9, 17)
EndFunc ;==>_Tab_2Also
ich will machen wen man in der combobox z.b. 2 auswehlt und dann auf tabsheet 2 reien da sind und wen ich danach wieder 1 mache nur noch 1 da ist -
Ich verstehe dein problem nicht das geschieht doch eh oder habe ich da was falsch verstanden
-
ja schon aber es flakert so derbe das man garnichts erkennt

-
bei mir nicht aber ich würde nicht so schenll klicken weil wenn man normal klickt sieht man es gut aber wenn man sehr schnell klickt fängt es an zu flackern
-
ich meine
wen man die combo box sichtbar macht und in den tab geht dann flakert es