news 2026/4/3 4:12:52

幽冥大陆(五十一)屏幕录像电子教学粉笔工具栏顶置——东方仙盟炼气期

作者头像

张小明

前端开发工程师

1.2k 24
文章封面图
幽冥大陆(五十一)屏幕录像电子教学粉笔工具栏顶置——东方仙盟炼气期

工具栏顶置

在电子教学的屏幕录制领域,屏幕录制仿若东方仙盟的灵镜,将知识的乾坤万象清晰映照。而其中的粉笔标记,恰似仙盟高手以灵力勾勒的神秘符文,醒目且关键,能瞬间聚焦重点,引导学生目光如灵蝶追香,精准落在知识的花蕊上。

至于工具栏,它宛如仙盟宝库的机关枢纽,蕴藏着众多如法宝般的实用工具。画笔如灵笔可绘天地妙象,橡皮擦似清尘仙力能修正谬误。但为何工具栏要置顶呢?这是因为在东方仙盟的诸多奇珍异宝中,最为关键的法宝总是被供奉在最显眼、最易触及之处,以便在关键时刻能迅速取用。同样,将工具栏置顶,就如同将这些知识传承的 “仙盟法宝” 置于触手可及的高位,教师在教学过程中能如仙者自如施展法术般,毫无阻滞地按需取用。无论是需要突出重点时挥动画笔,还是修正讲解失误时运用橡皮擦,置顶的工具栏都能让教师在知识的广袤仙域中自由驰骋,不会因寻找工具而打乱教学节奏,从而为学生雕琢出一条顺畅的求知仙途,让知识的传承与启迪如仙盟的光辉,熠熠生辉,照亮学子的漫漫求学之路

防阻塞切换

工具栏UI

<Window x:Class="Captura.CyberWin_Main.CyberWin_FloatingToolbarWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes" xmlns:viewModels="clr-namespace:Captura.ViewModels" Title="未来之窗教学录制工具Floating Toolbar" Height="Auto" Width="50" WindowStyle="None" AllowsTransparency="True" Background="#90e50000" Topmost="True" ShowInTaskbar="False" ResizeMode="NoResize"> <Window.Resources> <!-- 按钮样式 --> <Style TargetType="Button" x:Key="FloatingButtonStyle"> <Setter Property="Width" Value="30" /> <Setter Property="Height" Value="50" /> <Setter Property="Margin" Value="5" /> <Setter Property="Background" Value="Transparent" /> <Setter Property="BorderBrush" Value="Transparent" /> <Setter Property="Foreground" Value="White" /> <Setter Property="Cursor" Value="Hand" /> <Setter Property="materialDesign:ButtonAssist.CornerRadius" Value="10" /> <Style.Triggers> <Trigger Property="IsMouseOver" Value="True"> <Setter Property="Background" Value="#50FFFFFF" /> </Trigger> <Trigger Property="IsPressed" Value="True"> <Setter Property="Background" Value="#80FFFFFF" /> </Trigger> </Style.Triggers> </Style> </Window.Resources> <!-- 主容器,支持拖拽 --> <Grid MouseLeftButtonDown="Grid_MouseLeftButtonDown" HorizontalAlignment="Center" Background="Transparent"> <!-- 垂直排列的按钮 --> <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center" Margin="5"> <Label Foreground="#FFFFFF" FontSize="14" Width="30">电子</Label> <Label Foreground="#FFFFFF" FontSize="14" Width="30" >教学</Label> <!-- 录制控制 --> <Button Command="{Binding StartRecordingCommand}" Style="{StaticResource FloatingButtonStyle}" ToolTip="开始录制"> <materialDesign:PackIcon Kind="Play" Width="25" Height="25" /> </Button> <Button Command="{Binding PauseRecordingCommand}" Style="{StaticResource FloatingButtonStyle}" ToolTip="暂停录制"> <materialDesign:PackIcon Kind="Pause" Width="25" Height="25" /> </Button> <!-- <Button Command="{Binding StopRecordingCommand}" Style="{StaticResource FloatingButtonStyle}" ToolTip="停止录制"> <materialDesign:PackIcon Kind="Stop" Width="25" Height="25" /> </Button> --> <Separator Height="15" Visibility="Hidden" /> <!-- 工具控制 --> <Button Command="{Binding ToggleMagnifierCommand}" Style="{StaticResource FloatingButtonStyle}" ToolTip="放大镜"> <materialDesign:PackIcon Kind="Magnify" Width="25" Height="25" /> </Button> <Button Command="{Binding TogglePencilTechCommand}" Style="{StaticResource FloatingButtonStyle}" ToolTip="讲课粉笔模式,通过快捷键切换"> <materialDesign:PackIcon Kind="Pencil" Width="25" Height="25" /> </Button> <Button Command="{Binding ToggleCursorCommand}" Style="{StaticResource FloatingButtonStyle}" ToolTip="光标模式,通过快捷键切换"> <materialDesign:PackIcon Kind="CursorPointer" Width="25" Height="25" /> </Button> <Button Command="{Binding TogglePencilPaletteCommand}" Style="{StaticResource FloatingButtonStyle}" ToolTip="画笔-颜色"> <!-- 推荐使用调色板图标 --> <materialDesign:PackIcon Kind="Palette" Width="25" Height="25" /> </Button> </StackPanel> </Grid> </Window>

