试图从作为 SSH(使用 paramiko)的 ubuntu 触发“打印屏幕”到某些 Linux 机器和 Windםws。
有谁知道如何从 cmd 触发(我可以使用 paramiko、exe_cmd 基础设施将结果从复制位置复制到我制作的)打印屏幕。再次,这是窗户
试图从作为 SSH(使用 paramiko)的 ubuntu 触发“打印屏幕”到某些 Linux 机器和 Windםws。
有谁知道如何从 cmd 触发(我可以使用 paramiko、exe_cmd 基础设施将结果从复制位置复制到我制作的)打印屏幕。再次,这是窗户
此 VB.Net 模拟按下的 Print Screen 键。
在桌面上创建 PrintScreen.vb。
Imports System.Runtime.InteropServices
Imports System.Windows.Forms
Public Module SendWinKey
Const KEYEVENTF_KEYDOWN As Integer = &H0
Const KEYEVENTF_KEYUP As Integer = &H2
Declare Sub keybd_event Lib "User32" (ByVal bVk As Byte, ByVal bScan As Byte, ByVal dwFlags As UInteger, ByVal dwExtraInfo As UInteger)
Public Sub Main()
keybd_event(CByte(Keys.PrintScreen), 0, KEYEVENTF_KEYDOWN, 0) 'press the print screen key down
keybd_event(CByte(Keys.PrintScreen), 0, KEYEVENTF_KEYUP, 0) 'release the print screen key
End Sub
End Module
然后输入
C:\Windows\Microsoft.NET\Framework\v4.0.30319\vbc "%userprofile%\desktop\PrintScreen.vb" /out:"%userprofile%\Desktop\PrintScreen.exe" /target:winexe