如何捕获鼠标路径 [英] How to capture mouse path
问题描述
我需要捕获鼠标路径并重放录制的鼠标路径。但我需要跟踪鼠标而不捕获屏幕。我需要一个源代码来做到这一点。我知道我可以使用x和y坐标跟踪鼠标路径,但问题是当我得到那个坐标时我如何让它像我们在视频或音频中那样重放鼠标路径(这意味着我们录制音频和视频和重播它)我需要使窗体应用程序来跟踪鼠标路径。如果有人知道如何做到这一点,请转发me.thx ..........
i need to capture mouse path and replay that recorded mouse path. but i need to track the mouse without capturing screen. i need a source code to do that. i know that i can track the mouse path using x and y coordinates, but the problem is when i am getting that coordinates and how do i make it to replay that mouse path like we do in video or audio( that mean we record audio and video and replay it) i need to make windows form application to track the mouse path. please if anyone know how to do this,convey me.thx..........
推荐答案
您可以在本文中使用库:全球鼠标和键盘库
用于跟踪和修复鼠标位置我会使用间隔为50毫秒的计时器。在每个刻度线中,当前位置存储在列表中。要重放移动,另一个计时器以相同的间隔启动,从列表中获取下一个位置并将其设置为当前鼠标位置(使用上面的库)
You could use library in this article: Global Mouse and Keyboard Library
For tracking and repalying mouse position I would use timer with interval of 50ms or something. In each tick current position is stored in a list. To replay movement another timer is started with same interval which gets next position from list and sets it as current mouse position(using library above)
这篇关于如何捕获鼠标路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!