Hey ich (hauptsächlich Freund von mir) hat mal diesen Script hier erstellt...
[autoit]#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <TabConstants.au3>
#include <WindowsConstants.au3>
$Form1 = GUICreate("PC-Informations", 615, 395)
GUICtrlCreateTab(8, 8, 601, 369)
$TabSheet1 = GUICtrlCreateTabItem("Login")
$user = GUICtrlCreateInput("Benutzername", 40, 64, 121, 21)
$pw = GUICtrlCreateInput("Passwort", 40, 96, 121, 21, BitOR($GUI_SS_DEFAULT_INPUT,$ES_PASSWORD))
$login = GUICtrlCreateButton("Login", 40, 128, 75, 25)
$TabSheet2 = GUICtrlCreateTabItem("Register")
$Label1 = GUICtrlCreateLabel("Hier siehst du den Reg.", 32, 56, 153, 17)
$usernew = GUICtrlCreateInput("Benutzername", 40, 80, 121, 21)
$pwnew = GUICtrlCreateInput("Passwort", 40, 112, 121, 21)
$register = GUICtrlCreateButton("Register", 40, 140, 75, 25)
$TabSheet3 = GUICtrlCreateTabItem("PC-Info-Tool")
$text = GUICtrlCreateLabel("Nicht eingeloggt", 32, 48,99999999999)
GUICtrlCreateTabItem("")
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $login
$user = GUICtrlRead ($user)
$pw = GUICtrlRead ($pw)
If Not FileReadLine (@ScriptDir & "\Datenbank\" & $user & ".txt") = $pw Then
MsgBox (16,"","Inkorrekte Logindaten")
ShellExecute (@ScriptFullPath)
Exit
Else
MsgBox (0,"","Du hast dich erfolgreich eingeloggt, " & $user)
GUICtrlSetData ($text,FileReadLine (@ScriptDir & "\Datenbank\" & $user & ".txt",2))
EndIf
Case $register
$usernew = GUICtrlRead ($usernew)
$pwnew = GUICtrlRead ($pwnew)
If $pwnew = "" Or $usernew = "" Then
MsgBox (16,"","Fehlende Daten")
ShellExecute (@ScriptFullPath)
Exit
EndIf
FileWrite (@ScriptDir & "\Datenbank\" & $usernew & ".txt",$pwnew &@CRLF & "Das ist nur für dich " & $usernew)
MsgBox (0,"","Sie haben sich erfolgreich registriert und können sich nun einloggen.")
EndSwitch
WEnd
Ich möchte jetzt wissen wo ich das Case für den PC-Info-Tool mache. Das heißt ich möchte wenn man auf PC-Info-Tool klickt das dann halt mein System-Info kommt ![]()