I'd like to run opera at Windows startup.

I have enabled the option to show the icon in the notification area.

Now I'm looking for a way to avoid windows at startup, so that I can receive emails, and open the main window by clicking it. Maybe some command line option...

Any help would be appreciated!

  • Why not just NOT start it with Windows and instead pin an icon to your taskbar instead of depending on the system tray icon? Jan 7, 2015 at 18:01

1 Answer 1


You can press Alt+CTRL+SHIFT+H to close Opera 12 to tray.

We utilize this command and let a VB script open Opera and as soon Opera is open, press this key combination to close it to tray.


set objShell = CreateObject("WScript.Shell")   'Create object
strCommand = chr(34) & "D:\Opera Mail\operamail.exe" &chr(34)  'Set app path
objShell.Run strCommand, 1, false              'open application

Do                                             'start infinite loop
If objShell.AppActivate("Opera Mail") Then     'check if window is active
    objShell.SendKeys "^+%h"                   'Send Alt + CTRL + SHIFT + H
    Exit Do                                    'and exit loop/script
End If                                         
WScript.Sleep 100                              'wait 100ms (to try again)
Loop                                           'loop if no match was found


  1. The AppActivate method tries to activate an application whose Windows title is the nearest match to strApplicationTitle so it might not be 100% accurate if there are multiple Opera Windows

  2. If you plan to switch from Opera to Opera Mail (Standlone client M2), you can use this method too.
    If you add Show Exit Dialog=2 to ..\OperaMail\profile\operaprefs.ini the Mail client will always minimize to tray if you click the X (close)

  3. You can generalize this VB script to close every application by using
    objShell.SendKeys "%{F4}" instead which presses Alt+F4

Thank you very much for the question.. From now on, I'll use this for my Opera Mail client too.

Used resources

  • For Note 2, the Show Exit Dialog setting goes in the [User Prefs] section of the INI file.
    – Aldaviva
    May 5, 2020 at 12:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.