操作系统级别函数

public static CyberWin_FloatingToolbarWindow _instance; //2025-12-15 // Windows API 常量(用于设置顶层窗口) private const int HWND_TOPMOST = -1; private const uint SWP_NOSIZE = 0x0001; private const uint SWP_NOMOVE = 0x0002; private const uint SWP_NOACTIVATE = 0x0010; // 不激活窗口,关键:避免抢占焦点 // Windows API 声明(设置窗口位置和层级) [DllImport("user32.dll")] private static extern bool SetWindowPos(IntPtr hWnd, int hWndInsertAfter, int X, int Y, int cx, int cy, uint uFlags); // Windows API 声明(设置窗口扩展样式,禁用焦点) [DllImport("user32.dll")] private static extern int SetWindowLong(IntPtr hWnd, int nIndex, int dwNewLong); [DllImport("user32.dll")] private static extern int GetWindowLong(IntPtr hWnd, int nIndex); private const int GWL_EXSTYLE = -20; private const int WS_EX_NOACTIVATE = 0x08000000; // 窗口不接收激活焦点 private const int WS_EX_TOOLWINDOW = 0x00000080; // 工具窗口,不在任务栏显示(可选,增强体验)

修改软件标题

// 修改窗口标题的API [DllImport("user32.dll", CharSet = CharSet.Unicode, SetLastError = true)] private static extern bool SetWindowText(IntPtr hWnd, string lpString);

阿雪技术观


在科技发展浪潮中,我们不妨积极投身技术共享。不满足于做受益者,更要主动担当贡献者。无论是分享代码、撰写技术博客,还是参与开源项目维护改进,每一个微小举动都可能蕴含推动技术进步的巨大能量。东方仙盟是汇聚力量的天地,我们携手在此探索硅基生命,为科技进步添砖加瓦。

Hey folks, in this wild tech - driven world, why not dive headfirst into the whole tech - sharing scene? Don't just be the one reaping all the benefits; step up and be a contributor too. Whether you're tossing out your code snippets, hammering out some tech blogs, or getting your hands dirty with maintaining and sprucing up open - source projects, every little thing you do might just end up being a massive force that pushes tech forward. And guess what? The Eastern FairyAlliance is this awesome place where we all come together. We're gonna team up and explore the whole silicon - based life thing, and in the process, we'll be fueling the growth of technology.

版权声明: 本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若内容造成侵权/违法违规/事实不符,请联系邮箱:809451989@qq.com进行投诉反馈,一经查实,立即删除!
网站建设 2026/3/21 13:47:15

Qwen3-VL-8B入门教程:快速构建你的第一个多模态AI应用

Qwen3-VL-8B入门教程&#xff1a;快速构建你的第一个多模态AI应用 在电商客服对话框里&#xff0c;用户上传一张包包的照片&#xff0c;随口问&#xff1a;“这包是真皮的吗&#xff1f;适合通勤背吗&#xff1f;”——如果系统只能“看图识物”却无法结合语义推理&#xff0c;…

作者头像 李华
网站建设 2026/4/2 4:29:11

无需高端显卡!Stable Diffusion 3.5 FP8版显著降低显存占用,推理提速50%

无需高端显卡&#xff01;Stable Diffusion 3.5 FP8版显著降低显存占用&#xff0c;推理提速50% 在生成式AI迅猛发展的今天&#xff0c;一个看似矛盾的需求正日益凸显&#xff1a;用户既希望获得高质量、高分辨率的图像生成能力&#xff0c;又不愿被昂贵的硬件门槛所束缚。尤其…

作者头像 李华
网站建设 2026/3/28 6:59:41

30分钟构建pickle错误自动修复工具

快速体验 打开 InsCode(快马)平台 https://www.inscode.net输入框内输入如下内容&#xff1a; 开发一个轻量级的pickle错误自动修复工具原型。功能要求&#xff1a;1)监控指定目录的.pkl文件 2)自动尝试加载并检测错误 3)对weights only load failed错误实施预设修复方案 4)生…

作者头像 李华
网站建设 2026/4/2 23:38:13

电商公司如何用抖音直播录制工具提升运营效率

快速体验 打开 InsCode(快马)平台 https://www.inscode.net输入框内输入如下内容&#xff1a; 开发一个面向电商运营的抖音直播录制分析工具&#xff0c;除基本录制功能外&#xff0c;需要额外实现&#xff1a;1.自动生成直播话术文字稿 2.标记高互动时间点 3.统计礼物和评论数…

作者头像 李华
网站建设 2026/3/24 9:22:42

transformer模型详解:gpt-oss-20b的结构设计与性能优势

GPT-OSS-20B&#xff1a;轻量级高性能开源大模型的架构突破与实践价值 在生成式AI迅猛发展的今天&#xff0c;一个现实问题日益凸显&#xff1a;像GPT-4这样的顶尖闭源模型虽然能力强大&#xff0c;但其高昂的调用成本、严格的访问限制以及数据隐私隐患&#xff0c;让许多中小企…

作者头像 李华