New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Apps and Games Discussion of applications and games available for Mac OS X.

Keyboard > Mouse Click


Post Reply New Thread Subscribe

 
Thread Tools
Keltigern

 
Member Since: Sep 02, 2010
Posts: 8
Keltigern is on a distinguished road

Keltigern is offline
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
QUOTE Thanks
McYukon

 
McYukon's Avatar
 
Member Since: May 14, 2009
Location: Near Whitehorse, Yukon
Posts: 2,053
McYukon is a splendid one to beholdMcYukon is a splendid one to beholdMcYukon is a splendid one to beholdMcYukon is a splendid one to beholdMcYukon is a splendid one to beholdMcYukon is a splendid one to beholdMcYukon is a splendid one to beholdMcYukon is a splendid one to behold
Mac Specs: 2012 MBP i7 2.7 GHz 15" Matte - 16 GB RAM - 120 GB Intel SSD - 500 GB DataDoubler Mac OS 10.9

McYukon is offline
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.
QUOTE Thanks
Keltigern

 
Member Since: Sep 02, 2010
Posts: 8
Keltigern is on a distinguished road

Keltigern is offline
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.
QUOTE Thanks
McYukon

 
McYukon's Avatar
 
Member Since: May 14, 2009
Location: Near Whitehorse, Yukon
Posts: 2,053
McYukon is a splendid one to beholdMcYukon is a splendid one to beholdMcYukon is a splendid one to beholdMcYukon is a splendid one to beholdMcYukon is a splendid one to beholdMcYukon is a splendid one to beholdMcYukon is a splendid one to beholdMcYukon is a splendid one to behold
Mac Specs: 2012 MBP i7 2.7 GHz 15" Matte - 16 GB RAM - 120 GB Intel SSD - 500 GB DataDoubler Mac OS 10.9

McYukon is offline
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.
Quote:
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.
QUOTE Thanks
Keltigern

 
Member Since: Sep 02, 2010
Posts: 8
Keltigern is on a distinguished road

Keltigern is offline
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
QUOTE Thanks
McYukon

 
McYukon's Avatar
 
Member Since: May 14, 2009
Location: Near Whitehorse, Yukon
Posts: 2,053
McYukon is a splendid one to beholdMcYukon is a splendid one to beholdMcYukon is a splendid one to beholdMcYukon is a splendid one to beholdMcYukon is a splendid one to beholdMcYukon is a splendid one to beholdMcYukon is a splendid one to beholdMcYukon is a splendid one to behold
Mac Specs: 2012 MBP i7 2.7 GHz 15" Matte - 16 GB RAM - 120 GB Intel SSD - 500 GB DataDoubler Mac OS 10.9

McYukon is offline
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.
QUOTE Thanks
Keltigern

 
Member Since: Sep 02, 2010
Posts: 8
Keltigern is on a distinguished road

Keltigern is offline
I have it all sorted now.

I used Cliclick and fastscript

Thanks for help anyway
QUOTE Thanks

Post Reply New Thread Subscribe


« Design software | Photoshop opens pix in strange sizes »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
New 21.5" iMac, Mouse and Keyboard won't work together. What's going on? Pabsy Apple Desktops 1 12-15-2009 12:25 PM
Applescript Mouse Click and Other ... claudiogi OS X - Development and Darwin 1 12-18-2008 12:03 AM
Mouse & Keyboard Problem macdreamer08 Apple Desktops 11 09-26-2008 01:38 AM
Using wireless keyboard and mouse during restoration. rajusaha Apple Desktops 9 09-21-2008 12:29 AM
keyboard and mouse question chos_stain Other Hardware and Peripherals 4 08-17-2008 05:20 PM

All times are GMT -4. The time now is 02:50 PM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?