FAQFAQ   SearchSearch   UsergroupsUsergroups   RegisterRegister   ProfileProfile    Log inLog in   RSS Feed

Early evening goodies

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Salling Software Forums Forum Index -> Archives
View previous topic :: View next topic  
Author Message
salling
Site Admin


Joined: 27 Jul 2004
Posts: 7498
Location: Stockholm, Sweden

PostPosted: Tue Apr 08, 2003 8:45 pm    Post subject: Early evening goodies Reply with quote

Some virtual key codes for you. Remember to translate to decimal before
using in SEC:

#define kAKey 0x00
#define kSKey 0x01
#define kDKey 0x02
#define kFKey 0x03
#define kHKey 0x04
#define kGKey 0x05
#define kZKey 0x06
#define kXKey 0x07
#define kCKey 0x08
#define kVKey 0x09
#define kBKey 0x0B
#define kQKey 0x0C
#define kWKey 0x0D
#define kEKey 0x0E
#define kRKey 0x0F
#define kYKey 0x10
#define kTKey 0x11
#define k1Key 0x12
#define k2Key 0x13
#define k3Key 0x14
#define k4Key 0x15
#define k5Key 0x17
#define k6Key 0x16
#define k7Key 0x1A
#define k8Key 0x1C
#define k9Key 0x19
#define k0Key 0x1D // numeric
#define kMinusKey 0x1B
#define kEqualsKey 0x18
#define kRightBraceKey 0x1E
#define kOKey 0x1F
#define kUKey 0x20
#define kLeftBraceKey 0x21
#define kIKey 0x22
#define kPKey 0x23
#define kReturnKey 0x24
#define kLKey 0x25
#define kJKey 0x26
#define kQuoteKey 0x27
#define kKKey 0x28
#define kColonKey 0x29
#define kBackSlashKey 0x2A
#define kLessThanKey 0x2B
#define kSlashKey 0x2C
#define kNKey 0x2D
#define kMKey 0x2E
#define kGreaterThanKey 0x2F
#define kPeriodKey 0x2F
#define kTabKey 0x30
#define kSpaceKey 0x31
#define kTildeKey 0x32
#define kDeleteKey 0x33
#define kEscapeKey 0x35
#define kCapsLockKey 0x39
#define kOptionKey 0x3A
#define kControlKey 0x3B
#define kCmdKey 0x37
#define kShiftKey 0x38
#define kClearKey 0x47
#define kEnterKey 0x4C
#define kHomeKey 0x73
#define kEndKey 0x77
#define kLeftArrowKey 0x7B
#define kRightArrowKey 0x7C
#define kDownArrowKey 0x7D
#define kUpArrowKey 0x7E
#define kHelpKey 0x72
#define kPageUpKey 0x74
#define kDelKey 0x75
#define kPageDownKey 0x79
#define kF1Key 0x7A
#define kF2Key 0x78
#define kF3Key 0x63
#define kF4Key 0x76
#define kF5Key 0x60
#define kF6Key 0x61
#define kF7Key 0x62
#define kF8Key 0x64
#define kF9Key 0x65
#define kF10Key 0x6D
#define kF11Key 0x67
#define kF12Key 0x6F
#define kF13Key 0x69
#define kF14Key 0x6B
#define kF15Key 0x71

Back to top
View user's profile Send private message Send e-mail Visit poster's website
Guest






PostPosted: Tue Apr 08, 2003 10:32 pm    Post subject: Re: Early evening goodies Reply with quote

My mission to try to press function keys on the keyboard continues
(mainly to toggle video-mirroring). So, according to the keyboard
mapping, the following should press F4 and (on PowerBook G4 (DVI))
turn the volume down, but it doesn't:

tell application "SEC Helper"
simulate keyboard virtual keycode 118
end tell

On PBG4 (DVI), F1 decreases screen brightness, F2 increases
brightness, F3 mutes, F4 decreases volume, F5 increases volume and F7
toggles video-mirroring, regardless of the application context.

Moonhawk


Back to top
salling
Site Admin


Joined: 27 Jul 2004
Posts: 7498
Location: Stockholm, Sweden

PostPosted: Tue Apr 08, 2003 10:41 pm    Post subject: Re: Re: Early evening goodies Reply with quote

Are you sure there are no modifiers involved in this?

