How to hide a window to system tray? - batch-file

I'm developing a Windows app and within there is a django server running continously. Is there any possibility to hide the window to system tray from cmd? I don't want to use any external programms. I have a .bat script that starts the server and minimalizes the window to taskbar with this command :
START "runserver" /min python manage.py runserver
But I want to hide it to system tray, not taskbar. Is that possible?

You can't hide a console application because it does not actually have a window to hide, seeing as how it is running in the console (the console itself is just a window of the console, not the app running in it)

Related

How do I launch a react js. app in full screen on windows?

I am building a react app for a kiosk with a windows operating system.
The app is supposed to appear as full screen (F11 look) right when it launches (without clicking any buttons).
I saw that as of a few years ago chrome does not support full screen launch. Has there been any changes with that?
unfortunately not directly. However, you can alter the shortcut to the web app by adding these two properties: --fullscreen --kiosk

Open explorer.exe (desktop) when I click button (Visual Studio)

Normally explorer.exe starts with Windows.
I want when Windows starts to run My Form Application (myform.exe) instead.
And when I click a button on myform.exe then I can run explorer.exe (desktop).
How can I do it?
Regedit: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\Shell
Here I wrote myform.exe instead of explorer.exe. My program runs but when I click the button it launches My Computer folder, not desktop.
Are you using System.Diagnostics.Process.Start() on your button click event? If so, then add your desktop as an argument, like this:
System.Diagnostics.Process.Start("explorer.exe", #"%USERPROFILE%\desktop");

Don't show gui after installation of Edge extension

After the installation of my uwp app through a package (i created a package but haven't published it to store yet) the installation window have a 'Launch' button, which launches GUI. But my app is an edge extension which uses background task and desktop bridge. I want the installation program to launch Edge instead.
I heard that the GUI window is a requirement to publish app to store.
You need to leave entry point in the manifest empty, and then after hitting the launch button after installation from windows store edge will be opened. That's information from the guy from microsoft.

How to run an internet browser in the background without window?

How can I run an internet browser with an url, any url I want, and it opens but it opens in background without showing a window?
It should be like a background media player. And if you know how to do that please tell me and tell me how I can mute the browser once starting. I am trying to do this with a batch file.
You can open a hidden window with powershell. You can use powershell commands within cmd or in a .bat file as well. Here's an example:
powershell saps 'https://stackoverflow.com/questions/44642194' -wi hidden
That opens a hidden window of your default browser with the specified link.

How to get out of browser to work on a silverlight application?

I have a silverlight application and i have already checked the box that enables OOB. When i run the program from the IDE and i right click on the browser, i do not get an option to install the application. Instead i have an option to remove the application.
I would like to get an icon that other users can just click on in order to run the application. Is there a reason why i do not have the option to install the application when i run my program?
If it matters i am using silverlight 5.
thanks!
You have the option to remove the application means you have installed out of browser in the past, after clicking "remove the application" you will have the option to install the application locally.

Resources