Hilfe zu AutoIT-Scripts

  • Hi Leute.

    Ich habe dieses Thema erstellt, weil ich ein Problem habe. Ich möchte so eine Art Code Generator erstellen, der Codes generiert.

    Ich habe die Form mit Koda gemacht, aber hier geht was nicht.


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

    $random = Random(1, 9999999999999999, 1)
    #Region ### START Koda GUI section ### Form=
    $Form1 = GUICreate("KeyGen", 258, 112, 561, 257)
    GUISetIcon("C:\Dokumente und Einstellungen\Nic\Desktop\Dateien\PNG Icon Collection\Icons\_key.ico")
    $Label1 = GUICtrlCreateLabel("Key Generator", 8, 8, 244, 22)
    GUICtrlSetFont(-1, 12, 800, 0, "Verdana")
    $Button1 = GUICtrlCreateButton("Key generieren", 72, 72, 113, 25, 0)

    $Input1 = GUICtrlCreateInput($random, 8, 40, 241, 21)
    GUISetState(@SW_SHOW)
    #EndRegion ### END Koda GUI section ###

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

    Case $Label1
    EndSwitch
    WEnd


    Wenn man auf "Key generieren" klickt, sollte eigentlich in der InputBox ein code erscheinen, ist aber nicht.

    Würde mich auf Antwort und Hilfe freuen.


    AutoIT-Manic

  • Hallo, Koda macht ja auch eigentlich nur das Design, die Funktionen musst du schon selbst noch basteln ;).

    Spoiler anzeigen
    [autoit]

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

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

    $random = Random(1, 9999999999999999, 1)
    #Region ### START Koda GUI section ### Form=
    $Form1 = GUICreate("KeyGen", 258, 112, 561, 257)
    GUISetIcon("C:\Dokumente und Einstellungen\Nic\Desktop\Dateien\PNG Icon Collection\Icons\_key.ico")
    $Label1 = GUICtrlCreateLabel("Key Generator", 8, 8, 244, 22)
    GUICtrlSetFont(-1, 12, 800, 0, "Verdana")
    $Button1 = GUICtrlCreateButton("Key generieren", 72, 72, 113, 25, 0)

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

    $Input1 = GUICtrlCreateInput($random, 8, 40, 241, 21)
    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
    GUICtrlSetData($Input1, Random(1, 9999999999999999, 1))
    EndSwitch
    WEnd

    [/autoit]
  • Danke!!! Hat alles geklappt! PS Hast du ne HP oder ne E-Mail? Falls ja kannst du sie mir ma geben?