Possible to simulate just the control key?
Possible to simulate just the control key?
- Subject: Possible to simulate just the control key?
- From: Michael Ziober <email@hidden>
- Date: Wed, 24 Mar 2004 09:32:26 -0800
Does anyone know how to make iDVD 3 running on OS X 10.3.2 think that
_just_ the control key is down? Hopefully something better than "lay a
book on the control key"! :-)
iDVD (aside from its odd object model and dictionary) has an unofficial
feature which checks the state of the control key, plus a few other
things, when burning a disc, which allows it to be used to
automatically batch build and "burn" DVDs as disk images.
Unfortunately, iDVD is testing the key directly as opposed to whether
it is used as a modifier for a keyboard event, so "keystroke using
control down" isn't what I need.
I have a keyboard map which indicates that the code for the control key
is 0x3B, but "key code 59" doesn't seem to have any effect. It appears
to generate a single keyboard event, rather than allowing me to set the
key state to down, send a command to iDVD, and then set the state to
up. This makes sense because the syntax makes no distinction as to the
key state.
Finally, I stumbled across this key combo by random experimentation:
press and hold LEFT control key, press and hold RIGHT control key,
release LEFT control key, release RIGHT control key. This locks the
control key in the down state. Press and release the LEFT control key
to unlock it. Oddly, this combination works only for the control key
and no other modifiers. It also seems to be independent of any keyboard
or universal access settings, so why is it there?
While the last method is functional, it's also an ugly hack which is
very confusing when you forget that it's active! So, does anyone have
any wisdom on using key code or perhaps an OSAX that works with
Panther? I'm willing to entertain anything: BSD, SystemUIServer, System
Events, etc.
Thanks,
Michael
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.