创建虚拟鼠标指针 [英] To create virtual mouse pointer

查看:209
本文介绍了创建虚拟鼠标指针的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好..

我需要你的指导.正在拥有包含购买和出售"按钮的第三方应用程序.给定特定条件如果满足条件,则需要同时,以相同的动作同时单击购买和出售"按钮.到现在为止,我还是将鼠标光标移至购买"按钮并执行了左键单击.但同时我也需要单击卖出"按钮.
有什么方法可以创建另一个鼠标指针(虚拟鼠标指针),以便一个鼠标指针可以同时单击购买"按钮和另一个出售"按钮.另一方面,先单击购买"按钮,一段时间后再单击销售"按钮,因为要求不符合要求,因此不被接受.请给我建议一些想法..

谢谢..

Hello Everyone..

I need bit guidence from u people. Am having third party application that contains BUY & SELL buttons. Given certain conditions If condition is meet, I need to left click on both BUY & SELL buttons simultaneously at the same time, same movement. Till now i did, to move the mouse cursor towards the BUY button & perform left click. But at the same time i need to click on SELL button also.
Is there any way to create another mouse pointer(Virtual mouse pointer), so that one mouse pointer can click on BUY button & other on SELL button at the same time. On other hand, First click on BUY button & after some time then click on SELL button is not accepted because requirement doesn''t meet up. Please suggest me some ideas..

Thank you..

推荐答案

请参阅我对问题的评论.

如果我理解正确,我认为您不能再使用其他鼠标指针.您可以使用功能SendInput:
在较低级别上模拟输入事件. http://msdn.microsoft.com/zh-我们/library/windows/desktop/ms646310%28v=vs.85%29.aspx [
Please see my comments to the question.

I don''t think you can have yet another mouse pointer, if I understand you correctly. You can simulate input events on low level using the function SendInput:
http://msdn.microsoft.com/en-us/library/windows/desktop/ms646310%28v=vs.85%29.aspx[^].

This method allows you to simulate input on low level, pretty much as if it comes from a keyboard or a pointing device (mouse) driver.

—SA


即使您可以做到,该事件也不会同时发生.

您可以尝试将消息发布/发送到应用程序,而不是模拟按钮的按下.

我很好奇为什么您需要同时按下"两个按钮.
Even if you could do it, the event will not be simultaneous.

You could try to Post/Send Messages to the application instead of simulating the button press.

I''m curious why do you need to "press" both buttons at the same time.


这篇关于创建虚拟鼠标指针的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