Re: Keyboard Question?
Re: Keyboard Question?
- Subject: Re: Keyboard Question?
- From: "Arthur J Knapp" <email@hidden>
- Date: Thu, 18 Jan 2001 10:08:58 -0500
>
Date: Wed, 17 Jan 2001 17:12:33 -0500
>
From: Robert Poland <email@hidden>
>
Subject: Re: Keyboard Question?
>
>>> TypeText (ascii character 3) -- types the enter key
>
>>> Any ideas...
>
> >ASCII character 31
>
ASCII character 31 is the number 1, try ASCII character 13 for carriage
>
return.
When we talk about ascii with regards to AppleScript, we tend to
use decimal notation, (because the ASCII Scripting Additions use
decimal-notation parameters).
31 is the hex encoding of the number 1. It's decimal value is 49.
13 is indeed the decimal value of the carrage return, (the normal
return character of the Macintosh). It's hex value is 0D.
The Enter key does appear to be ASCII decimal 3.
I belive the original poster was looking for a reference that
would show a mapping between keyboard keys and ascii codes. This
link may be able to help somewhat:
<
http://developer.apple.com/techpubs/mac/Text/Text-516.html>
Keep poking around at Apple's site. I'm sure you will find what
you need.
--
{
Arthur J Knapp, of STELLARViSIONs ;
http://www.STELLARViSIONs.com ;
mailto:email@hidden ;
"...well the rain falls down
without my help, I'm afraid
and my lawn gets wet,
though I withheld my consent..."
}