Re: Special keystrokes recording
Re: Special keystrokes recording
- Subject: Re: Special keystrokes recording
- From: JuL <email@hidden>
- Date: Sat, 10 Jan 2004 02:00:40 +0100
Le 10 janv. 04, ` 01:50, Shawn Erickson a icrit :
On Jan 9, 2004, at 4:02 PM, JuL wrote:
Hello,
For making a vnc-like app, I would like to record all keystrokes. To
do this, I created a window and implemented the sendEvent: method.
Everything works fine, except for very special keystrokes like
command-tab or command-alt-esc.
I have conducted some research and found out that these keystrokes
are reserved by the system using private functions such as
CPSRegisterForKey, etc..
So, as you may have guessed, my problem is to find a solution to get
these special key events. I have read that you have to kill the Dock
and quickly register the key combo with the private function, but
that is not a good solution and this only works for cmd-tab.
In a lot of games, the cmd-tab does not work and they surely do not
kill the dock. So, surely there must be a good way to do that.
Thanks for your help !
Not sure how VNC like you are going for but it would be best to go
down to the Quartz level for an application like this. Quartz Services
provides the "Remote Operation" API for this purpose.
<http://developer.apple.com/documentation/GraphicsImaging/Reference/
Quartz_Services_Ref/qsref_main/function_group_10.html>
Thanks for answering.
However, my problem in not controlling the 'slave' computer, but
getting events from the 'master'. I'm using this "Remote Operation" API
for controlling, but there's no functions to get events, only post. :-/
Regards,
JuL
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.