Hallo Leute
Ja ich bin es wieder Ich wollte es somachen,
dass wenn man auf Settings klickt kommt ein 2.Gui dort sind Checkboxen, diese kann man aktivieren & klickt man auf Save soll er diese Funktion speichern (am besten keine Datei erstellen) und dann kommt wieder das Normale Gui ' $FORM2 '
Dann ist man wieder FORM2 und die Funktion sollte aktiv sein , wie kann man sowas machen
Die *.ico sind im Anhang unten.
Warum ich soviele Include's habe *Fragt mich nicht Ich hab immer soviele lieber zuviel als zuwenig :)*
Spoiler anzeigen
#include <GUIConstantsEx.au3 >
#include <WindowsConstants.au3>
#include <EditConstants.au3>
#include <Date.au3>
#include <ListViewConstants.au3>
#include <WindowsConstants.au3>
#include <ListviewConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <SliderConstants.au3>
#Include <GuiListView.au3>
#Include <Array.au3>
#Include <File.au3>
#Include <GuiListView.au3>
#Include<StructureConstants.au3>
#include<Constants.au3>
#include <GUIConstantsEx.au3>
#include <ButtonConstants.au3>
HotkeySet("{END}","_exit")
[/autoit] [autoit][/autoit] [autoit][/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]opt("GUIResizeMode",802)
Opt("WinTitleMatchMode", 2)
Opt("TrayMenuMode", 1)
Opt("TrayOnEventMode", 1)
$vVersion = "Version 2.1"
[/autoit] [autoit][/autoit] [autoit]If @Compiled = 0 Then
TraySetIcon("Rubik-Pocket-Cube.ico")
EndIf
TraySetToolTip($vVersion)
[/autoit] [autoit][/autoit] [autoit]$BOLTEST = False
$FORM1 = GUICreate("Tool " & $vVersion & " - by TuttiFrutti", 195, 15, -1, -1, $WS_POPUP, 0)
GUISetBkColor(16777215)
$Progress1 = GUICtrlCreateProgress(-1, -1, 198, 17)
[/autoit] [autoit][/autoit] [autoit]GUISetState(@SW_SHOW)
For $i = 0 To 100 Step 5
Sleep(60)
GUICtrlSetData($Progress1, $i)
Next
ProgressOff()
GUISetState(@SW_HIDE)
;=======================================================================================================
[/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]$FORM2 = GUICreate("(C) " & $vVersion & "", 405, 235, -1, -1,$WS_POPUP + $WS_SIZEBOX +$WS_EX_TOOLWINDOW+$WS_EX_TOPMOST+$WS_EX_WINDOWEDGE + $WS_EX_TOPMOST + $WS_VISIBLE + $WS_CLIPSIBLINGS)
[/autoit] [autoit][/autoit] [autoit][/autoit] [autoit];====================================================
[/autoit] [autoit][/autoit] [autoit]$Info = GUICtrlCreateButton("F.A.Q", 370, 0, 35, 30 , $BS_ICON)
GUICtrlSetImage(-1, @ScriptDir & "\Green-block.ico",1)
$Settings = GUICtrlCreateButton("Settings", 330, 0, 35, 30 , $BS_ICON)
GUICtrlSetImage(-1, @ScriptDir & "\Settings.ico",1)
;====================================================;====================================================
[/autoit] [autoit][/autoit] [autoit]$TAB1 = GUICtrlCreateTab(8, 8, 390, 225)
GUICtrlSetResizing(-1, $GUI_DOCKWIDTH + $GUI_DOCKHEIGHT)
$Tab = GUICtrlCreateTabItem("Allgemein")
$Group1 = GUICtrlCreateGroup("", 20, 48, 145, 73)
$Exit = GUICtrlCreateButton("Exit", 105, 129, 65, 31)
$AllgemeinLabel = GUICtrlCreateLabel(" Made by:", 35, 64, 111, 18)
$AllgemeinLabel2 = GUICtrlCreateLabel(" T u t t i _ F r u t t i", 35, 80, 105, 18)
$AllgemeinLabel3 = GUICtrlCreateLabel(" " & $vVersion, 35, 97, 105, 18)
GUICtrlCreateTabItem("")
;====================================================
GUISetState(@SW_SHOW)
While 1
[/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]$MSG = GUIGetMsg(1)
Switch $MSG[1]
Case $FORM1
If $BOLTEST = False Then
For $i = 0 To 100 Step +1
Sleep(5)
GUICtrlSetData($Progress1, $i)
Next
GUISetState(@SW_HIDE, $FORM1)
GUISetState(@SW_SHOW, $FORM2)
$BOLTEST = True
EndIf
Case $FORM2
Switch $MSG[0]
Case $GUI_EVENT_CLOSE,$Exit
Exit
Case $Info
MsgBox(0,"","Info ~ F.A.Q --- [Tutti_Frutti] (c) 2009 - 2010")
Case $Settings
Settings()
EndSwitch
EndSwitch
WEnd
Func Settings()
Opt("GUIOnEventMode", 0)
GUISetState(@SW_DISABLE, $FORM2)
GUISetState(@SW_HIDE, $FORM2)
$settinggui = GUICreate("Settings", 518, 190)
$cancel = GUICtrlCreateButton("Exit", 263, 160, 247, 20, 0)
$save = GUICtrlCreateButton("Save", 10, 160, 247, 20, 0)
$groupdelays = GUICtrlCreateGroup("Keine Ahnung", 10, 10, 260, 91)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$groupgeneral2 = GUICtrlCreateGroup("Info", 10, 105, 500, 50)
$Label1 = GUICtrlCreateLabel("Copyright by T u t t i _ F r u t t i (C) 2009 - 2010 # ", 104, 128, 308, 19)
GUICtrlSetFont(-1, 10, 800, 0, "Times New Roman")
GUICtrlCreateGroup("", -99, -99, 1, 1)
$FTP = GUICtrlCreateGroup("Einstellungen", 280, 10, 230, 91)
$Checkbox2 = GUICtrlCreateCheckbox("Mit Windows starten", 295, 34, 121, 17)
$Checkbox1 = GUICtrlCreateCheckbox("Immer im Vordergrund", 295, 65, 129, 17)
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUISetState(@SW_SHOW, $settinggui)
While 1
Switch GUIGetMsg($settinggui)
Case - 3
ExitLoop
Case $cancel
ExitLoop
Case $save
MsgBox(0,"","Comming Soon...")
ExitLoop
;Exit
EndSwitch
Sleep(10)
WEnd
GUIDelete($settinggui)
Sleep(100)
GUISetState(@SW_ENABLE, $FORM2)
GUISetState(@SW_SHOW, $FORM2)
GUISetState(@SW_ENABLE, $FORM1)
EndFunc
Func _exit()
Exit
EndFunc