private void tmr1_Tick(object sender, EventArgs e) { count += 1; if (count <= 10) { lblSubtitles.Text = "A.C.M.E is an international organization that is dedicated to fighting crime. We train the recruits in a vigourous 4-year program to become spies. "; } else if (count > 10 & count <= 19) { lblSubtitles.Text = " Carmen Sandiego was one of the brightest students ever to pass through the academy. She was the youngest in the cohort yet the most brilliant. "; } else if (count > 20 & count <= 30) { lblSubtitles.Text = "We trained the agents in all areas. From combat, agility, arts, cloaking, hacking and more."; } else if (count > 30 & count <= 34) { lblSubtitles.Text = "Finally it was graduation day. Everyone was eager to see if they passed and could start fighting and solving real crimes."; } else if (count > 35 & count <= 42) { lblSubtitles.Text = "However we couldn't let Carmen graduate due to her age. She was rejected and it absolutely devastated her."; } else if (count > 42 & count <= 47) { lblSubtitles.Text = "She was so angry and hated A.C.M.E for not treating her as a rightful agent."; } else if (count > 47 & count <= 54) { lblSubtitles.Text = "Then she saw the infamous red cloak and fedora. An evil lightbulb went off in her head."; } else if (count > 55 & count <= 63) { lblSubtitles.Text = "She snuck past the guards carefully."; } else if (count > 63 & count <= 70) { lblSubtitles.Text = "She hijacked a boat and escaped the academy with all our secrets."; } else if (count > 71 & count <= 76) { lblSubtitles.Text = "She began her life as Carmen Sandiego - a robber, a thief, and A.C.M.E's most wanted villain!"; } else if (count > 76 & count <= 80) { WMPLib.IWMPControls3 pause = (WMPLib.IWMPControls3)wmpCarmenHistory.Ctlcontrols; if (pause.get_isAvailable("pause")) { pause.pause(); } } else if (count > 80) { this.Close(); frmCaseHome frmCaseHome = new frmCaseHome(); frmCaseHome.Show(); } }
private void PlayerSerie_MouseMoveEvent(object sender, AxWMPLib._WMPOCXEvents_MouseMoveEvent e) { //cuando el raton esta en el video el video se para y saldra un label para seleccionar WMPLib.IWMPControls3 controls = (WMPLib.IWMPControls3)PlayerSerie.Ctlcontrols; controls.pause(); lblVideoSerie.Visible = true; }
private void play() { WMPLib.IWMPControls3 controls = (WMPLib.IWMPControls3)axWindowsMediaPlayer1.Ctlcontrols; if (axWindowsMediaPlayer1.playState == WMPLib.WMPPlayState.wmppsPaused) // Paused { controls.play(); } }
public Form1() { InitializeComponent(); Utilities.CreateMainBin(Utilities.mainFilePath); treeView1 = Utilities.UpdateTreeview(treeView1, Utilities.GetAllPlaylistbins(Utilities.mainFilePath)); myTabControl1.TabPages.RemoveAt(0); axWindowsMediaPlayer2.Ctlenabled = true; WMPLib.IWMPControls3 controls = (WMPLib.IWMPControls3)axWindowsMediaPlayer2.Ctlcontrols; }
public void playMedia() { WMPLib.IWMPControls3 controls = (WMPLib.IWMPControls3)mediaPlayer.Ctlcontrols; // Check first to be sure the operation is valid. if (controls.get_isAvailable("play")) { controls.play(); } }
public MusicForm() { InitializeComponent(); WMPLib.IWMPPlaylist playlist = axWindowsMediaPlayer1.playlistCollection.newPlaylist("myplaylist"); WMPLib.IWMPMedia media; media = axWindowsMediaPlayer1.newMedia(@"https://vpprojectcasino.000webhostapp.com/music/pokerMusic.mp3"); playlist.appendItem(media); axWindowsMediaPlayer1.currentPlaylist = playlist; controls = (WMPLib.IWMPControls3)axWindowsMediaPlayer1.Ctlcontrols; }
public void playMedia(double tick) { WMPLib.IWMPControls3 controls = (WMPLib.IWMPControls3)mediaPlayer.Ctlcontrols; // Check first to be sure the operation is valid. controls.currentPosition = tick; if (controls.get_isAvailable("play")) { controls.play(); } }
private void button10_Click_1(object sender, EventArgs e) { if (axWindowsMediaPlayer2.playState == WMPLib.WMPPlayState.wmppsPlaying) { WMPLib.IWMPControls3 controls = (WMPLib.IWMPControls3)axWindowsMediaPlayer2.Ctlcontrols; if (controls.get_isAvailable("fastForward")) { controls.fastForward(); } } }
private void FastNextBtn_Click(object sender, EventArgs e) { if (axWindowsMediaPlayer2.playState == WMPLib.WMPPlayState.wmppsPlaying) { WMPLib.IWMPControls3 controls = (WMPLib.IWMPControls3)axWindowsMediaPlayer2.Ctlcontrols; if (controls.get_isAvailable("fastReverse")) { controls.fastReverse(); } } }
private void Principal_MouseEnter(object sender, EventArgs e) { //cuando se abre el form los dos videos se ponen en marcha try { WMPLib.IWMPControls3 controls = (WMPLib.IWMPControls3)PlayerPeli.Ctlcontrols; WMPLib.IWMPControls3 controls2 = (WMPLib.IWMPControls3)PlayerSerie.Ctlcontrols; controls.play(); controls2.play(); lblVideoPeli.Visible = false; lblVideoSerie.Visible = false; } catch (Exception) { } }
public void film() { int p = status.poziom; startButton.Enabled = false; vCale.settings.setMode("loop", false); vCale.URL = status.zFilmu1[p]; //vNogi.URL = status.zFilmuStopy; //vNogi.Ctlcontrols.stop(); vNogi.settings.volume = 0; kontrCale = (WMPLib.IWMPControls3)vCale.Ctlcontrols; kontrNogi = (WMPLib.IWMPControls3)vNogi.Ctlcontrols; licznik = 0; czas = 0; iKroki = 0; licznikZP = 0; czytaniec = false; koniec = false; if (status.poziom % 4 == 0) { // muzyka progl = 200; } lpoprawne = 0; // liczba poprawnych odpowiedzi lniepoprawne = 0; // liczba niepoprawnych odpowiedzi sCzasReakcji = 0; // suma czasów reakcji w decysekundach this.pbG.Image = global::WindowsFormsApplication1.Properties.Resources.gora; this.pbD.Image = global::WindowsFormsApplication1.Properties.Resources.dol; this.pbP.Image = global::WindowsFormsApplication1.Properties.Resources.prawo_z; this.pbL.Image = global::WindowsFormsApplication1.Properties.Resources.lewo; this.pbGL.Image = global::WindowsFormsApplication1.Properties.Resources.x; this.pbDL.Image = global::WindowsFormsApplication1.Properties.Resources.t; this.pbDP.Image = global::WindowsFormsApplication1.Properties.Resources.k; this.pbGP.Image = global::WindowsFormsApplication1.Properties.Resources.o; kontrCale.play(); //vCale.PlayStateChange += new WMPLib._WMPOCXEvents_PlayStateChangeEventHandler(vCale_PlayStateChange); }
public void Pause(double _opacity) { WMPLib.IWMPControls3 controls = (WMPLib.IWMPControls3)MediaPlayer1.Ctlcontrols; if (controls.get_isAvailable("pause")) { controls.pause(); isPause = true; } else { if (isPause) { isPause = false; this.Opacity = _opacity; controls.play(); } } controls = null; }
string d; //we will save the path that is to be deleted private void button1_Click(object sender, EventArgs e) //delete { if (listView1.FocusedItem != null) //if there is a chosen item { try //there may be an error if we delete a song taht it is also played by the windows media player { d = listView1.FocusedItem.SubItems[1].Text; WMPLib.IWMPControls3 controls = (WMPLib.IWMPControls3)axWindowsMediaPlayer1.Ctlcontrols; controls.stop(); //we stop the music listView1.Items.Remove(listView1.FocusedItem); //we remove the item from the listview //and we delete the item from the database string connectionstring = "Provider=Microsoft.Jet.OleDb.4.0; Data Source=Music.mdb"; OleDbConnection conn = new OleDbConnection(connectionstring); conn.Open(); string query = "Delete from Table1 where Path='" + d + "'"; OleDbCommand cmd = new OleDbCommand(query, conn); int i = cmd.ExecuteNonQuery(); conn.Close(); axWindowsMediaPlayer1.Ctlenabled = true; }catch {} } }
private void pauseToolStripMenuItem_Click(object sender, EventArgs e) { WMPLib.IWMPControls3 controls = (WMPLib.IWMPControls3)axWindowsMediaPlayer1.Ctlcontrols; controls.pause(); }