Hallo Leute
Ich hab wohl irgendwo einen Fehler oder einen Denkfehler denn hier gibt es anscheinen immer nen Error doch ich weis nicht weshalb
Spoiler anzeigen
;Von Kenngott Marco (Eistee, AsusExcite)
;E-Mail : [email='marco.kenngott@live.de'][/email]
;
;
;
#include <GUIConstants.au3>
#include <WindowsConstants.au3>
#include <StaticConstants.au3>
#include <Array.au3>
#include <File.au3>
Global $dRives
[/autoit] [autoit][/autoit] [autoit][/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]$dRives = DriveGetDrive("fixed")
[/autoit] [autoit][/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]If $dRives[1] = @error Then ; Wenn error dann $dRive1 = Keine HDD
$dRive1 = ("Keine HDD")
Else
$dRive1 = $dRives[1] ; ansonsten Name der Festplatte jedoch wird immer ausgegeben keine HDD
EndIf
$Form1 = GUICreate("Excite HDD-Information", 701, 589, 193, 125)
GUISetBkColor(0xFFFFFF)
$Pic1 = GUICtrlCreatePic("C:\Users\AsusDK\Desktop\ServerClientV1\HDDSpace\0.jpg", 279, 29, 400, 500, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
$Group1 = GUICtrlCreateGroup("HDD-Information", 264, 8, 425, 537)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Label1 = GUICtrlCreateLabel("c by Kenngott Marco (AsusExcite", 528, 560, 161, 17)
$Label2 = GUICtrlCreateLabel("Verwendetes Betriebssystem :", 16, 24, 145, 17)
$Label3 = GUICtrlCreateLabel("Windows 7 Ultimate", 16, 56, 183, 28)
GUICtrlSetFont(-1, 16, 800, 0, "Times New Roman")
GUICtrlSetColor(-1, 0x808080)
$Label4 = GUICtrlCreateLabel("Datenträger :", 16, 120, 66, 17)
$Label5 = GUICtrlCreateLabel($dRives[0], 120, 120, 36, 17)
$Button1 = GUICtrlCreateButton($dRive1, 16, 160, 75, 25, 0)
$Button2 = GUICtrlCreateButton("Button2", 16, 200, 75, 25, 0)
$Button3 = GUICtrlCreateButton("Button3", 16, 240, 75, 25, 0)
$Button4 = GUICtrlCreateButton("Button4", 16, 280, 75, 25, 0)
$Button5 = GUICtrlCreateButton("Button5", 16, 320, 75, 25, 0)
$Button6 = GUICtrlCreateButton("Button6", 16, 360, 75, 25, 0)
$Button7 = GUICtrlCreateButton("Button7", 16, 400, 75, 25, 0)
$Button8 = GUICtrlCreateButton("Button8", 16, 440, 75, 25, 0)
$Button9 = GUICtrlCreateButton("Button9", 16, 480, 75, 25, 0)
$Button10 = GUICtrlCreateButton("Button10", 16, 520, 75, 25, 0)
$Button11 = GUICtrlCreateButton("Button11", 112, 160, 75, 25, 0)
$Button12 = GUICtrlCreateButton("Button12", 112, 200, 75, 25, 0)
$Button13 = GUICtrlCreateButton("Button13", 112, 240, 75, 25, 0)
$Button14 = GUICtrlCreateButton("Button14", 112, 280, 75, 25, 0)
$Button15 = GUICtrlCreateButton("Button15", 112, 320, 75, 25, 0)
$Button16 = GUICtrlCreateButton("Button16", 112, 360, 75, 25, 0)
$Button17 = GUICtrlCreateButton("Button17", 112, 400, 75, 25, 0)
$Button18 = GUICtrlCreateButton("Button18", 112, 440, 75, 25, 0)
$Button19 = GUICtrlCreateButton("Button19", 112, 480, 75, 25, 0)
$Button20 = GUICtrlCreateButton("Button20", 112, 520, 75, 25, 0)
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
Er gibt immer nur aus keine HDD jedoch ist C:\ ja definitiv vorhanden sieht jemand den fehler ?