Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

iCode

macrumors newbie
Original poster
Aug 4, 2005
12
0
Finland
Hi, I was just wondering if it's possible to send key events in an Objective-C app to trigger an another program's global hotkey? I've tried googling and searching these forums but couldn't find an answer.

Thanks!
 

HiRez

macrumors 603
Jan 6, 2004
6,265
2,630
Western US
Assuming you have no control over the other app, not that I know of in terms of passing the value from Objective-C. However, you could probably call an AppleScript snippet that would simulate a pushed key on the other app.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.