Skip to content

Commit 63233c0

Browse files
Add files via upload
1 parent a1b774b commit 63233c0

File tree

8 files changed

+71
-44
lines changed

8 files changed

+71
-44
lines changed

Designer.fbs

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@
116116
<Function Name="Send-KeyUp" />
117117
<Function Name="Send-Window" />
118118
<Function Name="Set-ActiveWindow" />
119+
<Function Name="Set-CurrentDirectory" />
119120
<Function Name="Set-DPIAware" />
120121
<Function Name="Set-EnableVisualStyle" />
121122
<Function Name="Set-RegistryValue" />
@@ -165,7 +166,7 @@
165166
<Label Name="lbl_Left" Dock="Left" BackColor="35, 35, 35" Cursor="VSplit" Size="3,827" />
166167
<Label Name="lbl_Right" Dock="Right" BackColor="35, 35, 35" Cursor="VSplit" Size="3,827" />
167168
<Panel Name="pnl_Left" Dock="Left" BorderStyle="Fixed3D" Size="200,827">
168-
<SplitContainer Name="spt_Left" Dock="Fill" BackColor="ControlDark" Orientation="Horizontal" SplitterDistance="380">
169+
<SplitContainer Name="spt_Left" Dock="Fill" BackColor="ControlDark" Orientation="Horizontal" SplitterDistance="389">
169170
<SplitterPanel Name="spt_Left_Panel1">
170171
<TreeView Name="trv_Controls" Dock="Fill" BackColor="Azure" />
171172
</SplitterPanel>
@@ -175,15 +176,15 @@
175176
</SplitContainer>
176177
</Panel>
177178
<Panel Name="pnl_Right" Dock="Right" BorderStyle="Fixed3D" Size="200,827">
178-
<SplitContainer Name="spt_Right" Dock="Fill" BackColor="ControlDark" Orientation="Horizontal" SplitterDistance="387">
179+
<SplitContainer Name="spt_Right" Dock="Fill" BackColor="ControlDark" Orientation="Horizontal" SplitterDistance="383">
179180
<SplitterPanel Name="spt_Right_Panel1">
180181
<TabControl Name="TabControl5" Dock="Fill">
181-
<TabPage Name="Tab 116" Size="188,361" Text="Properties">
182+
<TabPage Name="Tab 116" Size="188,357" Text="Properties">
182183
<Button Name="btnInject" BackColor="ControlLight" Location="55,0" Size="24,24" UseVisualStyleBackColor="False" />
183-
<PropertyGrid Name="PropertyGrid" Dock="Fill" ViewBackColor="Azure" />
184+
<PropertyGrid Name="PropertyGrid" Dock="Fill" Cursor="HSplit" ViewBackColor="Azure" />
184185
</TabPage>
185-
<TabPage Name="Tab 1" Size="188,318" Text="Events">
186-
<SplitContainer Name="SplitContainer3" Dock="Fill" Orientation="Horizontal" SplitterDistance="289">
186+
<TabPage Name="Tab 1" Size="188,247" Text="Events">
187+
<SplitContainer Name="SplitContainer3" Dock="Fill" Orientation="Horizontal" SplitterDistance="218">
187188
<SplitterPanel Name="SplitContainer3_Panel1" AutoScroll="True">
188189
<ListView Name="lst_AvailableEvents" Dock="Fill" BackColor="Azure" GridLines="True" TileSize="160, 18" View="List" />
189190
</SplitterPanel>
@@ -192,24 +193,24 @@
192193
</SplitterPanel>
193194
</SplitContainer>
194195
</TabPage>
195-
<TabPage Name="TabPage8" Size="188,318" Text="Methods">
196+
<TabPage Name="TabPage8" Size="188,247" Text="Methods">
196197
<ListView Name="lst_Methods" Dock="Fill" BackColor="Azure" GridLines="True" TileSize="160, 18" View="List" />
197198
</TabPage>
198199
</TabControl>
199200
</SplitterPanel>
200201
<SplitterPanel Name="spt_Right_Panel2" BackColor="Control">
201202
<TabControl Name="TabControl2" Dock="Fill">
202-
<TabPage Name="TabPage3" Size="188,406" Text="Functions">
203-
<SplitContainer Name="SplitContainer4" Dock="Fill" Orientation="Horizontal" SplitterDistance="206">
203+
<TabPage Name="TabPage3" Size="188,410" Text="Functions">
204+
<SplitContainer Name="SplitContainer4" Dock="Fill" Orientation="Horizontal" SplitterDistance="152">
204205
<SplitterPanel Name="SplitContainer4_Panel1" AutoScroll="True">
205206
<CheckedListBox Name="lst_Functions" Dock="Fill" BackColor="Azure" ColumnWidth="175" MultiColumn="True" />
206207
</SplitterPanel>
207208
<SplitterPanel Name="SplitContainer4_Panel2" AutoScroll="True">
208-
<TextBox Name="lst_Params" Dock="Fill" BackColor="Azure" Multiline="True" ScrollBars="Both" Size="188,196" />
209+
<TextBox Name="lst_Params" Dock="Fill" BackColor="Azure" Multiline="True" ScrollBars="Both" Size="188,254" />
209210
</SplitterPanel>
210211
</SplitContainer>
211212
</TabPage>
212-
<TabPage Name="TabPage4" Size="188,522" Text="Finds">
213+
<TabPage Name="TabPage4" Size="188,593" Text="Finds">
213214
<SplitContainer Name="SplitContainer5" Dock="Fill" Orientation="Horizontal" SplitterDistance="25">
214215
<SplitterPanel Name="SplitContainer5_Panel1">
215216
<SplitContainer Name="SplitContainer6" Dock="Fill" SplitterDistance="128">

