Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jonfriesen/autoclickatlocation
On key shortcut will get cursor location and click after a user set delay repeatedly
https://github.com/jonfriesen/autoclickatlocation
Last synced: 24 days ago
JSON representation
On key shortcut will get cursor location and click after a user set delay repeatedly
- Host: GitHub
- URL: https://github.com/jonfriesen/autoclickatlocation
- Owner: jonfriesen
- Created: 2013-03-17T16:37:59.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-03-17T17:02:04.000Z (over 11 years ago)
- Last Synced: 2023-05-14T20:10:18.786Z (over 1 year ago)
- Language: C#
- Size: 445 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
AutoClickAtLocation
===================The backstory to this quick little program is over a conversation with a friend whos been playing the 1995 classic
Command & Conquer Red Alert. He was talking about how building units does not allow for queueing and he found it
annoying that to build a sizeable army he'd have to be constantly clicking. Thus I ripped out this little program.Usage:
When the user presses Ctrl+F the cursor location will be noted and after the user set delay, this happens repeatedly
until the user presses Ctrl+G.How it Works:
Using a basic GUI on key event (monitored by P/Invoke keyboard hook) the VirtualKeyboard class reaches out and sets
some static variables then starts an abandoned thread which reaches out and grabs the static variables that were set.The importances of the thread is to maintain the clicking, while leaving the original UI thread monitoring for the
key shortcut to stop clicking.On stop event the VirtualKeyboard class will set a static boolean which is read by the threaded click loop on every
iteration. When the loop is broken the thread finishes and is cleaned by the CLR garbage collection.