Autor Beitrag
mimi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 3458

Ubuntu, Win XP
Lazarus
BeitragVerfasst: So 24.09.06 00:01 
Hallo,
ich schreibe mir gerade ein kleines programmchen um winamp bequem von meiner maus stuern zu können also per click mache ich das das geht auch schon recht gut:

wird einmal die linke maustaste gerück spielt winamp ein lied ab, prima... ich verwende den tip von:
www.delphi-library.d...+einlesen_48816.html

so jetzt meine frgage:
Kann ich über die funktion
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
procedure Winamp(value:Integer);
var hwndWinamp: THandle;
begin
    hwndWinamp:= FindWindow('Winamp v1.x',nil);
    if hwndWinamp<>0 then SendMessage(hwndWinamp,WM_COMMAND, value, 0)
    else
      ShowMessage('OK');
end;

playlisten laden und zu einem bestimmten eintrag springen ???

_________________
MFG
Michael Springwald, "kann kein englisch...."
JayEff
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2971

Windows Vista Ultimate
D7 Enterprise
BeitragVerfasst: So 24.09.06 01:19 
Sicher nicht. Ich krame mal eben mein altes Projekt aus ...
Hier mit Shellexecute:
ShellExecute(0, Nil, PChar(WinAmpDir + 'winamp.exe'), PChar('/ADD "' + FileName + '"'), Nil, SW_SHOWNORMAL); damit kannst du dateien der playliste hinzufügen. Den rest findest du sicher selbst raus ^^
Vergiss nicht, die Unit ShellAPI einzubinden...

_________________
>+++[>+++[>++++++++<-]<-]<++++[>++++[>>>+++++++<<<-]<-]<<++
[>++[>++[>>++++<<-]<-]<-]>>>>>++++++++++++++++++.+++++++.>++.-.<<.>>--.<+++++..<+.
mimi Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 3458

Ubuntu, Win XP
Lazarus
BeitragVerfasst: So 24.09.06 01:33 
danke für die antwort sowas habe ich mir schon gedacht !!! ist warscheinlich auch das einfachste...

kann ich denn auch einfach zu einen bestimmten index in der playliste springen über einen parameter ?

_________________
MFG
Michael Springwald, "kann kein englisch...."
JayEff
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2971

Windows Vista Ultimate
D7 Enterprise
BeitragVerfasst: So 24.09.06 01:41 
leider nicht dass ich wüsste ... :(

_________________
>+++[>+++[>++++++++<-]<-]<++++[>++++[>>>+++++++<<<-]<-]<<++
[>++[>++[>>++++<<-]<-]<-]>>>>>++++++++++++++++++.+++++++.>++.-.<<.>>--.<+++++..<+.