Designer/Designer.ps1

Lines changed: 10 additions & 3 deletions
Large diffs are not rendered by default.

Designer/Events.ps1

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ SOFTWARE.
8181
FileName: Designer.ps1
8282
Modified: Brandon Cunningham
8383
Created On: 1/15/2020
84-
Last Updated: 6/14/2024
85-
Version: 2.6.9
84+
Last Updated: 5/5/2025
85+
Version: 2.7.5
8686
===========================================================================
8787
8888
.DESCRIPTION
@@ -485,6 +485,13 @@ SOFTWARE.
485485
2.6.9 6/14/2024
486486
Removed orphaned wait function.
487487
Improved DarkMode function.
488+
489+
2.7.0 - 2.7.4 Various dates between 6/14/2024 and 5/4/2025
490+
Attempted to fix localization issues with varying success
491+
492+
2.7.5 5/5/2025
493+
Fixed #30 I found an error here. Thake a lokk tnx
494+
Fixed #31 [int] instead of [System.IntPtr] correction
488495
489496
490497
BASIC MODIFICATIONS License

PSGetModuleInfo.xml

11.7 KB
Binary file not shown.

README.md

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,21 @@
11
install-module powershell-designer
22

3-
Help Wanted:
4-
Just tell people about this software. By doing so, you could potentially save a friend or co-worker hundreds of dollars. That's the main help that I need. This software will not be marketed. I'm just a guy with a random passion for making stuff more functional, amazed and inspired by others, I'm not good at blogging, or videos, or tutorials. I just don't have a passion for that stuff, so it's up to you. If you can write an article or blog, create a video or a tutorial that would be awesome. Feel free to ask me for insights either by making an issue here or emailing me at brandoncomputer@hotmail.com with the subject PowerShell Designer.
5-
63
Contributing:
74
It's better to make changes to functions.ps1, events.ps1 and designer.fbs. Changes to designer.ps1 will be lost in the next 'compile' if the changes are made there and not elsewhere.
85

9-
My goal is to be the best WinForms Designer/RAD IDE for PowerShell.
6+
Made decision that there will not be a 'dark mode'.
7+
It's not that 'dark mode' isn't good, it's that there are a variety of other solutions that work solidly with this software, and anything developed will be inferior.
8+
Windows screen filters
9+
Windows Magnifier Negative Mode at 100%
10+
Best Solution: NegativeScreen by Melvyn Laily 'Smart Inversion' mode (This is usually even better than applications native 'dark mode' setting, and it works on everything, and if you switch a 'dark theme' program to its light theme and use this software, when you go dark it's just as good, I'm looking at you VSCode)
11+
WindowTop by gileli121@gmail.com.
12+
13+
There will be no exe compiler. It's not that I can't, it's that I can't make it NetInfoSec compliant, and it would be inferior to other listed solutions. See bottom recommendation.
14+
Best solution: Develop a custom solution using a program that is not .Net based that allows a Text embed section that is changable via Resource Hacker by Angus Johnson. AES Encrypt/decrypt text using native function in program.
15+
Next solution: Same as above but use base64
16+
Next Solution: Same as above but don't encode or encrypt
17+
Next Solution: ps12exe by steve02081504
18+
Next Solution: ps2exe by MScholtes
19+
Next Solution: vds-exe compiler by brandoncomputer
20+
21+
My goal is not the best at everything. My goal is to be the best WinForms Designer/RAD IDE for PowerShell.

