Hi I have tried and expended a lot of time looking for a solution, but I cant do it. So I have a request for anyone good with programming skills on a mac.
I need a simple app that emulates mouse clicks. I have tendonitis and cant click with my right hand. I move the mouse with the right hand and use the keyboard buttons with my left to emulate mouse clicks. I have made a very simple program with Autoit on Windows to do this for myself. It works great. Code is below.
On OSX (on Mavericks now) which is what I use primarily. I can do left, right and double click through F2, F3, F4 respectively on Keyboard Maestro, but I cant use the hold left button down and drag things. I have tried the accessibility options for the mouse to use keys and that does work to drag most things. Only drags some. I have pasted code of my Autoit Version below. If you can please make a script and send it to me with source code. I'll test it out and if it works to expectations, Ill be happy to send you the donation through paypal. At this point I just need a good working solution. Thanks.
I need a simple app that emulates mouse clicks. I have tendonitis and cant click with my right hand. I move the mouse with the right hand and use the keyboard buttons with my left to emulate mouse clicks. I have made a very simple program with Autoit on Windows to do this for myself. It works great. Code is below.
On OSX (on Mavericks now) which is what I use primarily. I can do left, right and double click through F2, F3, F4 respectively on Keyboard Maestro, but I cant use the hold left button down and drag things. I have tried the accessibility options for the mouse to use keys and that does work to drag most things. Only drags some. I have pasted code of my Autoit Version below. If you can please make a script and send it to me with source code. I'll test it out and if it works to expectations, Ill be happy to send you the donation through paypal. At this point I just need a good working solution. Thanks.
Code:
Opt('MouseCoordMode', 0)
Opt('PixelCoordMode', 0)
HotKeySet('{END}', 'Quit')
HotKeySet('{f2}', 'Lclick')
HotKeySet('{f3}', 'Rclick')
HotKeySet('{f4}', 'Ldown')
HotKeySet('{f5}', 'double')
$Ldown = False
#RequireAdmin
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
While 1
Sleep(100)
If $ldown Then
ToolTip("Ldown", 0, 0)
Else
ToolTip("", 0, 0)
EndIf
WEnd
Func Lclick()
CheckLdown()
MouseClick("left")
EndFunc
Func Rclick()
CheckLdown()
MouseClick("right")
EndFunc
Func CheckLdown() ;If Left click is down, releases it.
If $Ldown Then
LDown()
EndIf
EndFunc
Func Double()
CheckLdown()
MouseClick("left")
MouseClick("left")
EndFunc
Func Ldown()
If $ldown Then
$ldown = False
Mouseup("left")
Else
$ldown = True
MouseDown("left")
EndIf
EndFunc
Func Quit()
Exit
EndFunc ;==>Quit