【问题标题】:print screen in windowsWindows 中的打印屏幕
【发布时间】:2018-10-07 16:11:51
【问题描述】:

试图从作为 SSH(使用 paramiko)的 ubuntu 触发“打印屏幕”到一些 Linux 机器和 windםws。

有谁知道如何从 cmd 触发(我可以使用 paramiko,exe_cmd 基础设施将结果从复制位置复制到我制作的)打印屏幕。 同样,这是窗户

【问题讨论】:

    标签: windows cmd paramiko printscreen


    【解决方案1】:

    这个 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
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2015-03-20
      • 1970-01-01
      • 1970-01-01
      • 2014-12-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多