How can I simulate mouse moves (from point x,y to point a,b), ideally 10 pixels / second?
I found SetCursorPos function, but this function cannot move my cursor correctly.
My goal is to move the cursor over TWebBrowser component and read hints with OCR (and find text that I'm looking for).
PS: I'm using Delphi 7.
Related
Windows 7 appears to only support 48x48 pixel mouse cursors natively. My dad is half blind, so this isn't good enough.
Looking around a little, I see that there is High DPI Cursor Changer Beta on SourceForge. Unfortunately, it states that it is limited to Windows 8 and above. Even if he did have Windows 8, I still don't think it would be big enough.
I've been thinking about some other alternatives which might get the job done. One is to use AutoHotKey to track the mouse position and type, and using that information, put up a larger bitmap under the cursor that is displayed on a click through window.
This seems doable, but I would like it if I could invert the information beneath the cursor as the inverted mouse cursor does. I'm thinking that this would require using the DirectX API, which I'm totally unfamiliar with. As I don't have a whole lot of time to devote to this, it would be great if someone could point out some key concepts and API calls so that I can move through this project as fast as possible.
I've also looked into zooming in, but seems using that is also problematic as it requires that he get it in and out of that state and zoom in and out fairly easily, which he can't as he can't really touch type and his fingertips don't have very much sensation, making it hard to navigate the keyboard effectively.
If there are any other ideas, I'd be interested in hearing about them as well.
I haven't tried Bill Myers solution, so I think that the cursors are still the max. size, but check out Bill's link: https://www.bmyers.com/public/high_visibility_cursors.cfm
I searched a lot about finding a way to make me move the desktop cursor using OpenCV but all I found is some demos for people who already did it.
what I know is that the function setMouseCallback gives me the coordinates of the mouse and more but i need to give the mouse some positions to move into it.
So can anybody tell me how can i do it using OpenCV C++ ?
You cannot do this in OpenCV. OpenCV is a computer vision library focused around analysing and manipulating images and although it provides simple user interface (UI) elements do not get fooled into thinking it is a powerful user interaction tool.
Now, if you want to move the cursor in windows you can use SetCursorPos which I believe works on most versions:
SetCursorPos(X,Y)
e.g.
SetCursorPos(100, 200)
Is there any way to control more than one mouse, the first act as usual mouse while other would be treated as digitizer input. The problem is How to register each mouse to be treated differently and how using mousehook without capturing the whole mouse event.
I haven't write any code yet on this project, and I 'am just starting with collecting information and stuck with theses questions. I'm going to use Delphi 7
I do not know anything about it, but Multi-Touch Vista at CodePlex adds support for multiple mice.
Multi-Touch Vista is a user input management layer that handles input from various devices (touchlib, multiple mice, TUIO etc.) and normalises it against the scale and rotation of the target window. Now with multitouch driver for Windows 7.
http://multitouchvista.codeplex.com/
I'm creating an Illustrator plugin using Actionscript and I wanted that as soon as the mouse leaves the plugin window and is in the illustrator document it would record the mouse positions and get the value of the pixel in these positions using getPixel() but the problem is that I can't get mouse position if the cursor leaves the stage, so is there a solution for this problem or it just can't be done?
Can't be done. All you can do is listen for Event.MOUSE_LEAVE, but that isn't going to help you in your situation.
I need to compare two images together if any change happened mouse point to it
how to use mouse in opencv using visual c++
but I can't understnd the function can any one simplefied it to me
thnx
there is an sample called "LK demo" in opencv\samples
in that sample there is cvSetMouseCallback calls on_mouse function
i think it will be a good start for you