Skip to content

Instantly share code, notes, and snippets.

@TechnoSparks
Last active November 15, 2021 07:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TechnoSparks/2d7530ef304c3a74b5ed9997b1a0f3c2 to your computer and use it in GitHub Desktop.
Save TechnoSparks/2d7530ef304c3a74b5ed9997b1a0f3c2 to your computer and use it in GitHub Desktop.
Guide on how to achieve "launch minimised" for apps on WebCatalog

Launch Minimised on Windows for WebCatalog

Guide on how to achieve "launch minimised" for apps on WebCatalog

Requirements

  • Acknowledge that this is a hacky workaround. Your mileage will vary.
  • Make sure "run in background" is enabled: 🔧 App Settings → General → [Under System section] Run in background
  • Make sure "Open at login" set as No: 🔧 App Settings → General → [Under System section] Open at login
  • Make sure tray is enabled: 🔧 App Settings → Window & Tray → [Under Tray section] Show tray (notification area) icon
  • Identify the absolute path to an app's exe. With default installation settings, they are %userprofile%\WebCatalog Apps. For the sake of this guide, I will be using WhatsApp app as an example. Therefore the absolute path to the exe would be %userprofile%\WebCatalog Apps\WhatsApp\WhatsApp.exe (can be seen in the batch file below)

Steps

  1. Download raw file launch_whatsapp_in_bg.vbs below
  2. Put the file in your startup folder. shell:startup in explorer will get you there

Modifying the script for other apps

  • Change the executable path to the absolute path of the app's you wish to launch
  • Maybe rename the filename to the app's name

Caveats

  • WhatsApp will still appear for a split second
  • May not work if WebCatalog's logic handling window event ever change in the future. Thus consider this method as a temporary workaround at the moment
Set objShell = WScript.CreateObject("WScript.Shell")
objShell.Run("""%userprofile%\WebCatalog Apps\WhatsApp\WhatsApp.exe"""), 0, false
WScript.Sleep 1000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment