LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Winamp mit Labview steuern

Winamp kann von VB, Delphi und C++ gesteuert werden. (s. Bsp. unten)
Alle weiteren Codes stehen auf WWW.Winamp.com

[b]Weiss jemand, wie das mit Labview geht. Ich habe Vers. 6.1[/b]

Winamp is a 32-bit Windows application. Winamp can be controlled using
the Windows Message system. Before you can send Winamp messages, you
have to determine its Window Handle. There are two primary ways of
doing that, one for external applications, and another for plug-ins.

External applications can find the Winamp window using the following
pieces of code:
C/C++:
HWND hwndWinamp = FindWindow("Winamp v1.x",NULL);

VBasic:
Public Declare Function FindWindow Lib "user32" Alias "FindWindowA"
(ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Dim
hwndWinamp as long
hwndWinamp = FindWindow("Winamp v1.x",vbNullString)

Delphi Pascal:
var hwndWinamp : THandle;
hwndWinamp := FindWindow('Winamp v1.x', nil);
0 Kudos
Message 1 of 2
(2,765 Views)
Hallo,

leider weiss ich nicht wie Winamp gesteuert wird. Für die Methode dies über Windows Nachrichten zu tun benötigt man die LV util LLB. Diese enthält eine Reihe von Windows API Funktionen, unter anderem auch FindWindow. Leider gibt es keine Entsprechung für SendMessage/PostMessage. Diese Aufrufe muß man selber mit Call Library function programmieren.

Eine weitere Toolbox gibt es bei George Zou.

Waldemar
Waldemar

Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
Don't forget to give Kudos to good answers and/or questions
0 Kudos
Message 2 of 2
(2,765 Views)