• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

$10 reward through paypal for making this program

rimmi2002

Member
Hi I have tried and expended a lot of time looking for a solution, but I can’t 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 can’t 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 can’t 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, I’ll 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
 
Go to System Preferences -> Accessibility ->Mouse & Trackpad -> Enable Mouse Keys and you can control the cursor with the keyboard.
 
Go to System Preferences -> Accessibility ->Mouse & Trackpad -> Enable Mouse Keys and you can control the cursor with the keyboard.

I know that part. Don't want to do it that way. I control the cursor with the mouse, doing mouse keys puts much more strain on the wrist. So I control the cursor with a nice ergonomic mouse, its the clicks that is a problem. I do it with my left hand. On the mac, I can get every click to work with keyboard maestro but it is the "drag" function which is a problem...basically anything that involves holding the left click down move the curson with it down and releasing left click.

I need a button when you press once it holds the left button down and when you click again it releases it, Like I have in my autoit for windows. The left down from mouse keys on apple works for somethings and not for others.
 
Last edited:
I know that part. Don't want to do it that way. I control the cursor with the mouse, doing mouse keys puts much more strain on the wrist. So I control the cursor with a nice ergonomic mouse, its the clicks that is a problem. I do it with my left hand. On the mac, I can get every click to work with keyboard maestro but it is the "drag" function which is a problem...basically anything that involves holding the left click down move the curson with it down and releasing left click.

I need a button when you press once it holds the left button down and when you click again it releases it, Like I have in my autoit for windows. The left down from mouse keys on apple works for somethings and not for others.

Mouse keys does that. You can still use your mouse.
 
Switch control will give you finer adjustments.

thanks for the input. I tried switch control and mouse keys again. Neither is nearly as convenient as my script for autoit on Windows. I guess there is a possibility since mouse clicks are handled differently in OSX vs. Windows that these controls that i want might not be possible to program in Mac. Even Keyboard Maestro doesn't allow it. I figured if anyone with a better programming sense than me as I only know basic programming could do the same thing on OSX that I can do with windows 7. Thanks,
 
Back
Top