尝试从ubuntu触发SSH(使用paramiko)到某些Linux机器并弹出窗口的“打印屏幕”。
有人知道如何从cmd触发(我可以将结果从复制位置复制到使用我制作的paramiko,exe_cmd基础设施)打印屏幕。 再次,这是Windows
答案 0 :(得分:0)
此VB.Net模拟被按下的“打印屏幕”键。
在桌面上创建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