Magic Box (Dos-Box)

  • joa der script ist eher für anfänger gedacht doer für fortgeschrittene die eine anregung brauchen.
    schauts euch einfach selbst an^^ vielleicht kanns wer gebrauchen.

    Spoiler anzeigen
    [autoit]


    #include <GuiConstantsEx.au3>
    #include <Misc.au3>
    #include <EditConstants.au3>

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

    GuiCreate("magic box",225,115)
    $Config = GuiCtrlCreateEdit("---------------------Magic Box LOL---------------------",5,5,210,80,$ES_AUTOVSCROLL+$ES_READONLY)
    $ConfigMenue = GuiCtrlCreateInput("",5,87,210,20)
    GuiCtrlSetState($ConfigMenue,$GUI_FOCUS)

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

    GuiSetState()

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

    While 1
    $msg = GuiGetMsg()

    Select
    Case $msg = $GUI_EVENT_CLOSE
    Exit
    Endselect

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

    If _IsPressed("0D") And WinActive("magic box","") Then

    $SectionNames = IniReadSectionNames("cmd.ini")
    $Command = GuiCtrlRead($ConfigMenue)
    For $i = 1 To $SectionNames[0]
    If $Command = $SectionNames[$i] then
    $Message = IniRead ("cmd.ini",$SectionNames[$i],"Info","ERROR")
    GuiCtrlSetData($Config,$Message&@CRLF&GuiCtrlRead($Config))
    EndIf
    Next


    Sleep(100)
    GuiCtrlSetData($ConfigMenue,"")
    GuiCtrlSetState($ConfigMenue,$GUI_FOCUS)
    EndIf
    WEnd

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


    es sollte eine inidatei mit dem namen cmd.ini vorhanden sein, die folgende struktur enthält:

    Spoiler anzeigen


    [help]
    Info= - help.
    [lol]
    Info= - ich lolle.
    [ok]
    Info= - :D.