From 29ac0eff94a053e7a29ee95e677ba1be51e40fe0 Mon Sep 17 00:00:00 2001 From: dreamforceinc Date: Thu, 29 Feb 2024 18:02:06 +0300 Subject: [PATCH] Removed license info from source and header files. Also edited LICENSE and README.md files. --- LICENSE | 2 +- README.md | 50 ++++++++++++-------------------- Version.ini | Bin 3388 -> 1070 bytes wCenterWindow/CLogger.cpp | 22 -------------- wCenterWindow/CLogger.h | 22 -------------- wCenterWindow/framework.h | 22 -------------- wCenterWindow/targetver.h | 24 ++------------- wCenterWindow/updater.cpp | 22 -------------- wCenterWindow/updater.h | 22 -------------- wCenterWindow/wCenterWindow.cpp | 22 -------------- wCenterWindow/wCenterWindow.h | 22 -------------- 11 files changed, 21 insertions(+), 209 deletions(-) diff --git a/LICENSE b/LICENSE index 8e4c8b7..bc77912 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2023 W0LF aka 'dreamforce' +Copyright (c) 2020 - 2024 Vladislav Salikov aka W0LF Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index 601b586..c4cd07e 100644 --- a/README.md +++ b/README.md @@ -1,48 +1,34 @@ ## wCenterWindow -This program centers the current active window by a `LCTRL + LWIN + C` hotkey, -or pressing `LCTRL + LWIN + MMB` (Middle Mouse Button). +Copyright (c) 2020 - 2024 Vladislav Salikov aka W0LF +Program's icon made by Kirill Topov + +--- + +This program centers the current active window by a `LCTRL + LWIN + C` hotkey, or pressing `LCTRL + LWIN + MMB` (Middle Mouse Button). `LCTRL + LWIN + V` - manual editing of size and position of the window. -You can use `LCTRL + LWIN + I` hotkey for hide/show trayicon. -You can also use commandline option `/hide` for hide trayicon at startup. +`LCTRL + LWIN + I` hotkey is used to hide/show trayicon. +You can also use commandline option `/hide` to hide trayicon at startup. -The `/noupdate` option is used to disable check for updates. By default, the program checks for updates upon startup and once a day. +The `/noupdate` commandline option is used to disable check for updates. By default, the program checks for updates upon startup and once a day. -The `Use workarea` option means that the window is centered without a taskbar, otherwise, the full resolution of the monitor will be used. +The `Use workarea` option (at popup menu) 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. +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 "Startup" folder -\ -"C:\Users\\<*Your user name*>\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup". (The easiest way to get there - press 'WIN + R' and type 'shell:startup').\ +Usually, to start the application when Windows starts, it is enough to put the application's shortcut in the "Startup" folder - +"C:\Users\\<*Your user name*>\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup". +(The easiest way to get there - press 'WIN + R' and type `shell:startup`).
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.\ +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". ## License -MIT License - -Copyright (c) 2023 W0LF aka 'dreamforce' - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +This software is licensed under a [MIT License](https://mit-license.org). +This software uses the [PicoJSON](https://github.com/kazuho/picojson) - a C++ JSON parser / serializer. diff --git a/Version.ini b/Version.ini index 784e347a128f099767a6653af5636b7cf357faec..d4be3ef28e1398c48c47bb4e2dced333a69ead12 100644 GIT binary patch delta 68 zcmdlZwT^@7|G&*roJq{aVGKD8i3}+WnGD5XRvCi=LoiSz2Pl%wkk0_(CjwcCKsubk NfWe2sZSqo{=>T9y5BdNA literal 3388 zcmb7{NpBlR5QY03ApfBwK(GTiieq1l7&%bXMwlBY%8n7_K#8PCo7509WCZ>B#P6$` z*32-9jewxoT~+<+)zXXp`TK2n8)E2%P8jRA8 zEDHV2#3$M;$|Jg2xE6;f2DuRL#9}7=7n00PJJTrBILgaH7P%~Err$~qt2}xn?j}HL~YimX?#$ODUTDTvm9g8s1l)kEs0uce;Rm zm2B?CJX4%ss}V6(6`d=VTo@iT9iOo1C+|YIc+8*Vl{zMy#Gc(pteJIycRA70uhh@$ zUW8w3o+}RHvY#f(e-{3dk7|EZRgOZ-42!I%YJDV5jhf?5^xIc8rni`kH@~E!ffK%-+eqFDz<)8h$q)r$PgD zAb(XpIy&KpI*~i(8+%r^CArdi#^;h9mwx+N?Y9BzxEY-BSn{ZuN7`fuvipT$PqUHm zFG}t$VRy_walEK8J2U*gt!Dk1F(*cHMh?faXp33bW=O9j9m?)ft2`Uz6V`p%_JuLB z-*f3!vHWcM@k z$Sjto1>+B`=UnARzYTvrt~#{0$4_F#8z9%my+p~m#q*ja_rp_`+>bC@)NHvAp0b?^ z^Py(Po$!<$XFo3zzwznl3)QrzER#WhwXJJ7>^g7?ouQnmyle1Om~}3OYmHupU$p!D zFE2zsDZ__`+{EB6PWMq0iQ8f-Kk4OJp|s@(6kZgZ?<$_mp14o&JCTpXr>EH`dFR&QhUD%~ue%%R?(~6Yy47Z4w9)(_{9qXM z^}osLRVk(a92MznlO8KZ-iy>8=^K*{L8zK1r8obuFlFrJ#^abR@4f+58 diff --git a/wCenterWindow/CLogger.cpp b/wCenterWindow/CLogger.cpp index 9545f66..deac95d 100644 --- a/wCenterWindow/CLogger.cpp +++ b/wCenterWindow/CLogger.cpp @@ -1,25 +1,3 @@ -// MIT License -// -// Copyright (c) 2023 W0LF aka 'dreamforce' -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. - // wCenterWindow // CLogger.cpp diff --git a/wCenterWindow/CLogger.h b/wCenterWindow/CLogger.h index cf953e3..ade8a24 100644 --- a/wCenterWindow/CLogger.h +++ b/wCenterWindow/CLogger.h @@ -1,25 +1,3 @@ -// MIT License -// -// Copyright (c) 2023 W0LF aka 'dreamforce' -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. - // wCenterWindow // CLogger.h diff --git a/wCenterWindow/framework.h b/wCenterWindow/framework.h index ae5d20b..77d8f00 100644 --- a/wCenterWindow/framework.h +++ b/wCenterWindow/framework.h @@ -1,25 +1,3 @@ -// MIT License -// -// Copyright (c) 2023 W0LF aka 'dreamforce' -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. - // wCenterWindow // framework.h diff --git a/wCenterWindow/targetver.h b/wCenterWindow/targetver.h index 8197b68..3f527ae 100644 --- a/wCenterWindow/targetver.h +++ b/wCenterWindow/targetver.h @@ -1,25 +1,5 @@ -// MIT License -// -// Copyright (c) 2023 W0LF aka 'dreamforce' -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. - +// wCenterWindow +// targetver.h #pragma once // // Including SDKDDKVer.h defines the highest available Windows platform. diff --git a/wCenterWindow/updater.cpp b/wCenterWindow/updater.cpp index 4734a36..92c9962 100644 --- a/wCenterWindow/updater.cpp +++ b/wCenterWindow/updater.cpp @@ -1,25 +1,3 @@ -// MIT License -// -// Copyright (c) 2023 W0LF aka 'dreamforce' -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. - // wCenterWindow // updater.h diff --git a/wCenterWindow/updater.h b/wCenterWindow/updater.h index f8028d3..4a6a8ac 100644 --- a/wCenterWindow/updater.h +++ b/wCenterWindow/updater.h @@ -1,25 +1,3 @@ -// MIT License -// -// Copyright (c) 2023 W0LF aka 'dreamforce' -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. - // wCenterWindow // updater.h diff --git a/wCenterWindow/wCenterWindow.cpp b/wCenterWindow/wCenterWindow.cpp index 2434721..b65ec06 100644 --- a/wCenterWindow/wCenterWindow.cpp +++ b/wCenterWindow/wCenterWindow.cpp @@ -1,25 +1,3 @@ -// MIT License -// -// Copyright (c) 2023 W0LF aka 'dreamforce' -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. - // wCenterWindow // wCenterWindow.cpp diff --git a/wCenterWindow/wCenterWindow.h b/wCenterWindow/wCenterWindow.h index 04d78e5..6ae6fa7 100644 --- a/wCenterWindow/wCenterWindow.h +++ b/wCenterWindow/wCenterWindow.h @@ -1,25 +1,3 @@ -// MIT License -// -// Copyright (c) 2023 W0LF aka 'dreamforce' -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. - // wCenterWindow // wCenterWindow.h