hab mal nur die GUI erstellt; den Buttons kannste ja dann die Funktionen zuweisen ich hab auch gleich ma noch ne Liste gemacht, für die PCs dann könntest du das auch einzeln machen und nicht nur alle
Spoiler anzeigen
#include <GUIConstants.au3>
[/autoit] [autoit][/autoit] [autoit]Global Const $ini = @ScriptDir&"\pcs.ini"
[/autoit] [autoit][/autoit] [autoit]$Form1 = GUICreate("Lehrer Modul", 354, 208, 193, 125)
$List1 = GUICtrlCreateList("", 8, 32, 145, 162)
$Label1 = GUICtrlCreateLabel("Schüler-PCs:", 8, 8, 141, 17)
GUICtrlSetFont(-1, 8, 800, 0, "MS Sans Serif")
$Button1 = GUICtrlCreateButton("MonitorLock", 160, 48, 89, 17, 0)
$Button2 = GUICtrlCreateButton("MonitorUnlock", 256, 48, 89, 17, 0)
$Button3 = GUICtrlCreateButton("Shutdown", 160, 96, 89, 17, 0)
$Button4 = GUICtrlCreateButton("Reboot", 160, 120, 89, 17, 0)
$Button5 = GUICtrlCreateButton("Abmelden", 160, 144, 89, 17, 0)
GUISetState(@SW_SHOW)
_readini()
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
Func _readini()
If FileExists($ini) then
$clients = IniRead($ini, "general", "count", "")
$msg = ""
If $clients > 0 Then
For $i = 1 To $clients
$msg &= IniRead($ini, "general", $i, "")&"|"
Next
$msg = StringTrimRight($msg, 1)
GUICtrlSetData($List1, $msg)
EndIf
EndIf
EndFunc