Reputation: 21
I need to close vlc fullscreen mode. To open it i did:
vlc.fullscreen();
I have tried to use the method sendkeys with:
sendkeys.sendwait("{ESC}");
because with the click of the escape button it,vlc fullscreen mode will close.but it doesn't work. I have tried with vlc.visibility
but nothing happens.
Upvotes: 0
Views: 2649
Reputation: 2614
EDIT:
Try not sendkeys.sendwait("{ESC}");
but sendkeys.sendwait("{F}");
F is shortkey for enter or exit full-screen view.
Maybe you use process. You need vlcProcess.Exit();
string vlc = @"C:\Program Files\VideoLAN\VLC\vlc.exe";
Process vlcProcess = new Process();
vlcProcess.StartInfo.FileName = vlc;
vlcProcess.StartInfo.Arguments = "\"" + videoFile + "\"";
vlcProcess.StartInfo.Arguments += " --play-and-exit";
vlcProcess.Start();
vlcProcess.Exit();
Upvotes: 2