Second Mouse Cursor

Post your working scripts, libraries and tools
lord_ne
Posts: 1
Joined: 24 Dec 2016, 20:57

Second Mouse Cursor

01 Oct 2017, 22:05

This is a script I wrote that adds a second cursor to Windows. The cursor is controlled using a Joystick. Both right and left clicking are supported, but clicking and dragging is not. The clicks can be sent one of two ways, each of which have their own pros and cons. The first option is using ControlClick. This option has the advantage of usually being able to send a click without activating the target window, but the disadvantage of not always working properly, not to mention being an absolute nightmare to code. One the other hand, using MouseClick has the advantage of working far more reliably, but the disadvantage of requiring the target window to be activated, at least briefly.

Code: [Select all] [Expand] [Download] (Second_Cursor.ahk)GeSHi © Codebox Plus

User avatar
Delta Pythagorean
Posts: 239
Joined: 13 Feb 2017, 13:44
Location: Equestria

Re: Second Mouse Cursor

04 Oct 2017, 18:35

Interesting way to move the second cursor. Maybe allow an arrow key movement? Maybe numpad? Still looks great! (Btw, add the icon for the cursor in the forum post ;D)
User avatar
evilC
Posts: 3461
Joined: 27 Feb 2014, 12:30

Re: Second Mouse Cursor

09 Oct 2017, 05:49

BTW, if you used Interception, you could control the 2nd cursor with a 2nd mouse.
This is not normally possible, because RawInput can differentiate between devices, but cannot block (So the 2nd mouse would still move the main pointer), and Hooks cannot differentiate between devices (So you could not have the 2nd mouse only move the 2nd cursor), but can block.

Interception can differentiate between devices AND can block on a per-device basis.

Return to “Scripts and Functions”

Who is online

Users browsing this forum: Delta Pythagorean and 11 guests