kpang5812
kpang5812
CC#
Created by nullptr on 2/21/2024 in #help
get current windows media player info (playing or paused, current song url, etc) from a .NET app?
For other media players like VLC or iTunes, you'll need to explore their respective APIs and libraries to control playback programmatically. These media players often provide APIs for remote control or integration with other applications.
6 replies
CC#
Created by nullptr on 2/21/2024 in #help
get current windows media player info (playing or paused, current song url, etc) from a .NET app?
ManagementObjectSearcher searcher = new ManagementObjectSearcher("SELECT * FROM Win32_Process WHERE Name='wmplayer.exe'");

// Iterate through the collection of running processes
foreach (ManagementObject process in searcher.Get())
{
// Get process ID and other properties
string processId = process["ProcessId"].ToString();
string processName = process["Name"].ToString();
}
ManagementObjectSearcher searcher = new ManagementObjectSearcher("SELECT * FROM Win32_Process WHERE Name='wmplayer.exe'");

// Iterate through the collection of running processes
foreach (ManagementObject process in searcher.Get())
{
// Get process ID and other properties
string processId = process["ProcessId"].ToString();
string processName = process["Name"].ToString();
}
You can get info of current running media player like above
6 replies
CC#
Created by 𓀠𓀒𓀡𓀬 on 2/21/2024 in #help
does anyone know how to resolve this?
Bird parrots[i] new Bird(colors[start], num);
Bird parrots[i] new Bird(colors[start], num);
logical error with this code.
16 replies