-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add legacy print panel * fix documentation - run generator - add link to button - add documentation for printer - update table of contents * fix spelling
- Loading branch information
1 parent
1bfd8bd
commit ad37371
Showing
5 changed files
with
161 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
# Printer Settings | ||
|
||
Last Updated: 2024-08-31 | ||
|
||
|
||
!!! info | ||
The Development Documentation is auto generated for every compilation of WinUtil, meaning a part of it will always stay up-to-date. **Developers do have the ability to add custom content, which won't be updated automatically.** | ||
|
||
|
||
<!-- BEGIN CUSTOM CONTENT --> | ||
|
||
<!-- END CUSTOM CONTENT --> | ||
|
||
<details> | ||
<summary>Preview Code</summary> | ||
|
||
```json | ||
{ | ||
"Content": "Printer Settings", | ||
"category": "Legacy Windows Panels", | ||
"panel": "2", | ||
"Type": "Button", | ||
"ButtonWidth": "300" | ||
} | ||
``` | ||
|
||
</details> | ||
|
||
## Function: Invoke-WPFControlPanel | ||
|
||
```powershell | ||
function Invoke-WPFControlPanel { | ||
<# | ||
.SYNOPSIS | ||
Opens the requested legacy panel | ||
.PARAMETER Panel | ||
The panel to open | ||
#> | ||
param($Panel) | ||
switch ($Panel) { | ||
"WPFPanelcontrol" {cmd /c control} | ||
"WPFPanelnetwork" {cmd /c ncpa.cpl} | ||
"WPFPanelpower" {cmd /c powercfg.cpl} | ||
"WPFPanelregion" {cmd /c intl.cpl} | ||
"WPFPanelsound" {cmd /c mmsys.cpl} | ||
"WPFPanelprinter" {Start-Process "shell:::{A8A91A66-3A7D-4424-8D24-04E180695C7A}"} | ||
"WPFPanelsystem" {cmd /c sysdm.cpl} | ||
"WPFPaneluser" {cmd /c "control userpasswords2"} | ||
} | ||
} | ||
``` | ||
|
||
|
||
<!-- BEGIN SECOND CUSTOM CONTENT --> | ||
|
||
<!-- END SECOND CUSTOM CONTENT --> | ||
|
||
|
||
[View the JSON file](https://github.com/ChrisTitusTech/winutil/tree/main/../config/feature.json) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters