MattNorman
Well-known member
- Joined
- May 22, 2021
- Messages
- 98
- Programming Experience
- 1-3
I am using keyboard and mouse simulation as part of a windows service that is essentially selecting different open windows and exporting data every 3 seconds.
This is all working fine however i'm not sure how I would go about stopping the service/thread when it is constantly simulating keyboard/mouse input.
The only way I have come up with is to have a state stored in the database that the thread checks on each run to see if it has been set to disabled.
That should work fine but would mean opening the app from another PC/server to change that flag in the database.
Can anyone suggest any way of achieving this on the servers that is running the service?
This is all working fine however i'm not sure how I would go about stopping the service/thread when it is constantly simulating keyboard/mouse input.
The only way I have come up with is to have a state stored in the database that the thread checks on each run to see if it has been set to disabled.
That should work fine but would mean opening the app from another PC/server to change that flag in the database.
Can anyone suggest any way of achieving this on the servers that is running the service?