functions/functions.psm1

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1891,7 +1891,7 @@ function Close-Window {
18911891
param (
18921892
[Parameter(Mandatory,
18931893
ValueFromPipeline)]
1894-
[int]$Handle
1894+
[System.IntPtr]$Handle
18951895
)
18961896
New-SendMessage $Handle 0x0112 0xF060 0
18971897
}
@@ -1927,7 +1927,7 @@ function Compress-Window {
19271927
param (
19281928
[Parameter(Mandatory,
19291929
ValueFromPipeline)]
1930-
[int]$Handle
1930+
[System.IntPtr]$Handle
19311931
)
19321932
[vds]::ShowWindow($Handle, "SW_MINIMIZE")
19331933
}
@@ -2727,7 +2727,7 @@ function Expand-Window {
27272727
param (
27282728
[Parameter(Mandatory,
27292729
ValueFromPipeline)]
2730-
[int]$Handle
2730+
[System.IntPtr]$Handle
27312731
)
27322732
[vds]::ShowWindow($Handle, "SW_MAXIMIZE")
27332733
}
@@ -3107,7 +3107,7 @@ function Get-ChildWindow {
31073107
param (
31083108
[Parameter(Mandatory,
31093109
ValueFromPipeline)]
3110-
[int]$Handle
3110+
[System.IntPtr]$Handle
31113111
)
31123112
return [vds]::GetWindow($Handle, 5)
31133113
}
@@ -4369,7 +4369,7 @@ function Get-PowerShellDesignerVersion {
43694369
.EXAMPLE
43704370
$PSDVersion = Get-PowerShellDesignerVersion
43714371
#>
4372-
return '2.7.3'
4372+
return '2.7.5'
43734373
}
43744374

