Menu

[r2]: / MPCHCTest / Form1.cs  Maximize  Restore  History

Download this file

46 lines (38 with data), 1.1 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using LateNightStupidities.MpcHcRemoteControl;
namespace MPCHCTest
{
public partial class Form1 : Form
{
MpcHcRemote r;
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
r = new MpcHcRemote(@"C:\Program Files (x86)\Combined Community Codec Pack\MPC\mpc-hc.exe");
r.StartApplication();
}
private void button2_Click(object sender, EventArgs e)
{
r.OpenFile(@"E:\Videos\Kurzfilme\Elektriker-Horst.AVI");
}
private void button3_Click(object sender, EventArgs e)
{
r.GetAudioTracks();
r.GetNowPlaying();
r.GetPlaylist();
r.GetSubtitleTracks();
r.CloseApplication();
return;
}
}
}