[英]Win32API Mouse vs Real Mouse Click
I have recently started using win32api to simulate mouse events and was wondering if it was at all detectable? 我最近开始使用win32api来模拟鼠标事件,并且想知道是否可以检测到它?
For example, does the api follow the exact same process/run the exact same commands as if done when using a real mouse - or are there some slight differences which can be detected? 例如,api是否遵循完全相同的过程/运行完全相同的命令,就像使用真正的鼠标一样?或者是否可以检测到一些细微的差异? Furthermore, is this the same case with win32com SendKeys (via Shell Script/Python)?
此外,win32com SendKeys是否也是如此(通过Shell Script / Python)?
I ask, because in the past I have had a few applications detect the Java robot library - but they all seem to work fine when using the Python win32api. 我问,因为过去我有一些应用程序可以检测Java机器人库-但是在使用Python win32api时它们似乎都可以正常工作。 Thanks.
谢谢。
The SendInput
function will insert input events into the same queue as a hardware device but the events are marked with a LLMHF_INJECTED
flag that can be detected by hooks. SendInput
函数会将输入事件插入到与硬件设备相同的队列中,但是这些事件用LLMHF_INJECTED
标志标记,该标志可以通过挂钩检测。 To avoid this flag you probably have to write a custom driver. 为了避免此标志,您可能必须编写自定义驱动程序。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.