43754375
function Get-PowerShellVersion {
@@ -5480,7 +5480,7 @@ function Get-WindowClass {
54805480
param (
54815481
[Parameter(Mandatory,
54825482
ValueFromPipeline)]
5483-
[int]$Handle
5483+
[System.IntPtr]$Handle
54845484
)
54855485
$stringbuilt = New-Object System.Text.StringBuilder 256
54865486
$that = [vds]::GetClassName($Handle, $stringbuilt, 256)
@@ -5613,7 +5613,7 @@ function Get-WindowParent {
56135613
param (
56145614
[Parameter(Mandatory,
56155615
ValueFromPipeline)]
5616-
[int]$Handle
5616+
[System.IntPtr]$Handle
56175617
)
56185618
return [vds]::GetParent($Handle)
56195619
}
@@ -5652,7 +5652,7 @@ function Get-WindowPosition {
56525652
param (
56535653
[Parameter(Mandatory,
56545654
ValueFromPipeline)]
5655-
[int]$Handle
5655+
[System.IntPtr]$Handle
56565656
)
56575657
$return = [PSCustomObject] | Select-Object -Property Top, Left, Width, Height
56585658
$Rect = New-Object RECT
@@ -5720,7 +5720,7 @@ function Get-WindowSibling {
57205720
param (
57215721
[Parameter(Mandatory,
57225722
ValueFromPipeline)]
5723-
[int]$Handle
5723+
[System.IntPtr]$Handle
57245724
)
57255725
return [vds]::GetWindow($Handle, 2)
57265726
}
@@ -5782,7 +5782,7 @@ function Get-WindowText {
57825782
param (
57835783
[Parameter(Mandatory,
57845784
ValueFromPipeline)]
5785-
[int]$Handle
5785+
[System.IntPtr]$Handle
57865786
)
57875787
$strbld = [vds]::GetWindowTextLength($Handle)
57885788
$stringbuilt = New-Object System.Text.StringBuilder $strbld+1
@@ -5917,7 +5917,7 @@ function Hide-Window {
59175917
param (
59185918
[Parameter(Mandatory,
59195919
ValueFromPipeline)]
5920-
[int]$Handle
5920+
[System.IntPtr]$Handle
59215921
)
59225922
[vds]::ShowWindow($Handle, "SW_HIDE")
59235923
}
@@ -6183,7 +6183,7 @@ function Move-Window {
61836183
param (
61846184
[Parameter(Mandatory,
61856185
ValueFromPipeline)]
6186-
[int]$Handle,
6186+
[System.IntPtr]$Handle,
61876187
[Parameter(Mandatory)]
61886188
[int]$Left,
61896189
[Parameter(Mandatory)]
@@ -7927,7 +7927,7 @@ function Send-ClickToWindow {
79277927
param (
79287928
[Parameter(Mandatory,
79297929
ValueFromPipeline)]
7930-
[int]$Handle,
7930+
[System.IntPtr]$Handle,
79317931
[Parameter(Mandatory)]
79327932
[int]$x,
79337933
[Parameter(Mandatory)]
@@ -8073,7 +8073,7 @@ b
80738073
param (
80748074
[Parameter(Mandatory,
80758075
ValueFromPipeline)]
8076-
[int]$Handle,
8076+
[System.IntPtr]$Handle,
80778077
[Parameter(Mandatory)]
80788078
[int]$x,
80798079
[Parameter(Mandatory)]
@@ -8208,7 +8208,7 @@ function Send-Window {
82088208
param (
82098209
[Parameter(Mandatory,
82108210
ValueFromPipeline)]
8211-
[int]$Handle,
8211+
[System.IntPtr]$Handle,
82128212
[string]$String
82138213
)
82148214
Set-ActiveWindow $Handle
@@ -8247,7 +8247,7 @@ function Set-ActiveWindow {
82478247
param (
82488248
[Parameter(Mandatory,
82498249
ValueFromPipeline)]
8250-
[int]$Handle
8250+
[System.IntPtr]$Handle
82518251
)
82528252
[vds]::SetForegroundWindow($Handle)
82538253
}
@@ -8495,7 +8495,7 @@ function Set-FlashWindow {
84958495
param (
84968496
[Parameter(Mandatory,
84978497
ValueFromPipeline)]
8498-
[int]$Handle
8498+
[System.IntPtr]$Handle
84998499
)
85008500
[Window]::FlashWindow($Handle,150,10)
85018501
}
@@ -9168,7 +9168,7 @@ function Set-WindowNotOnTop {
91689168
param (
91699169
[Parameter(Mandatory,
91709170
ValueFromPipeline)]
9171-
[int]$Handle
9171+
[System.IntPtr]$Handle
91729172
)
91739173
[vds]::SetWindowPos($Handle, -2, (Get-WindowPosition $Handle).Left, (Get-WindowPosition $Handle).Top, (Get-WindowPosition $Handle).Width, (Get-WindowPosition $Handle).Height, 0x0040) | out-null
91749174
}
@@ -9204,7 +9204,7 @@ function Set-WindowOnTop {
92049204
param (
92059205
[Parameter(Mandatory,
92069206
ValueFromPipeline)]
9207-
[int]$Handle
9207+
[System.IntPtr]$Handle
92089208
)
92099209
[vds]::SetWindowPos($Handle, -1, (Get-WindowPosition $Handle).Left, (Get-WindowPosition $Handle).Top, (Get-WindowPosition $Handle).Width, (Get-WindowPosition $Handle).Height, 0x0040) | out-null
92109210
}
@@ -9284,7 +9284,7 @@ function Set-WindowText {
92849284
param (
92859285
[Parameter(Mandatory,
92869286
ValueFromPipeline)]
9287-
[int]$Handle,
9287+
[System.IntPtr]$Handle,
92889288
[string]$Text
92899289
)
92909290
[vds]::SetWindowText($Handle,$Text)
@@ -9743,7 +9743,7 @@ function Show-OpenFileDialog {
97439743
$filedlg.ShowDialog() | Out-Null
97449744
return $filedlg.FileName
97459745
}
9746-
<#
9746+
97479747
function Show-PageSetupDialog {
97489748
<#
97499749
.SYNOPSIS
@@ -9928,7 +9928,7 @@ function Show-Window {
99289928
param (
99299929
[Parameter(Mandatory,
99309930
ValueFromPipeline)]
9931-
[int]$Handle
9931+
[System.IntPtr]$Handle
99329932
)
99339933
[vds]::ShowWindow($Handle, "SW_SHOW_NORMAL")
99349934
}

powershell-designer.nuspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
33
<metadata>
44
<id>powershell-designer</id>
5-
<version>2.7.3</version>
5+
<version>2.7.5</version>
66
<authors>Brandon Cunningham</authors>
77
<owners>Brandon Cunningham</owners>
88
<requireLicenseAcceptance>false</requireLicenseAcceptance>

powershell-designer.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
RootModule = 'powershell-designer.psm1'
1313

1414
# Version number of this module.
15-
ModuleVersion = '2.7.3'
15+
ModuleVersion = '2.7.5'
1616

1717
# Supported PSEditions
1818
# CompatiblePSEditions = @()

0 commit comments

Comments
 (0)