使用powershell构建gui界面

使用powershell构建gui界面:

参考:

https://blog.csdn.net/gjmjack/article/details/124032293

c 复制代码
# Create a new button instance
 
$button1 = New-Object System.Windows.Forms.Button;
 
# Set button property
 
$button1.Location = New-Object System.Drawing.Point(257, 150);
$button1.Name = "button1";
$button1.Size = New-Object System.Drawing.Size(284, 103);
$button1.TabIndex = 0;
$button1.Text = "工作使我快乐";
$button1.UseVisualStyleBackColor = $true;

无法运行.ps1脚本(powershell脚本)处理办法:

参考:

https://blog.csdn.net/gao_zhennan/article/details/131719371

c 复制代码
Get-ExecutionPolicy -List
Set-ExecutionPolicy -ExecutionPolicy AllSigned CurrentUser
Get-ExecutionPolicy -List
相关推荐
微小冷5 天前
pyQT中的文本部件及其区别
pyqt·gui·富文本编辑器·文本输入框·文本浏览器
winfredzhang9 天前
用 wxPython 打造「Claude Code 任务启动器」:一个把 AI CLI 变成一键工作流的桌面工具
python·wxpython·powershell·剪贴板·claudecodecli
鬼手点金10 天前
Hermes‑Agent 使用教程
python·ubuntu·powershell·cmd·ai agent·opencode·hermes
沫璃染墨11 天前
《Qt从零入门系列(一):Qt框架初识——从发展历史到跨平台开发》
c++·qt·系统架构·gui
天天进步201514 天前
UI-TARS 源码解析 #18:drag 与 scroll 源码解析:复杂 GUI 操作如何落到 pyautogui?
gui
寒水馨16 天前
macOS下载、安装PowerShell-v7.6.4(附安装包powershell-7.6.4-osx-arm64.pkg)
macos·自动化·跨平台·shell·脚本·命令行·powershell
寒水馨16 天前
Linux下载、安装PowerShell-v7.6.4(附安装包powershell-7.6.4-linux-x64.tar.gz)
linux·跨平台·自动化运维·devops·命令行·powershell·脚本语言
BW.SU1 个月前
瑞佑RUI--工业UI,拖拽即成
stm32·单片机·51单片机·gui·人机界面·单片机可视化设计
Molesidy1 个月前
【GUI】【AWTK】基于开阳平台的GUI界面设计环境搭建
linux·gui·awtk
儒雅的烤地瓜1 个月前
计算机网络 | 网络诊断双刃剑:Tracert路由追踪实战与Windows防火墙端口配置指南
tcp/ip·计算机网络·wireshark·防火墙·powershell·cmd