Global tweaks for Expert Mouse and others: Drag lock with AutoHotkey

When I use the trackball and onscreen keyboard, I use dwell clicking for almost everything–except precise or continuous  dragging. The drag function in Point N Click is fine for most things, and  the “repeat drag with movement required” combination is excellent for playing Words with Friends or something. But it always times out eventually, and if I don’t want that, I need a solid drag lock button (and a pencil to press it).

You can turn on Click Lock for the left button in Windows (Control Panel > Mouse >  Turn on ClickLock), but I wanted to use the extra button on my trackball so nothing would interfere with Point N Click’s operation.

; Simple drag lock
XButton1::
GetKeyState, state, LButton
if state = U
{
Click down LButton
}
else
{
Click up LButton
}
return

; Easier context menu clicks
RButton::
Send, {RButton}
Sleep, 3000
Send, {LButton}
return

I also wanted to make the right button more logical to me. When I click the right button, it’s almost always to select from a context menu. So in the second part, the right button brings up the menu, waits so you can point to your choice, then performs a left click. That script will work with Point N Click, which means you don’t have to use their button for it, which means more screen space for you.

Advertisements
This entry was posted in Disability, Technology and tagged , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s