Autohotkey is a light solution, with the script:
*MButton::SendInput {Click 2}
You can even compile it to an executable, which weighs about 200KB in disk space and 2.2MB1 in memory. It's also quite easy to add to startup, and is portable.
I personally prefer to use X-Mouse Button Control due to ease of configuration. Simply assign the Middle Button
to Double Click Drag
. The advantage is it keeps the second click held as long as the middle button is held, which ensures greater compatibility - it should perform exactly the same way as double clicking normally.
Click for full size
It's possible to simulate such an action in AHK, but more difficult - if you wish for such an AHK solution, you can let me know in a comment. The above AHK script will not respond correctly to holding the button down - it will simply double click and release.
X-Mouse Button Control weighs about 3MB in disk space and 3MB1 in memory. It is also optionally portable.
Both AHK and XMBC can accomplish this, and both can be set to have application specific profiles. XMBC is more intuitive, if you wish to modify other mouse buttons without having to learn a scripting language, while AHK is undoubtedly more powerful. Both AHK and XMBC can simulate chains of keypresses, but AHK allows for more complex operations and decision making.
As an aside, AHK will trip PunkBuster (a certain anti-cheating system used by quite a few games), while XMBC will not - at least, at the moment.
1The memory usage is on my computer, Windows 7 x64. It may vary slightly from computer to computer, but the variation shouldn't be much.
I quite sure that it isn't possible to have a mouse function in the way you wanted it to, unless you could somehow find a pen tablet driver that is compatible with mice as well as tablets while having the same functionality between the two (which I'm quite sure doesn't exist). The closest I'd say you are to getting touchscreen functionality is actually getting a touch screen- or the next best thing, a tablet, like this one here: http://www.wacom.com/products/pen-tablets/bamboo/bamboo-capture. They come in varying sizes and prices, and provide touchscreen-like capabilities. The tablet that I linked to (above) is compatible with Windows Touch input and therefor can be programed to function exactly like a touch display.
Best Answer
You could use xnee to record your mouse action and replay it later when needed.
There's a gui for it called
gnee
. I didn't have very good results with it last time i tried but that was a long time ago, things might have changed since then.Here's what i used for the recording:
This lets you move around and prepare things before starting. Click
ok
when you're ready, wait 1s and do your action. Ctrl-c when you're done.Then you can replay it with:
You can even replay it faster than the original (!)
You'll probably have to edit out the end of
cnee.data
to get rid of what you did in between your action and the Ctrl-c.