MW3 Media Player [Simple]
Well, I just made a media player for you guys.
If any wonder why I did this, it's because I feel it would be nice to have a media player that register my Keys Pressed.
So I don't have to go out of the game to change song, or start a new song.
This Idea is from the Advanced Modern Warfare 3 Editor V4.1
Credits go therefore to - @Anonymouss
I have also included the Source Code in the Spoiler Under. (Language = C#)
Note: the DLLs that are included are needed. Those DLLs are the Windows Media Player DLLs. (Required to run the Program)
And yes... The Stop is bugged :S
Our lovely image

And the beloved Virus scans that most don't bother to look on
Our First Scan 0/43
Our Second Scan 0/20
If any wonder why I did this, it's because I feel it would be nice to have a media player that register my Keys Pressed.
So I don't have to go out of the game to change song, or start a new song.
This Idea is from the Advanced Modern Warfare 3 Editor V4.1
Credits go therefore to - @Anonymouss
I have also included the Source Code in the Spoiler Under. (Language = C#)
Click here to view Source Code
Code:
private void button1_Click(object sender, EventArgs e)
{
try
{
listBox1.Items.Clear();
OpenFileDialog a = new OpenFileDialog();
a.Multiselect = true;
a.ShowDialog(this);
foreach (string b in a.FileNames)
{
listBox1.Items.Add(b);
}
listBox1.SelectedIndex = 0;
Play();
}
catch { }
}
void Play()
{
axWindowsMediaPlayer1.URL = listBox1.SelectedItem.ToString();
axWindowsMediaPlayer1.Ctlcontrols.play();
}
private void listBox1_SelectedIndexChanged(object sender, EventArgs e)
{
Play();
}
bool visu = true;
[DllImport("user32.dll")]
public static extern Int16 GetAsyncKeyState(Keys vKey);
private void timer1_Tick(object sender, EventArgs e)
{
try
{
if (Convert.ToBoolean(GetAsyncKeyState(Keys.F1))) { Play(); }
if (Convert.ToBoolean(GetAsyncKeyState(Keys.F2))) { axWindowsMediaPlayer1.Ctlcontrols.stop(); }
if (Convert.ToBoolean(GetAsyncKeyState(Keys.F3))) { listBox1.SelectedIndex++; Play(); }
if (Convert.ToBoolean(GetAsyncKeyState(Keys.F4))) { listBox1.SelectedIndex--; Play(); }
if (Convert.ToBoolean(GetAsyncKeyState(Keys.Insert))){if (visu) { visu = false; this.Hide(); } else { visu = true; this.Show(); }}
if (Convert.ToBoolean(GetAsyncKeyState(Keys.End))) { Application.Exit(); }
}
catch { }
}
private void timer2_Tick(object sender, EventArgs e)
{
if (axWindowsMediaPlayer1.playState == WMPPlayState.wmppsStopped) { listBox1.SelectedIndex++; Play(); }
}
Note: the DLLs that are included are needed. Those DLLs are the Windows Media Player DLLs. (Required to run the Program)
And yes... The Stop is bugged :S
Our lovely image


And the beloved Virus scans that most don't bother to look on

Our First Scan 0/43
Our Second Scan 0/20





