Results 1 to 7 of 7
  1. #1


    Member Since
    Sep 02, 2010
    Posts
    8
    Keyboard > Mouse Click
    when i used windows i used AutoHotKey to allow me to press a key and it would jump to co-ordinate that i had set and perform a mouse click.

    I was wondering is there any functionality on a mac?

    Thanks

  2. #2

    McYukon's Avatar
    Member Since
    May 14, 2009
    Location
    Near Whitehorse, Yukon
    Posts
    2,052
    Specs:
    2012 MBP i7 2.7 GHz 15" Matte - 16 GB RAM - 120 GB Intel SSD - 500 GB DataDoubler Mac OS 10.9
    Welcome to M-F!

    Have a look at QuickKeys, it can click and do a lot of other things.
    Startly - QuicKeys4 for Mac OS X
    It could be done with Applescript but then you would have no way of calling it with a keyboard shortcut.
    Use the reputation system if a post helps you!
    Mac Forums IRC Channel - Help build it by hanging out with us
    The next sentence is true. The previous sentence is false.

  3. #3


    Member Since
    Sep 02, 2010
    Posts
    8
    i have set up and installed Quickeys. it works perfectly.

    is there no free alternative to it. i dont really want to pay for it to do such basic task.

  4. #4

    McYukon's Avatar
    Member Since
    May 14, 2009
    Location
    Near Whitehorse, Yukon
    Posts
    2,052
    Specs:
    2012 MBP i7 2.7 GHz 15" Matte - 16 GB RAM - 120 GB Intel SSD - 500 GB DataDoubler Mac OS 10.9
    Should have looked at the price first, wow kinda expensive.

    The free version
    Download Spark for Mac, free hotkey shortcuts manager.

    Open it an make a new applescript shortcut (Command+1).
    Paste in this code in the source tab and press the check button. The code will color format itself.
    You will need to change the coordinates/application depending on where you want to use it.
    The coordinates can be found by using the screenshot tool, command+shift+4
    The top coordinate is the first in the applescript, bottom is the second.
    tell application "System Events"
    try
    tell application process "Safari"
    click (click at {800, 500})
    end tell
    end try
    end tell
    Add the shortcut you want to use for this script, it's name and create it.
    The way the script is now it will on MacUpdate on the application description page click on the image to show it in large.
    Use the reputation system if a post helps you!
    Mac Forums IRC Channel - Help build it by hanging out with us
    The next sentence is true. The previous sentence is false.

  5. #5


    Member Since
    Sep 02, 2010
    Posts
    8
    hmm.. i followed your guide and i have set the shortcut to be f1 but it doesnt do anything.

    I am using Safari as you set in the script

    it seems to switch over the safari but doesnt click

  6. #6

    McYukon's Avatar
    Member Since
    May 14, 2009
    Location
    Near Whitehorse, Yukon
    Posts
    2,052
    Specs:
    2012 MBP i7 2.7 GHz 15" Matte - 16 GB RAM - 120 GB Intel SSD - 500 GB DataDoubler Mac OS 10.9
    Try this,
    Code:
    tell application "Safari"
    	activate
    end tell
    
    tell application "System Events"
    	try
    		tell application process "Safari"
    			delay 1
    			click at {800, 500}
    		end tell
    	end try
    end tell
    I've modified the script a bit, it will now switch to Safari first and then click.
    I also found out that I was double clicking in the first script I posted, so I fixed that too.
    Use the reputation system if a post helps you!
    Mac Forums IRC Channel - Help build it by hanging out with us
    The next sentence is true. The previous sentence is false.

  7. #7


    Member Since
    Sep 02, 2010
    Posts
    8
    I have it all sorted now.

    I used Cliclick and fastscript

    Thanks for help anyway

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Keyboard not working, left click behaves like right click
    By rom.rej in forum Apple Notebooks
    Replies: 4
    Last Post: 06-05-2012, 08:51 PM
  2. Replies: 9
    Last Post: 09-16-2009, 05:59 PM
  3. Need to assign mouse click to keyboard key
    By mitchww in forum OS X - Operating System
    Replies: 1
    Last Post: 05-07-2009, 10:50 PM
  4. Right Click w/ Mouse
    By Vinny Vegas in forum Switcher Hangout
    Replies: 2
    Last Post: 01-06-2009, 11:05 AM
  5. Replies: 1
    Last Post: 04-10-2006, 11:38 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •