![]() ![]() So to start, I have a very basic class: class WINAPI_SUPERSEDED Nonetheless, it still works (although I cannot say for sure whether it will be working in future releases of Windows). It was superseded and Microsoft recomends using SendInput instead. Mouse_event is the very basic function that is only able to set the mouse coordinates. When using WinAPI to set the cursor position, there are two ways you can go: NET way (class instance -> method call) but at the end you get more control than you would expect. It requires some more work compared to the regular. If that's the case, WinAPI is your solution. ![]() And in some cases you don't want this extra reference. One thing to mention about this type of position setting is that Cursor requires a reference to. Of course, here 0 and 0 are the absolute coordinates for the mouse cursor on the screen. After all, there is the built-in Cursor class that lets you do that by executing a simple line of code: Cursor.Position = new (0, 0) NET Framework shouldn't be that big of a problem. Setting the mouse cursor position on a Windows machine with the help of. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |