首页 文章
  • 0 votes
     answers
     views

    使用SendInput进行鼠标模拟

    我做了一些自动处理的应用程序 .它在C#中使用了SendInput我在我的电脑上测试了这个代码,它运行正常 .但现在我在其他PC上安装了该应用程序,但它无法正常工作 .我附上了一些代码片段以供理解 . public static void ClickLeftMouseButton() { INPUT mouseDownInput = new INPUT(); ...
  • 2 votes
     answers
     views

    SendInput - (鼠标移动模拟)

    我一直在尝试模拟一个过程中的一系列输入 . 我唯一没有成功的是鼠标移动 . 我在网上找到了最接近的赌注: bool mouse_move(int x, int y) { INPUT input; input.type = INPUT_MOUSE; input.mi.mouseData = 0; input.mi.time = 0; input.mi.dx =...
  • 1 votes
     answers
     views

    如何使用C#/ pinvoke将SendInput发送到WinSta0 \ Winlogon桌面

    我正在用C#编写一个远程控制应用程序,用于一套技术支持工具 . 一切正常,但我无法将SendInput用于Winlogon桌面 . 我成功检测到从Default到Winlogon的更改,我可以切换到它并捕获屏幕截图 . 它只是不接受SendInput函数 . 我知道这是可能的,因为TeamViewer会这样做,并且他们的清单中没有uiAccess = true . 他们似乎正在使用相同的流程 . ...
  • 2 votes
     answers
     views

    使用SendInput模拟XButton输入

    我使用SendInput模拟鼠标输入,到目前为止我可以成功模拟左,右和中间点击 . 但是,我似乎无法正确模拟xButton . 我正在定义一个输入结构如下: Win32.INPUT i = new Win32.INPUT(); i.type = Win32.INPUTF.MOUSE; i.mi.dx = 0; i.mi.dy ...
  • 3 votes
     answers
     views

    使用带C#的SendInput模拟按键事件

    遵循此主题的建议:distinguish between keyboard's Real and Virtual key presses 我'm trying to create a program, that will send keyboard'使用 SendInput() 方法进行按键事件 . However, the problem is that when I try to simula...
  • 1 votes
     answers
     views

    控制发送输入鼠标移动速度

    使用Sendinput方法时是否可以控制鼠标指针的速度? 例如,这是我的代码: public static void ClickMouseDOWN(int x, int y) { INPUT mouseInput = new INPUT(); mouseInput.type = (int)InputType.INPUT_MOUSE; mous...
  • 0 votes
     answers
     views

    从变量发送输入存储和使用

    我对c很新,并且想知道是否有任何可以协助我正在进行的项目 . 在我的代码中,我正在从一个文件中收集信息,该文件包含该程序的信息,然后是当该信息的标准为真时发送的密钥 . 提出一个想法,这是我的文件的样子: 0 0 1 0 235 10 0x21 PG_UP name1 1 0 1 0 260 10 0x22 PG_DN name2 2 0 1 1 235 55 0x23 END name3 3 1...
  • -3 votes
     answers
     views

    SendInput的鼠标位置值

    我正在开发一个C#应用程序来使用Winuser.h中声明的SendInput来模拟鼠标移动 . 我对SendInput的调用工作正常,我可以在屏幕上移动鼠标 . 然后我尝试使用以下方法记录用户鼠标移动: [DllImport("user32.dll")] public static extern bool GetCursorPos(ref POINT lpPoint);...

热门问题