Speichern

  • WinMove..

    [autoit]

    #include <ButtonConstants.au3>
    #include <GUIConstantsEx.au3>
    #include <WindowsConstants.au3>
    #Region ### START Koda GUI section ### Form=
    $Form1 = GUICreate("Form1", 440, 158, 192, 124)
    $Button1 = GUICtrlCreateButton("Button2", 112, 32, 97, 49, $WS_GROUP)
    GUISetState(@SW_SHOW)
    #EndRegion ### END Koda GUI section ###

    [/autoit][autoit][/autoit][autoit]

    While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
    Case $GUI_EVENT_CLOSE
    Exit
    Case $Button1
    WinMove("Form1", "", 500, 200, 800, 600)
    EndSwitch
    WEnd

    [/autoit]
  • ok danke geht 8o kennst dich ja gut mit autoit aus :thumbup:

    Edit:
    jezt wirds fenster aber riesig

    Spoiler anzeigen
    [autoit]

    #include < ButtonConstants.au3 >
    #include <EditConstants.au3>
    #include <GUIConstantsEx.au3>
    #include <StaticConstants.au3>
    #include <WindowsConstants.au3>
    $a = "Firefox"

    [/autoit] [autoit][/autoit] [autoit]

    #region ### START Koda GUI section ### Form=

    [/autoit] [autoit][/autoit] [autoit]

    $Form1 = GUICreate("Form1", 168, 114, 381, 420)
    $Checkbox1 = GUICtrlCreateCheckbox($a, 8, 40, 97, 17)
    $Label1 = GUICtrlCreateLabel("Multitooler Einstellungen", 0, 0, 166, 30, $SS_CENTER)
    GUICtrlSetFont(-1, 18, 400, 0, "Niagara Solid")
    $Button1 = GUICtrlCreateButton("Speichern", 0, 88, 171, 25, 0)

    [/autoit] [autoit][/autoit] [autoit]

    GUISetState(@SW_SHOW)
    #endregion ### END Koda GUI section ###

    [/autoit] [autoit][/autoit] [autoit]

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

    [/autoit] [autoit][/autoit] [autoit]

    Case $Checkbox1
    $Checkbox_read = GUICtrlRead($Checkbox1)

    [/autoit] [autoit][/autoit] [autoit]

    If $Checkbox_read = "4" Then
    GUICtrlSetData($Checkbox1, "Internet Explorer")

    [/autoit] [autoit][/autoit] [autoit]

    GUICtrlSetData($Checkbox1, "Firefox")
    EndIf
    If $Checkbox_read = "1" Then
    GUICtrlSetData($Checkbox1, "Internet Explorer")
    EndIf
    Case $Button1
    WinMove("Form1", "", 168, 131, 381, 420)
    $Checkbox_read = GUICtrlRead($Checkbox1)
    $Progress1 = GUICtrlCreateProgress(0, 112, 166, 17)
    IniWrite("Firefox oder InternetExplorer", "123", "321", $Checkbox_read)
    EndSwitch
    WEnd

    [/autoit]

    Einmal editiert, zuletzt von bernd670 (2. Januar 2011 um 17:00)

  • nja muss halt anpassen...

    [autoit]

    WinMove("Form1", "", 381, 420, 300, 300)

    [/autoit]

    die beide 300erschritt für schritt ändern, bis sie die gewnschte größe hatt......

  • habs doch angepasst hab bei koda die größe genommen und dann gedrückt und wieso ist mein button jezt ganz unten?

    sol dann so aussehen

    Spoiler anzeigen
    [autoit]

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

    [/autoit] [autoit][/autoit] [autoit]

    #Region ### START Koda GUI section ### Form=
    $Form1 = GUICreate("Form1", 168, 132, 381, 420)
    $Checkbox1 = GUICtrlCreateCheckbox("Firefox", 8, 40, 97, 17)
    $Button1 = GUICtrlCreateButton("Speichern", 0, 88, 171, 25, 0)
    $Label1 = GUICtrlCreateLabel("Multitooler Einstellungen", 0, 0, 166, 30, $SS_CENTER)
    GUICtrlSetFont(-1, 18, 400, 0, "Niagara Solid")
    $Progress1 = GUICtrlCreateProgress(0, 112, 166, 17)
    GUISetState(@SW_SHOW)
    #EndRegion ### END Koda GUI section ###

    [/autoit] [autoit][/autoit] [autoit]

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

    [/autoit] [autoit][/autoit] [autoit]

    Case $Checkbox1
    EndSwitch
    WEnd

    [/autoit]
  • winmove ändert auch die größe bzw posi der sachen in der gui...


    hmm, fällt mir grad nicht so ein außer:

    du könntest die 2. gui miteinbeziehen und per button aufrufen lassen und die alte verstecken/löschen...

  • ja das geht aber dann nur wen ich weiß wie ich es beim 2 programm mache das die checkbox schon abgechackt ist geht das überhaupt?

    Edit:

    mach ein 2. neues fenster und lass das aufrufen wie mache ich das dann wen beim einem abgehackt ist das auch abgehackt ist

    Einmal editiert, zuletzt von bernd670 (2. Januar 2011 um 17:04)

    • Offizieller Beitrag

    @manuel6000,

    bitte keine Mehrfachbeiträge, wenn du was neues hast und letzte Beitrag noch von dir ist, sollte man den letzten Beitrag bearbeiten.

  • nja.. zb so:

    aber ergibt eh wenig sinn....

    Spoiler anzeigen
    [autoit]

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

    [/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]

    #Region ### START Koda GUI section ### Form=
    $Form1 = GUICreate("Form1", 168, 114, 381, 420)
    $Checkbox1 = GUICtrlCreateCheckbox("Firefox", 8, 40, 97, 17)
    $Label1 = GUICtrlCreateLabel("Multitooler Einstellungen", 0, 0, 166, 30, $SS_CENTER)
    GUICtrlSetFont(-1, 18, 400, 0, "Niagara Solid")
    $Button1 = GUICtrlCreateButton("Speichern", 0, 88, 171, 25, 0)
    GUISetState(@SW_SHOW)
    #EndRegion ### END Koda GUI section ###

    [/autoit] [autoit][/autoit] [autoit]

    #Region ### START Koda GUI section ### Form=
    $Form2 = GUICreate("Form1", 168, 132, 381, 420)
    $Checkbox2 = GUICtrlCreateCheckbox("Firefox", 8, 40, 97, 17)
    $Button2 = GUICtrlCreateButton("Speichern", 0, 88, 171, 25, 0)
    $Label2 = GUICtrlCreateLabel("Multitooler Einstellungen", 0, 0, 166, 30, $SS_CENTER)
    GUICtrlSetFont(-1, 18, 400, 0, "Niagara Solid")
    $Progress2 = GUICtrlCreateProgress(0, 112, 166, 17)
    GUISetState(@SW_HIDE)
    #EndRegion ### END Koda GUI section ###

    [/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]

    While 1
    $nMsg = GUIGetMsg(1)
    Switch $nMsg[1]
    Case $Form1
    Switch $nMsg[0]
    Case $GUI_EVENT_CLOSE
    Exit
    Case $Checkbox1
    $Checkbox_read = GUICtrlRead($Checkbox1)
    If $Checkbox_read = "4" Then
    GUICtrlSetData($Checkbox1, "Firefox")
    ElseIf $Checkbox_read = "1" Then
    GUICtrlSetData($Checkbox1, "Internet Explorer")
    EndIf
    Case $Button1
    $Checkbox_read = GUICtrlRead($Checkbox1)
    IniWrite("Firefox oder InternetExplorer", "123", "321", $Checkbox_read)
    GUICtrlSetState($Checkbox2, GUICtrlRead($Checkbox1))
    GUISetState(@SW_HIDE, $Form1)
    GUISetState(@SW_SHOW, $Form2)
    EndSwitch
    Case $Form2
    Switch $nMsg[0]
    Case $GUI_EVENT_CLOSE
    Exit

    [/autoit] [autoit][/autoit] [autoit]

    EndSwitch
    EndSwitch
    WEnd

    [/autoit]