mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2025-06-27 16:44:46 -05:00
Test 2023 12 19 (#1294)
* Compile Winutil * Issue #1283, #1280 fixes, more (#1288) * Explorer Fix * Wifi, Explorer Crash, WinUtil Icon fixes. First attempt at white theme * White theme * Fix for clashing microwin directories if process fails, now new directory will be generated * * Tested latest Windows 10 (22H2) images work fine * Made dialog box more clear for issue #1283 * Added better logic for handling takeown /D flag for different locals issue #1280 * Refreshed the UI to more modern look * Improved white theme * Regrouped Tweak tab to make more sense * Advanced tweaks were in a separate column but the button applied both Essential and advanced now they are in the same column and button applies both * All instant action buttons were moved to Customize preferences column * Explorer lockup Fix * Wifi, Explorer Crash, WinUtil Icon fixes. * Fix for clashing microwin directories if process fails, now new directory will be generated * Merge all * Theme improvement, adding icon to the shortcut * Ability to download oscdimg from github, reorginizing Apps to fit better on more (smaller screens) * Fixing release branch to WinUtil * Adding double click to fullscreen * Update Get-Oscdimg.ps1 --------- Co-authored-by: KonTy <KonTy@github.com> Co-authored-by: Chris Titus <contact@christitus.com> * Update winutil.ps1 * remove merc and thorium * Ashlyn Programs * Also inject drivers into boot.wim * copy #1291 new branch --------- Co-authored-by: ChrisTitusTech <ChrisTitusTech@users.noreply.github.com> Co-authored-by: KonTy <9524513+KonTy@users.noreply.github.com> Co-authored-by: KonTy <KonTy@github.com> Co-authored-by: Cedric Lewe <0skillallluck@pm.me>
This commit is contained in:
@ -161,7 +161,7 @@ $commonKeyEvents = {
|
||||
|
||||
# Escape removes focus from the searchbox that way all shortcuts will start workinf again
|
||||
if ($_.Key -eq "Escape") {
|
||||
if ($sync.CheckboxFilter.IsFocused)
|
||||
#if ($sync.CheckboxFilter.IsFocused)
|
||||
{
|
||||
$sync.CheckboxFilter.SelectAll()
|
||||
$sync.CheckboxFilter.Text = ""
|
||||
@ -232,6 +232,19 @@ $sync["Form"].Add_MouseLeftButtonDown({
|
||||
$sync["Form"].DragMove()
|
||||
})
|
||||
|
||||
$sync["Form"].Add_MouseDoubleClick({
|
||||
if ($sync["Form"].WindowState -eq [Windows.WindowState]::Normal)
|
||||
{
|
||||
$sync["Form"].WindowState = [Windows.WindowState]::Maximized;
|
||||
}
|
||||
else
|
||||
{
|
||||
$sync["Form"].WindowState = [Windows.WindowState]::Normal;
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
|
||||
# setting window icon to make it look more professional
|
||||
$sync["Form"].Add_Loaded({
|
||||
|
||||
@ -243,7 +256,7 @@ $sync["Form"].Add_Loaded({
|
||||
# File does not exist, download it
|
||||
$wc = New-Object System.Net.WebClient
|
||||
$wc.DownloadFile($downloadUrl, $destinationPath)
|
||||
Write-Output "File downloaded to: $destinationPath"
|
||||
Write-Host "File downloaded to: $destinationPath"
|
||||
} else {
|
||||
Write-Output "File already exists at: $destinationPath"
|
||||
}
|
||||
@ -288,6 +301,7 @@ $sync["Form"].Add_Loaded({
|
||||
|
||||
# Move the window to that position...
|
||||
[Void][Window]::MoveWindow($windowHandle, $x, $y, $width, $height, $True)
|
||||
|
||||
Invoke-WPFTab "WPFTab1BT"
|
||||
$sync["Form"].Focus()
|
||||
})
|
||||
@ -312,20 +326,6 @@ $sync["CheckboxFilter"].Add_TextChanged({
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
$downloadUrl = "https://christitus.com/images/logo-full.png"
|
||||
$destinationPath = Join-Path $env:TEMP "cttlogo.png"
|
||||
|
||||
# Check if the file already exists
|
||||
if (-not (Test-Path $destinationPath)) {
|
||||
# File does not exist, download it
|
||||
$wc = New-Object System.Net.WebClient
|
||||
$wc.DownloadFile($downloadUrl, $destinationPath)
|
||||
Write-Output "File downloaded to: $destinationPath"
|
||||
} else {
|
||||
Write-Output "File already exists at: $destinationPath"
|
||||
}
|
||||
|
||||
# show current windowsd Product ID
|
||||
#Write-Host "Your Windows Product Key: $((Get-WmiObject -query 'select * from SoftwareLicensingService').OA3xOriginalProductKey)"
|
||||
|
||||
|
Reference in New Issue
Block a user