Como realmente iniciar o programa minimizado no Windows 10?

Como realmente iniciar o programa minimizado no Windows 10?

Etapas que tentei fazer com que o programa (por exemplo: Thunderbird) carregasse na inicialização, mas minimizei:

  1. Atalho colocado em: C:\Users\Username\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
  2. Nas propriedades de um atalho, marquei "minimizado"

Windows reiniciado, ele inicia, mas MAXIMIZADO! Não é possível minimizá-lo, assim como no MacOS, eu poderia ocultá-lo.

Responder1

Seu método não parece funcionar corretamente para mim. Você pode criar uma tarefa agendada que seja executada no logon do usuário com o seguinte arquivo em lote (.bat) anexado.

start /min "" "C:\Program Files\Mozilla\Thunderbird.exe"

Em seguida, você desativaria a execução do programa Thunderbird na inicialização por meio do caminho appdata.

Outras opções de código:

Salve isto como um .ps1

@echo off
start thunderbird
$wshell = New-Object -ComObject wscript.shell;
$wshell.AppActivate('*Mozilla Thunderbird')
Sleep 2
$wshell.SendKeys('(%(" "(n)))')

**Certifique-se de que quando o Thunderbird abrir, a caixa de e-mail de configuração não esteja lá (o cliente foi configurado) e você não será solicitado a fornecer o aplicativo de e-mail padrão.

Responder2

Funcionou para mim depois que alterei a ordem da sintaxe: Start-Process -WindowStyle Minimized thunderbird. Isto parece ser um bug: a ordem de sintaxe prescrita (veja Get-Help Start-Process) difere daquela que realmente funciona.

Responder3

Aqui está o script que adicionei à minha configuração de inicialização no Windows 8.1.

'
' A VBS script to start Thunderbird minimized to the tray at boot time.
'
' Thunderbird is unusual in that the GUI minimize hyphen (-) button already takes it
' to the tray rather than the task bar like most other programs. All this script has
' to do is open Thunderbird normally and immediately minimize it using the hotkey
' sequence ALT+SPACE+N.
'
' Create the WSH hosting environment
Set objShell = WScript.CreateObject("WScript.Shell")
'
' Open Thunderbird
Set objShellApp = CreateObject("Shell.Application")
objShellApp.ShellExecute "C:\Program Files\Mozilla Thunderbird\thunderbird.exe", "", "", "", 1
'
' Force Thunderbird to become the active window.
Do Until Activated
    Activated = objShell.AppActivate("Mozilla Thunderbird")
Loop
'
' Send the hotkey sequence to minimize the active window.
objShell.SendKeys "% N"
'
' All done. Thunderbird collapses to an icon in the system tray.

' To do this at system boot time, a shortcut to "Start_TBird_Minimized.vbs" is placed
' in the Windows startup folder, typically located here:
'       %USERPROFILE%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
'
WScript.Quit 0

informação relacionada