- jonas

On tisdag, apr 8, 2003, at 22:32 Europe/Stockholm, drmoonhawk wrote:

> My mission to try to press function keys on the keyboard continues
> (mainly to toggle video-mirroring). So, according to the keyboard
> mapping, the following should press F4 and (on PowerBook G4 (DVI))
> turn the volume down, but it doesn't:
>
> tell application "SEC Helper"
> simulate keyboard virtual keycode 118
> end tell
>
> On PBG4 (DVI), F1 decreases screen brightness, F2 increases
> brightness, F3 mutes, F4 decreases volume, F5 increases volume and F7
> toggles video-mirroring, regardless of the application context.
>
> Moonhawk
>
>
> ------------------------ Yahoo! Groups Sponsor
> ---------------------~-->
> Get 128 Bit SSL Encryption!
> http://us.click.yahoo.com/xaxhjB/hdqFAA/VygGAA/EGnolB/TM
> ---------------------------------------------------------------------
> ~->
>
> To unsubscribe from this group, send an email to:
> ericssonclient-unsubscribe@yahoogroups.com
>
>
>
> Your use of Yahoo! Groups is subject to
> http://docs.yahoo.com/info/terms/
>
>


Back to top
View user's profile Send private message Send e-mail Visit poster's website
Guest






PostPosted: Tue Apr 08, 2003 10:45 pm    Post subject: Re: Re: Early evening goodies Reply with quote

On a PowerBook TI400, the first model, you have to press cmd-F1 to
toggle video-mirroring.

-Richard
On tisdag, apr 8, 2003, at 22:41 Europe/Stockholm, Jonas Salling wrote:

> Are you sure there are no modifiers involved in this?
>
> - jonas
>
> On tisdag, apr 8, 2003, at 22:32 Europe/Stockholm, drmoonhawk wrote:
>
>> My mission to try to press function keys on the keyboard continues
>> (mainly to toggle video-mirroring). So, according to the keyboard
>> mapping, the following should press F4 and (on PowerBook G4 (DVI))
>> turn the volume down, but it doesn't:
>>
>> tell application "SEC Helper"
>> simulate keyboard virtual keycode 118
>> end tell
>>
>> On PBG4 (DVI), F1 decreases screen brightness, F2 increases
>> brightness, F3 mutes, F4 decreases volume, F5 increases volume and F7
>> toggles video-mirroring, regardless of the application context.
>>
>> Moonhawk
>>
>>
>> ------------------------ Yahoo! Groups Sponsor
>> ---------------------~-->
>> Get 128 Bit SSL Encryption!
>> http://us.click.yahoo.com/xaxhjB/hdqFAA/VygGAA/EGnolB/TM
>> ---------------------------------------------------------------------
>> ~->
>>
>> To unsubscribe from this group, send an email to:
>> ericssonclient-unsubscribe@yahoogroups.com
>>
>>
>>
>> Your use of Yahoo! Groups is subject to
>> http://docs.yahoo.com/info/terms/
>>
>>
>
>
> ------------------------ Yahoo! Groups Sponsor
> ---------------------~-->
> Get 128 Bit SSL Encryption!
> http://us.click.yahoo.com/xaxhjB/hdqFAA/VygGAA/EGnolB/TM
> ---------------------------------------------------------------------
> ~->
>
> To unsubscribe from this group, send an email to:
> ericssonclient-unsubscribe@yahoogroups.com
>
>
>
> Your use of Yahoo! Groups is subject to
> http://docs.yahoo.com/info/terms/
>
>


Back to top
salling
Site Admin


Joined: 27 Jul 2004
Posts: 7498
Location: Stockholm, Sweden

PostPosted: Tue Apr 08, 2003 10:48 pm    Post subject: Re: Re: Early evening goodies Reply with quote

In the light of the comment below, may I suggest you try:

tell application "SEC Helper"
simulate keyboard virtual keycode 118 modifiers { "command" }
end tell

Let us know how it works.

- jonas

On tisdag, apr 8, 2003, at 22:45 Europe/Stockholm, Richard Dudek wrote:

