powershell – windows 7 cmd hide fullscreen window

powershell – windows 7 cmd hide fullscreen window

You could change that last phrase, since this should be the equivalent of minimise all windows. However, in comments you say it is not enough to deactivate VLC in full screen, so I have added that step before your minimizeall.

@echo off
set /p countdownminutes=Minutes: 
set /a countdownseconds = countdownminutes * 60
echo COUNTDOWN
echo %countdownminutes% Minutes
timeout /T %countdownseconds% /nobreak

mshta.exe vbscript:Execute(CreateObject(SAPI.SpVoice).Speak(Minimising)(window.close))
mshta.exe vbScript:Execute(CreateObject(WScript.Shell).AppActivate(VLC media player, 0)(window.close))
mshta.exe vbScript:Execute(CreateObject(WScript.Shell).SendKeys({F11})(window.close))

powershell -command (new-object -com shell.application).minimizeall()
rem powershell -command (New-Object -ComObject shell.application).toggleDesktop()

powershell – windows 7 cmd hide fullscreen window

Leave a Reply

Your email address will not be published. Required fields are marked *