Autor Beitrag
Boldar
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1555
Erhaltene Danke: 70

Win7 Enterprise 64bit, Win XP SP2
Turbo Delphi
BeitragVerfasst: Sa 27.12.08 13:21 
Hallo,
ich will den WMP fernsteuern. Dafür hab ich das hier gefunden.

Aber wenn ich nun diesen code hier:
ausblenden Delphi-Quelltext
1:
2:
  wnd := GetWMPHandle;
  if wnd <> 0 then SendMessage(wnd,WM_APPCOMMAND,0,WMP_MEDIA_PLAY_PAUSE);

In einer Konsolenanwendung laufen lasse, kennt er wm_appcommand nicht.
Wo ist das definiert?
mfg
Boldar
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19346
Erhaltene Danke: 1754

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Sa 27.12.08 13:23 
Ich vermute in Messages (sonst wäre da noch Windows als Möglichkeit).

Tipp: Erstelle ein neues Projekt und halte die Maus über die entsprechende Konstante / Methode (die du da schreibst). Dann steht wo die definiert ist, und du kannst es in deinem Projekt verwenden. ;-)
Boldar Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1555
Erhaltene Danke: 70

Win7 Enterprise 64bit, Win XP SP2
Turbo Delphi
BeitragVerfasst: Sa 27.12.08 13:27 
ahh danke messages war es...