HIILFE ._.

09/22/2010 23:39 Hackerfreak1#1
Huhu e*Pvp :D

Ich habe ein "kleines" prob...^^


Ich mache siet ööhmmm n paar wochen autoIt nebenbei.. also kann es noch nicht sooo gut ^^


ich habe ein kleines problem ^^
und zwar :

Ich habe auf meinem Desktop einen Ordner
in dem ordner ist eine musik datei.

ich will jezt das script dazu bringen den ordner zu öffnen und dan die musik datei abzuspielen... weiß aber nicht wie ..

gegoogelt habe ich es auch schon finde aber nicht wirklich das wo nach i suche ^^ ...

Also

PHP Code:
HotKeySet("{F6}","Detonate")



#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <SliderConstants.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("<3", 995, 691, -1, -1)
$Label1 = GUICtrlCreateLabel("", 88, 0, 52, 17)
$Label2 = GUICtrlCreateLabel("", 0, 24, 121, 17)
$Checkbox1 = GUICtrlCreateCheckbox("", 0, 48, 97, 17)
$Checkbox2 = GUICtrlCreateCheckbox("", 0, 64, 97, 17)
$Checkbox3 = GUICtrlCreateCheckbox("", 0, 80, 97, 17)
$Button1 = GUICtrlCreateButton("", 152, 0, 35, 25)
$Slider1 = GUICtrlCreateSlider(0, 96, 142, 45)
$Label3 = GUICtrlCreateLabel("", 144, 104, 63, 17)
$Label4 = GUICtrlCreateLabel("", 0, 144, 18, 17)
$Label5 = GUICtrlCreateLabel("", 24, 144, 24, 17)
$Label6 = GUICtrlCreateLabel("", 56, 144, 24, 17)
$Label7 = GUICtrlCreateLabel("", 88, 144, 24, 17)
$Label8 = GUICtrlCreateLabel("", 128, 144, 105, 17)
$Edit1 = GUICtrlCreateEdit("", 272, 0, 729, 777)
GUICtrlSetFont(-1, 12, 400, 2, "Segoe Script")
$Button2 = GUICtrlCreateButton("", 136, 32, 75, 25)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg 
= GUIGetMsg()
    Switch 
$nMsg
        
Case $GUI_EVENT_CLOSE
            
Exit
        Case 
$Checkbox1
            MsgBox
(1,"")
        Case 
$Checkbox2
            Msgbox
(1,"""")
        Case 
$Checkbox3
            MsgBox
(1,"","")
        Case 
$Button1
            MsgBox
(1,"","")
        Case 
$Button2
        
;Hier wen ich auf den Button klicke soll die musik datei aufgehen und abgespieltwerden
        
            

    
EndSwitch
WEnd



Func Detonate 
()
    Exit 
EndFunc 


Ich danke schon ma fuer hilfe :):p:handsdown::handsdown:
09/23/2010 00:11 lolkop#2
SoundPlay() und FileOpenDialog() sind wohl das was du dazu brauchst...

anstatt google nach fertigem code zu fragen, könntest du ja mal F1 drücken in scite.
09/23/2010 07:20 Hackerfreak1#3
Okay ich werde es ma versuchen Danke :D