Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

VLC .net

 1public void ShortcutEvent(object sender, KeyEventArgs e)
 2{
 3    if (e.KeyCode == Keys.Escape && isFullscreen) // from fullscreen to window
 4    {
 5        this.FormBorderStyle = FormBorderStyle.Sizable; // change form style
 6        this.WindowState = FormWindowState.Normal; // back to normal size
 7        this.Size = oldFormSize;
 8        menuStrip1.Visible = true; // the return of the menu strip 
 9        videoView1.Size = oldVideoSize; // make video the same size as the form
10        videoView1.Location = oldVideoLocation; // remove the offset
11        isFullscreen = false;
12    }
13
14    if (isPlaying) // while the video is playing
15    {
16        if (e.KeyCode == Keys.Space) // Pause and Play
17        {
18            if (_mp.State == VLCState.Playing) // if is playing
19            {
20                _mp.Pause(); // pause
21            }
22            else // it's not playing?
23            {
24                _mp.Play(); // play
25            }
26        }
27
28        if (e.KeyCode == Keys.J) // skip 1% backwards
29        {
30            _mp.Position -= 0.01f;
31        }
32        if (e.KeyCode == Keys.L) // skip 1% forwards
33        {
34            _mp.Position += 0.01f;
35        }
36    }
37}
Comment

PREVIOUS NEXT
Code Example
Shell :: change macos hostname 
Shell :: use to remove snap packages 
Shell :: how to enable the Visual Studio Code GitHub Support and set a Personal Access Token 
Shell :: doom emacs 
Shell :: rhythmbox 
Shell :: where is wsl folder in windows 
Shell :: check docker swarm status 
Shell :: install all dependencies npm 
Shell :: ffmpeg gif images 
Shell :: filter npm audit only high 
Shell :: how to install wsl 2 in windows 10 
Shell :: git get project name 
Shell :: port kill masocs 
Shell :: install packages from jupyter notebook 
Shell :: bash split string into variables 
Shell :: linux count files in subdirectories 
Shell :: ubuntu 21.04 issues with ubuntu software installer 
Shell :: free todo linux 
Shell :: could not find driver postgres laravel 
Shell :: how to undo a commit sent that was pushed 
Shell :: React Hooks Form Installation 
Shell :: ubuntu packages 
Shell :: how to push a project to github 
Shell :: How To Print The Username Of PC User On Batch Script 
Shell :: bash check length of variable 
Shell :: git log filter merge commits 
Shell :: pulseaudio check if runnings 
Shell :: git push with gpg key 
Shell :: how to install postgresql 
Shell :: prettier code formatter is removing ; 
ADD CONTENT
Topic
Content
Source link
Name
9+4 =