![]() It has never been a problem for me, but you can extend the code to check for multiple screens if you need. ![]() ![]() This happens also if you use multiple screens and you don't have the cursor in the main one. If the cursor is detected outside the main screen, it'll be reset at its center. The cursor is moved back and forth, so it always remains in the same spot and does not go outside the screen. In order to avoid disturbing the user if he's using the PC, the mouse is moved only if its position remained the same since the last time. The application periodically checks the mouse position and simulates a mouse moving. The user can choose if showing the tray bar icon to make it completely invisible. Once started, the application is minimized to the tray bar and runs in background. In this way, you don't have to remember to move the mouse every now and them and you can concentrate on the demo. My typical use case is for running demos in fairs or in front of customers, when you cannot move the mouse and you don't want the laptop to automatically lock the screen. ![]() It may seem useless at a first glance, but I use it quite often on company laptops where the power options are locked and cannot be modified. It's written in C# using Visual Studio 2017. This small GUI application simulates a periodical user input by automatically moving the mouse cursor. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |