Skip to content

Commit

Permalink
v.0.0.11.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kacos2000 authored Jan 16, 2023
1 parent d219994 commit 9efccea
Showing 1 changed file with 60 additions and 46 deletions.
106 changes: 60 additions & 46 deletions JumplistBrowser.ps1
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<#
--------------------------------------------------------------------------------
Generated by: Costas Katsavounidis
https://github.com/kacos2000/Jumplist-Browser
--------------------------------------------------------------------------------
.DESCRIPTION
#>

function Main {
Expand Down Expand Up @@ -31,9 +31,6 @@ function Main {
$script:ExitCode = 0 #Set the exit code for the Packager
}


#endregion Source: Startup.pss

#region Source: MainForm.psf
function Show-MainForm_psf
{
Expand Down Expand Up @@ -800,7 +797,7 @@ function Show-MainForm_psf
$KnownFolderDisplayName = if (!!$knownfolders.Where{ $_.GUID -eq "{$($kfguid)}"} )
{ "$($knownfolders.Where{ $_.GUID -eq "{$($kfguid)}" }.Name)" }
else { "----" }
$KnownFolderIDOffset = $ShotcutInfo.ExtraData.KnownFolderDataBlock.Offset
$KnownFolderIDOffset = $ShotcutInfo.ExtraData.KnownFolderDataBlock.Offset
$linktargets | Add-Member -MemberType NoteProperty -Name "Known Folder BlockSignature" -Value $KnBlockSignature
$linktargets | Add-Member -MemberType NoteProperty -Name "Known Folder ID" -Value $KnownFolderID
$linktargets | Add-Member -MemberType NoteProperty -Name "Known Folder DisplayName" -Value $KnownFolderDisplayName
Expand Down Expand Up @@ -842,8 +839,8 @@ function Show-MainForm_psf
}
$linktargets | Add-Member -MemberType NoteProperty -Name "Console Data Block" -Value $ConsoleData
}

# ConsoleDataBlock
# ConsoleFEDataBlock
if ($ShotcutInfo.ExtraData.ConsoleFEDataBlock)
{
# https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-lcid/63d3d639-7fd2-4afb-abbe-0d5b5551eef8
Expand Down Expand Up @@ -1600,7 +1597,7 @@ function Show-MainForm_psf

try
{
$dirFiles = [System.IO.Directory]::GetFiles("$($Folder)", "*", 'AllDirectories').Where{ $_.EndsWith('.lnk') -or $_.EndsWith('customDestinations-ms') -or $_.EndsWith('automaticDestinations-ms') }
$dirFiles = [System.IO.Directory]::GetFiles("$($Folder)", "*", 'AllDirectories').Where{ $_.EndsWith('.lnk') -or $_.EndsWith('customDestinations-ms') -or $_.EndsWith('automaticDestinations-ms') -or $_.EndsWith('TEMP')}
# Get File Properties
$files = @(foreach ($file in $dirFiles)
{
Expand Down Expand Up @@ -1726,7 +1723,7 @@ function Show-MainForm_psf
}
$dirs | sort -Unique
# Add Directories
if ($dirs.count -gt 1)
if ($dirs.count -ge 1)
{
Add-Directories -RootNode $Root -Directories $dirs
}
Expand All @@ -1736,26 +1733,22 @@ function Show-MainForm_psf
[gc]::Collect()
return
}



# Add Files
foreach ($file in $files)
{
$fname = $file.Name
$parent = Split-Path $file.Parent -Leaf
try
{
$filep = $file.Parent.Replace("$(Split-Path -path $RootFolder -Parent)", '').Trimstart("\")
}
catch{continue}
$parent = Split-Path $file.Filename -Parent
try { $filep = $parent.Replace("$(Split-Path -path $RootFolder -Parent)", '').Trimstart("\") }
catch{ continue}
$node = $Root.Nodes.Find("$($filep)",$true)
$parentnode = if(!!$node){$node[0]} else {continue}
if (!!$node) { $parentnode = $node[0] } else{ $parentnode = $RootFolder}

# Add File
$filenode = $ParentNode.Nodes.Add("$($file.Filename)", "$($fname)")
$filenode.Tag = "$($file.Filename)"

if ($file.'AppName' -ne $null)
if ($file.AppName -ne $null)
{
$filenode.ToolTipText = "$($file.AppName)"
$filenode.ForeColor = 'LightGreen'
Expand Down Expand Up @@ -3088,7 +3081,7 @@ function Show-MainForm_psf
$repo = "kacos2000/Jumplist-Browser"
$latestR = "https://api.github.com/repos/$($repo)/releases/latest"
$releases = "https://api.github.com/repos/$($repo)/releases"
$aboutmessage = "Jumplist Browser $($JumplistBrowserVersion)`nCostas Katsavounidis © 2022`nhttps://github.com/kacos2000"
$aboutmessage = "Jumplist Browser $($JumplistBrowserVersion)`nCostas Katsavounidis © 2022-2023`nhttps://github.com/kacos2000"
$downlink = "https://github.com/kacos2000/Jumplist-Browser/releases/latest"

[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Expand Down Expand Up @@ -3250,6 +3243,23 @@ function Show-MainForm_psf
}


$toolstripmenuitem1_Click={
$node = $treeview1.SelectedNode
if (!!$node)
{
if ($node.Name.EndsWith(".automaticDestinations-ms") -and !!$node.Tag)
{
Process-Automatic -File "$($treeview1.SelectedNode.Name)"
}
elseif (!!$node.Tag)
{
Process-Link -File "$($treeview1.SelectedNode.Name)"
}
else { [System.Console]::Beep(500, 150) }
}
else { [System.Console]::Beep(500, 150) }
}

# --End User Generated Script--
#----------------------------------------------
#region Generated Events
Expand Down Expand Up @@ -3296,6 +3306,7 @@ function Show-MainForm_psf
$treeview1.remove_NodeMouseClick($treeview1_NodeMouseClick)
$CopyNode1.remove_Click($CopyNode1_Click)
$Exit1.remove_Click($Exit1_Click)
$toolstripmenuitem1.remove_Click($toolstripmenuitem1_Click)
$CopyNode2.remove_Click($CopyNode2_Click)
$CopyAll2.remove_Click($CopyAll2_Click)
$Expand2.remove_Click($Expand2_Click)
Expand Down Expand Up @@ -4069,6 +4080,7 @@ QmCCCw=='))
$treeview1.Dock = 'Fill'
$treeview1.Font = [System.Drawing.Font]::new('Calibri', '10')
$treeview1.ForeColor = [System.Drawing.SystemColors]::Window
$treeview1.HideSelection = $False
$treeview1.Location = New-Object System.Drawing.Point(0, 0)
$treeview1.Margin = '5, 5, 5, 5'
$treeview1.Name = 'treeview1'
Expand All @@ -4085,6 +4097,7 @@ QmCCCw=='))
$treeview2.Dock = 'Fill'
$treeview2.Font = [System.Drawing.Font]::new('Consolas', '9.5')
$treeview2.ForeColor = [System.Drawing.SystemColors]::Window
$treeview2.HideSelection = $False
$treeview2.Location = New-Object System.Drawing.Point(0, 0)
$treeview2.Margin = '5, 5, 5, 5'
$treeview2.Name = 'treeview2'
Expand Down Expand Up @@ -4170,6 +4183,7 @@ BuWSu6CElvwDAAAAAElFTkSuQmCCCw=='))
$toolstripmenuitem1.Name = 'toolstripmenuitem1'
$toolstripmenuitem1.Size = New-Object System.Drawing.Size(281, 30)
$toolstripmenuitem1.Text = 'Process '
$toolstripmenuitem1.add_Click($toolstripmenuitem1_Click)
#
# toolstripseparator8
#
Expand Down Expand Up @@ -4624,8 +4638,8 @@ Main ($CommandLine)
# SIG # Begin signature block
# MIIviAYJKoZIhvcNAQcCoIIveTCCL3UCAQExDzANBglghkgBZQMEAgEFADB5Bgor
# BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG
# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCB56bC+ZYL41/Xy
# /mAyEg7Mqh6d50onECggCdjUPYlIdqCCKI0wggQyMIIDGqADAgECAgEBMA0GCSqG
# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCBLAAZpGmAjRz55
# VDVG8K1NkPc0QJ4Chdg86yA9oEk8TqCCKI0wggQyMIIDGqADAgECAgEBMA0GCSqG
# SIb3DQEBBQUAMHsxCzAJBgNVBAYTAkdCMRswGQYDVQQIDBJHcmVhdGVyIE1hbmNo
# ZXN0ZXIxEDAOBgNVBAcMB1NhbGZvcmQxGjAYBgNVBAoMEUNvbW9kbyBDQSBMaW1p
# dGVkMSEwHwYDVQQDDBhBQUEgQ2VydGlmaWNhdGUgU2VydmljZXMwHhcNMDQwMTAx
Expand Down Expand Up @@ -4845,35 +4859,35 @@ Main ($CommandLine)
# AQEwaDBUMQswCQYDVQQGEwJHQjEYMBYGA1UEChMPU2VjdGlnbyBMaW1pdGVkMSsw
# KQYDVQQDEyJTZWN0aWdvIFB1YmxpYyBDb2RlIFNpZ25pbmcgQ0EgUjM2AhALYufv
# MdbwtA/sWXrOPd+kMA0GCWCGSAFlAwQCAQUAoEwwGQYJKoZIhvcNAQkDMQwGCisG
# AQQBg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yl05c6q3feG70j4XDAgk4+WCUBWZm
# 6hUbtHk0Vfu9EROdiESYTltgjPjx4cctvXxFvve6xAatQyNoDta+nfh+ZQCYiHzU
# xHH+WoYTR6u/weMK8aoUyq6Dpx+00HtuV2jUAVBJUPbO8bqU2/0Z7WSyf2MLCqlH
# VupKcxztJENcKEoTmDqSrSFEh0lf6RDH/2O8DDneq6uSNoTh/uqGmfirSTgBEj8Q
# HLpIM5PpFg/nej8m3SKAgroP54k0csdS17f08ZjLW9ohtKbootx0VRcHSPfhgCE5
# xSyIo857vlG0AKhxdTkqNhoSBU+KlK8pSs7/DvUN2TrXZdJB65DU6NaVgKny49Rv
# ehO9+59umSrIhknE1/DJaTZM8ZECtbGuUAB8Bg==
# SIG # End signature block

0 comments on commit 9efccea

Please sign in to comment.