> On a PowerBook TI400, the first model, you have to press cmd-F1 to
> toggle video-mirroring.
>
> -Richard
> On tisdag, apr 8, 2003, at 22:41 Europe/Stockholm, Jonas Salling wrote:
>
>> Are you sure there are no modifiers involved in this?
>>
>> - jonas
>>
>> On tisdag, apr 8, 2003, at 22:32 Europe/Stockholm, drmoonhawk wrote:
>>
>>> My mission to try to press function keys on the keyboard continues
>>> (mainly to toggle video-mirroring). So, according to the keyboard
>>> mapping, the following should press F4 and (on PowerBook G4 (DVI))
>>> turn the volume down, but it doesn't:
>>>
>>> tell application "SEC Helper"
>>> simulate keyboard virtual keycode 118
>>> end tell


Back to top
View user's profile Send private message Send e-mail Visit poster's website
Guest






PostPosted: Tue Apr 08, 2003 10:53 pm    Post subject: Re: Early evening goodies Reply with quote

No modifier keys are required. I use the keys all the time for
adjusting screen brightness and volume.

In fact, the following is a summary of results in combination with F1
(decrease brightness):

F1 (by iteself): decreases brightness
Shift-F1: decreases brightness
Fn-F1: beeps and does nothing
ctrl-F1: decreases brightness
option-F1: Opens the Display Panel of System Preferences
Command-F1: does nothing

Anyone else out there with PBG4 DVI to corroborate this?

Moonhawk


Back to top
salling
Site Admin


Joined: 27 Jul 2004
Posts: 7498
Location: Stockholm, Sweden

PostPosted: Tue Apr 08, 2003 11:00 pm    Post subject: Re: Re: Early evening goodies Reply with quote

The sad thing about virtual keycodes is that not all keyboards are the
same, so all the codes I posted may not work on all machines. Some of
the codes have been with us for a long time, though.

Check in your /System/Library/Keyboards/ folder for files that contain
keycodes for various keyboards.

- jonas

On tisdag, apr 8, 2003, at 22:53 Europe/Stockholm, drmoonhawk wrote:

> No modifier keys are required. I use the keys all the time for
> adjusting screen brightness and volume.
>
> In fact, the following is a summary of results in combination with F1
> (decrease brightness):
>
> F1 (by iteself): decreases brightness
> Shift-F1: decreases brightness
> Fn-F1: beeps and does nothing
> ctrl-F1: decreases brightness
> option-F1: Opens the Display Panel of System Preferences
> Command-F1: does nothing
>
> Anyone else out there with PBG4 DVI to corroborate this?
>
> Moonhawk
>
>
> ------------------------ Yahoo! Groups Sponsor
> ---------------------~-->
> Get 128 Bit SSL Encryption!
> http://us.click.yahoo.com/xaxhjB/hdqFAA/VygGAA/EGnolB/TM
> ---------------------------------------------------------------------
> ~->
>
> To unsubscribe from this group, send an email to:
> ericssonclient-unsubscribe@yahoogroups.com
>
>
>
> Your use of Yahoo! Groups is subject to
> http://docs.yahoo.com/info/terms/
>
>


Back to top
View user's profile Send private message Send e-mail Visit poster's website
marook
Hero


Joined: 30 Jul 2004
Posts: 336
Location: Copenhagen

PostPosted: Tue Apr 08, 2003 11:01 pm    Post subject: Re: Re: Early evening goodies Reply with quote

Hi.

Are you sure it's the F-keys? On the iBook, the F-keys are only=20
available when you hold down the 'fn' key!


On tirsdag, apr 8, 2003, at 22:53 Europe/Copenhagen, drmoonhawk wrote:

> No modifier keys are required. I use the keys all the time for
> adjusting screen brightness and volume.
>
> In fact, the following is a summary of results in combination with F1
> (decrease brightness):
>
> F1 (by iteself): decreases brightness
> Shift-F1: decreases brightness
> Fn-F1: beeps and does nothing
> ctrl-F1: decreases brightness
> option-F1: Opens the Display Panel of System Preferences
> Command-F1: does nothing
>
> Anyone else out there with PBG4 DVI to corroborate this?
>

Jakob Peterh=E4nsel

K=E6rlighed?
Det er noget man giver...


Email: jakob@h...
AIM: Marook
Phone: +45 40163806

Back to top
View user's profile Send private message Visit poster's website AIM Address MSN Messenger
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Salling Software Forums Forum Index -> Archives All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group