Re: Keystrokes for non-ascii letters (SOLVED)

2008-11-30 Thread Jean-Daniel Dupas
Le 30 nov. 08 à 01:02, Dave DeLong a écrit : Fantastic! I've gotten it to work, and it works beautifully! Thank you, James (and everyone else) for helping me with this. For archival purposes, here's my code: CGEventSourceRef eventSource = CGEventSourceCreate(kCGEventSourceStateHIDSyste

Re: Keystrokes for non-ascii letters (SOLVED)

2008-11-29 Thread Dave DeLong
Fantastic! I've gotten it to work, and it works beautifully! Thank you, James (and everyone else) for helping me with this. For archival purposes, here's my code: CGEventSourceRef eventSource = CGEventSourceCreate(kCGEventSourceStateHIDSystemState); CGEventRef keyEventDown = CGEventCreat

Re: Keystrokes for non-ascii letters

2008-11-29 Thread James W. Walker
On Nov 29, 2008, at 1:03 PM, Dave DeLong wrote: More questions! (wh =) ) I've abandoned the NSEvent approach, although it would've been nice if it had worked, and am now trying CGEventKeyboardSetUnicodeString. Here's my code: CGEventSourceRef eventSource = CGEventSourceCreate(k

Re: Keystrokes for non-ascii letters

2008-11-29 Thread Dave DeLong
More questions! (wh =) ) I've abandoned the NSEvent approach, although it would've been nice if it had worked, and am now trying CGEventKeyboardSetUnicodeString. Here's my code: CGEventSourceRef eventSource = CGEventSourceCreate(kCGEventSourceStateHIDSystemState); CGEventRef keyE

Re: Keystrokes for non-ascii letters

2008-11-29 Thread James W. Walker
On Nov 29, 2008, at 10:48 AM, Dave DeLong wrote: My goal now is to accept arbitrary strings and post the keyboard events for them. For ASCII characters, I can easily dispatch a CGEventRef. However, I want to be able to send non-ascii characters as well. Basically, any character that's v

Re: Keystrokes for non-ascii letters

2008-11-29 Thread Jean-Daniel Dupas
Le 29 nov. 08 à 19:34, Bill Bumgarner a écrit : On Nov 29, 2008, at 10:00 AM, Dave DeLong wrote: Can this be used for posting events that would get picked up by other applications? Nope. To be honest, I don't know how you post such events to another application -- specifically targeted t

Re: Keystrokes for non-ascii letters

2008-11-29 Thread Dave DeLong
The client application is running on an iPhone/iPod touch and is sending events to the server, which runs (as I mentioned) as an agent application on the desktop. I'm writing both. The purpose of the server application is to dispatch events to the system. These can be many different kinds

Re: Keystrokes for non-ascii letters

2008-11-29 Thread Bill Bumgarner
On Nov 29, 2008, at 10:00 AM, Dave DeLong wrote: Can this be used for posting events that would get picked up by other applications? Nope. To be honest, I don't know how you post such events to another application -- specifically targeted to another application. In general, Mac OS X main

Re: Keystrokes for non-ascii letters

2008-11-29 Thread Dave DeLong
An off-list reply pointed this one out to me as well, and I've been playing with it. But I have some more roadblocks: My server app is an agent application (it only runs from the menubar). My preliminary tests show that posting keyboard events this way to another application only result i

Re: Keystrokes for non-ascii letters

2008-11-29 Thread Ricky Sharp
On Nov 29, 2008, at 10:26 AM, Dave DeLong wrote: I'm working on a client/server application. The client sends tiny "Event" objects to the server that can contain an NSString of a letter or short sequence of letters (up to about 4). What I'm trying to do is figure out how the server can p

Re: Keystrokes for non-ascii letters

2008-11-29 Thread Eric Schlegel
On Nov 29, 2008, at 8:26 AM, Dave DeLong wrote: Hey everyone, I'm working on a client/server application. The client sends tiny "Event" objects to the server that can contain an NSString of a letter or short sequence of letters (up to about 4). What I'm trying to do is figure out how t