From cb01a4b8151bc6d9175f25a06215393a26c837ae Mon Sep 17 00:00:00 2001 From: dreamforceinc Date: Fri, 25 Feb 2022 17:21:28 +0300 Subject: [PATCH] Update README.md. --- README.md | 6 ++++++ wCenterWindow/wCenterWindow.vcxproj | 3 +++ wCenterWindow/wCenterWindow.vcxproj.filters | 3 +++ 3 files changed, 12 insertions(+) diff --git a/README.md b/README.md index 11db64c..59c8d18 100644 --- a/README.md +++ b/README.md @@ -10,3 +10,9 @@ You can also use commandline option ```/hide``` for hide trayicon at startup. ```Use workarea``` option means that the window is centered without a taskbar, otherwise, the full resolution of the monitor will be used. If some windows does not centers you should run wCenterWindow with administrative rights. + +# Automatic startup +Usually, to start the application when Windows starts, it is enough to put the application's shortcut in the "shell:startup" folder. However, in this case wCenterWindow will not be able to work with windows that are open with elevated privileges. +And if you enable the "Run as administrator" option in the shortcut, then wCenterWindow will not start. This is related to the security of Windows (maybe only in 10/11, I did not check). +This behavior can be bypassed by creating a task in the Task Scheduler with the "Run with highest privileges" option. +Note If you run wCenterWindow via the Task Scheduler, I highly recommend enabling the "Delay task for" option for 15-30 seconds, otherwise you may get an error message "Can't create tray icon". diff --git a/wCenterWindow/wCenterWindow.vcxproj b/wCenterWindow/wCenterWindow.vcxproj index 2a6a996..119272c 100644 --- a/wCenterWindow/wCenterWindow.vcxproj +++ b/wCenterWindow/wCenterWindow.vcxproj @@ -177,6 +177,9 @@ + + + diff --git a/wCenterWindow/wCenterWindow.vcxproj.filters b/wCenterWindow/wCenterWindow.vcxproj.filters index fae9a27..1a75c91 100644 --- a/wCenterWindow/wCenterWindow.vcxproj.filters +++ b/wCenterWindow/wCenterWindow.vcxproj.filters @@ -57,4 +57,7 @@ Resource Files + + + \ No newline at end of file