Hallo,
ich möchte gerne das er von der Variable $Laufwerksbuchstabe den Inhalt übernimmt und für eine Funktion benutz.
Danke für die Hilfe.
ich möchte gerne das er von der Variable $Laufwerksbuchstabe den Inhalt übernimmt und für eine Funktion benutz.
Code:
#include <ButtonConstants.au3>
#include <DateTimeConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <TabConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=C:\Dokumente und Einstellungen\XXXX\Desktop\tools.kxf
$Form1 = GUICreate("Form1", 610, 370, 192, 124)
$Tab1 = GUICtrlCreateTab(24, 16, 313, 313)
$TabSheet1 = GUICtrlCreateTabItem("CD/DVD")
[U]$Laufwerksbuchstaben = GUICtrlCreateLabel("Laufwerksbuchstaben", 48, 232, 109, 17)[/U]
$Label1 = GUICtrlCreateLabel("Beispiel: 'D:'", 48, 256, 61, 17)
$Button1 = GUICtrlCreateButton("Auswerfen", 48, 56, 161, 65)
$Button2 = GUICtrlCreateButton("Einziehen", 52, 143, 161, 65)
$Button3 = GUICtrlCreateButton("CD/DVD öffnen", 192, 272, 121, 33)
GUICtrlCreateInput("", 48, 280, 57, 21)
$TabSheet2 = GUICtrlCreateTabItem("Explorer")
$Button4 = GUICtrlCreateButton("Eigene Datein", 56, 64, 161, 65)
$Button5 = GUICtrlCreateButton("Arbeitsplatz", 56, 135, 161, 65)
$Button6 = GUICtrlCreateButton("FireFox öffnen", 56, 208, 161, 33)
$Button7 = GUICtrlCreateButton("InternetExplorer öffnen", 52, 248, 169, 33)
$TabSheet3 = GUICtrlCreateTabItem("Notizen")
GUICtrlCreateInput("", 32, 48, 289, 21)
GUICtrlSetResizing(-1, $GUI_DOCKAUTO+$GUI_DOCKHEIGHT)
GUICtrlSetCursor (-1, 5)
GUICtrlCreateTabItem("")
GUICtrlSetCursor (-1, 2)
$MonthCal1 = GUICtrlCreateMonthCal("2011/03/12", 360, 112, 233, 209)
$Label2 = GUICtrlCreateLabel("Kalender", 360, 40, 80, 28)
GUICtrlSetFont(-1, 15, 400, 0, "MS Sans Serif")
$Label3 = GUICtrlCreateLabel(" Idee und Programmierung: 2011", 24, 336, 416, 18)
GUICtrlSetFont(-1, 8, 400, 0, "Georgia")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
[U] Case $Button1
CDTray($Laufwerksbuchstaben, "open")[/U]
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd