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
#include <GuiConstantsEx.au3>
#include <Misc.au3>
#include <EditConstants.au3>
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)
GuiSetState()
[/autoit] [autoit][/autoit] [autoit]While 1
$msg = GuiGetMsg()
Select
Case $msg = $GUI_EVENT_CLOSE
Exit
Endselect
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
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.