You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Shutdown Timer Classic 🕒
2
2
3
-
Shutdown Timer Classic is a small little Windows application that allows you to set a timer that will shutdown, restart, hibernate, sleep or lock your PC.
3
+
Shutdown Timer Classic is a small Windows application that allows you to set a timer that will shut down, restart, hibernate, sleep, or lock your PC.
4
4
5
5

6
6
@@ -17,14 +17,14 @@ The Microsoft Store is the only official download that will receive automatic up
17
17
18
18
**Alternative**: [GitHub Releases](https://github.com/lukaslangrock/ShutdownTimerClassic/releases) or [my mirror](https://files.langrock.info/apps/ShutdownTimerClassic/).
19
19
20
-
These builds are provided with each stable release and include both the binaries itself for portable use and an installer. If you want to use the raw binaries themself, please extract the entire archive and keep all the files in the same folder.
20
+
These builds are provided with each stable release and include both the binaries themselves for portable use and an installer. If you want to use the raw binaries themselves, please extract the entire archive and keep all the files in the same folder.
21
21
22
-
**Development builds**: As this is a low priority side-project of mine, releases are rare. However, the CI for this projects is set-up to produce and publish build artifacts for each new commit. These are very much development builds, they might not work correctly and they may represent features in an unfinished state, so use them at your own disgrecion (this is also why there is no link here, they are not meant for people not at all familar with software development).
22
+
**Development builds**: As this is a low priority sideproject of mine, releases are rare. However, the CI for this project is setup to produce and publish build artifacts for each new commit. These are development builds; they might not work correctly and they may represent features in an unfinished state, so use them at your own discretion (this is also why there is no link here; they are not meant for people unfamiliar with software development).
23
23
24
24
# Usage ✨
25
25
26
-
Shutdown Timer is a very simple application hence it is easy to use.
27
-
Just choose a power action from the drop-down menu and then dial in the time span you want. If the counter reaches zero the chosen power action will be executed.
26
+
Shutdown Timer is a simple application, so it is easy to use.
27
+
Just choose a power action from the drop-down menu and then dial in the time span you want. If the counter reaches zero, the chosen power action will be executed.
28
28
29
29
Upon reaching zero, the Shutdown Timer will (actually Windows will do this, Shutdown Timer just gives the command to) force close any still running applications to ensure the shutdown does not get interrupted.
30
30
Therefore you may experience data loss if any application is in the process of saving or processing data when the shutdown begins.
@@ -78,19 +78,19 @@ To launch the application with additional arguments, navigate to folder where th
78
78
For installations with the Installer, you should find the folder at `C:\Program Files (x86)\Lukas Langrock\Shutdown Timer Classic`.
79
79
If you opted for the ZIP without an isntaller, copy **all** the files in the ZIP to any folder of your choosing and do not rename any files itself.
80
80
81
-
Now, right click in the explorer, select "Open in Terminal" and type `.\ShutdownTimerClassic.exe`, adding the respective arguments using their exact name and seperated by a space:
81
+
Now, right click in the explorer, select "Open in Terminal" and type `.\ShutdownTimerClassic.exe`, adding the respective arguments using their exact name and separated by a space:
82
82
83
83
```
84
84
Argument Description
85
85
86
86
/SetTime <time> Sets the time for the countdown. Either type in the seconds, use HH:mm:ss or HH:mm.
87
87
88
88
/SetAction <action> Sets the power action which will be executed after the countdown reached zero.
89
-
Type in the exact name as seen in the UI (eg: Shutdown, Restart or Sleep. Do not use shutdown Reboot or SLEEP)
89
+
Type in the exact name as seen in the UI (eg: Shutdown, Restart or Sleep. Do not use other variations like shutdown, Reboot, SLEEP, ...).
90
90
91
91
/SetMode <mode> Sets the control mode. Modes available:
92
-
Prefill: Prefills settings but let user manually change them too. Timer won't start automatically.
93
-
Lock: Overrides settings so the user can not change them. Timer won't start automatically.
92
+
Prefill: Prefills settings but lets the user manually change them too. Timer won't start automatically.
93
+
Lock: Overrides settings so the user cannot change them. Timer won't start automatically.
94
94
Launch: Overrides settings and starts the timer.
95
95
ForcedLaunch: Overrides settings and starts the timer. Disables all UI controls and exit dialogs.
This command will launch launch Shutdown Timer in hibernation mode with 1 hours, 0 minutes and 0 seconds and start the countdown.
111
+
This command will launch Shutdown Timer in hibernation mode with 1 hour, 0 minutes, and 0 seconds and start the countdown.
112
112
113
113
If you want to redistribute my executable with your own app/script you are free to do so. Please just keep it updated and mention this project somewhere in the description (ie: follow the license for this project).
Copy file name to clipboardExpand all lines: Structure.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ I'd recommend using **Visual Studio Community 2022** as it's the IDE I use for d
11
11
12
12
## Application Structure 🕸
13
13
14
-
The application's entry point is `Program.cs` which initializes the settings, applys CLI arguments using `ArgProcessor.cs`, and registers `Helpers/ExceptionHandler.cs` to catch unhandled or thread exceptions and then launches an instance of `Menu.cs` (or `Countdown.cs` in case the CLI args request it).
14
+
The application's entry point is `Program.cs` which initializes the settings, applies CLI arguments using `ArgProcessor.cs`, and registers `Helpers/ExceptionHandler.cs` to catch unhandled or thread exceptions and then launches an instance of `Menu.cs` (or `Countdown.cs` in case the CLI args request it).
15
15
16
16
### Forms 🎨
17
17
@@ -30,7 +30,7 @@ It will call `Helpers/ExitWindows.cs` when the timer reaches zero and uses `Help
30
30
31
31
**`Helpers/ArgProcessor.cs`** is responsible for reading CLI arguments and is only used by `Program.cs`
32
32
33
-
**`Helpers/ExceptionHandler.cs`** will gather information about the system and the application and generated a log file which it places on the user's desktop and informs them about the exception. This replaces the default .NET exception handler. It's turned off in debugging mode.
33
+
**`Helpers/ExceptionHandler.cs`** will gather information about the system and the application and generates a log file that it places on the user's desktop and informs them about the exception. This replaces the default .NET exception handler. It's turned off in debugging mode.
34
34
35
35
**`Helpers/ExecutionState.cs`** keeps the system awake during the countdown.
36
36
@@ -44,7 +44,7 @@ The settings do need to be saved to the `settings.json` file before exiting the
44
44
45
45
### Dependencies 📚
46
46
47
-
This app depends on `Microsoft.Windows.SDK.Contracts` for interacting with newer Windows API's which are otherwise only available to UWP apps and `Newtonsoft.Json` for serializing/deserializing the settings to and from the `settings.json` file.
47
+
This app depends on `Microsoft.Windows.SDK.Contracts` for interacting with newer Windows APIs which are otherwise only available to UWP apps and `Newtonsoft.Json` for serializing/deserializing the settings to and from the `settings.json` file.
// When the dark theme is selected we are using the light icon to generate contrast (and vise versa), you wouldn't want a white icon on a white background.
95
+
// When the dark theme is selected we are using the light icon to generate contrast (and vice versa), you wouldn't want a white icon on a white background.
// Prevent font-fallback and subsequent layout issues. This application is currently only in english and doesn't require display of non-latin chacracters.
111
+
// Prevent font-fallback and subsequent layout issues. This application is currently only in English and doesn't require display of non-Latin characters.
112
112
this.Font=newFont("Microsoft Sans Serif",8.25f,FontStyle.Regular,GraphicsUnit.Point,0);
// Prevent font-fallback and subsequent layout issues. This application is currently only in english and doesn't require display of non-latin chacracters.
27
+
// Prevent font-fallback and subsequent layout issues. This application is currently only in English and doesn't require display of non-Latin characters.
28
28
this.Font=newFont("Microsoft Sans Serif",8.25f,FontStyle.Regular,GraphicsUnit.Point,0);
0 commit comments