Autor Beitrag
delphijanka
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 151

WinXP
D 2009 Arc., Java, C
BeitragVerfasst: Mo 12.06.06 14:53 
ja, wie der Titel, schon sagt:
ich klicke auf den Button, wobei ich den Namen der Datei und ihren Ort angebe, und die wird mit WinAmp oder so geöffnet (wenn WinAmp als aktuelles für mp3-Dateien eingestellt ist)
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8548
Erhaltene Danke: 477

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Mo 12.06.06 15:23 
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
//Abspielen
ShellExecute(Handle, 'Play', PChar(datei_pfad), nilnil, SW_SHOWNORMAl)
// in die Playlist einfügen
ShellExecute(Handle, 'Enqueue', PChar(datei_pfad), nilnil, SW_SHOWNORMAl)
// Wenn das nicht klappt - überprüfbar z.B. durch 
// if Shellexecute(...code von oben..) < 33 then
ShellExecute(Handle, 'open', PChar(datei_pfad), nilnil, SW_SHOWNORMAl)

_________________
We are, we were and will not be.
delphijanka Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 151

WinXP
D 2009 Arc., Java, C
BeitragVerfasst: Mo 12.06.06 16:30 
bei mir schreibt: ShellExecute nicht gefunden
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8548
Erhaltene Danke: 477

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Mo 12.06.06 16:33 
Sorry, hab ich vergessen: Unit ShellApi in die Uses-Liste einfügen ;-)

_________________
We are, we were and will not be.