Re: Sending keyboard events with unicode strings causes Pages/Keynote/Numbers to hang

2012-08-16 Thread Huy Phan
Hi Ken, Above you mention 2-byte unicode characters and here you mention 1-byte unicode characters. What precisely do you mean? A "UniChar" is inherently 2-bytes. So the first mention (2-byte) seems redundant and the second is just wrong. Sorry for being unclear in my question, I indeed s

Re: Sending keyboard events with unicode strings causes Pages/Keynote/Numbers to hang

2012-08-13 Thread Ken Thomases
On Aug 11, 2012, at 3:39 PM, Huy Phan wrote: > Every time I send keyboard events with unicode strings contain 2-byte unicode > characters, … >CGEventKeyboardSetUnicodeString(keyEventDown, 1, unicodeString); >CGEventKeyboardSetUnicodeString(keyEventUp, 1, unicodeString); > Pages doesn't

Sending keyboard events with unicode strings causes Pages/Keynote/Numbers to hang

2012-08-13 Thread Huy Phan
Hi all, I'm having this weird issue after upgrading iWork on Mountain Lion. I wrote a small app to monitor and modify user's keystrokes, it works fine with other applications except latest version of Pages. Every time I send keyboard events with unicode strings contain 2-byte unicode character