Autor Beitrag
Andreas Pfau
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 997



BeitragVerfasst: Do 16.10.03 20:02 
Hallo,

ich will mit Girder (Tool zum fernsteuern des PCs) Winamp steuern. OK, ich habe rausgefunden, welche Message mit welchen Parametern ich an Winamp schicken muss, um Befehle wie Start, Stop, Pause usw. zu stuern.

Aber wie kann ich den Mediekatalog (aka "Media Libary", "ML") fernsteuern? Also Befehle für nächsten/vorherigen Track???

_________________
Life is a bad adventure, but the graphic is really good!
The-FoX
ontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 203

Win XP
D6 Pers
BeitragVerfasst: Do 16.10.03 22:42 
Mein Freund hat auf ner Casemoddingseite mal ein Tutorial verfasst, in dem mit Schaltplan usw. erklärt wird wie man sich einen Empfäger bauen kann. Als Sender dient eine Universalfernbedinung. Das Programm zu steuern ist btw. auch in Delphi geschrieben.

Ich muss den Link raussuchen und dann post ich ihn hier.
Andreas Pfau Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 997



BeitragVerfasst: Fr 17.10.03 12:59 
Hallo,

sorry, habe mich da wohl etwas undeutlich ausgedrückt - So ein Ding habe ich schon, ich steure es mit der Fernbedienung meines alten Fernsehrers an.

Das war nur der übergang zur eignetlichen Frage - Welche Messages muss ich an Winamp schicken, damit der Medienkatalog den nächsten Titel spielt? Oder gibt's da Lösungen mit DDE (oder COM)?

_________________
Life is a bad adventure, but the graphic is really good!
toms
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1099
Erhaltene Danke: 2



BeitragVerfasst: Fr 17.10.03 13:03 
Hi!

Ich hab's mal so gemacht:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
procedure SendKeyStroke(ch: Char);
var
  wnd:HWND;
begin
  wnd := FindWindow('Studio',nil);
  PostMessage(wnd, WM_KEYDOWN, Word(ch), 0);
  PostMessage(wnd,  WM_KEYUP, Word(ch), 0);
end;


SendKeyStroke('X');  // Play
SendKeyStroke('V');  // Stop
SendKeyStroke('C');  // Pause
SendKeyStroke('B');  // Next Track
SendKeyStroke('Z');  // Previous Track
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Fr 17.10.03 14:27 
du willst also die playlist fernsteuern ?? hier findest du alle commands: www.winamp.com/nsdn/...2x/dev/sdk/api.jhtml

_________________
In the beginning was the word.
And the word was content-type: text/plain.