• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: what's the ASCII for the escape key, and bonus question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: what's the ASCII for the escape key, and bonus question


  • Subject: Re: what's the ASCII for the escape key, and bonus question
  • From: Emile Schwarz <email@hidden>
  • Date: Mon, 18 Jul 2005 10:36:38 +0200

Hi Michael, Eric et al.,

WARNING:

1. Yes Sir ! I am sure about Spotlight !
>      keystroke space using command down -- invoke spotlight

This is not a locked shortcut: the user can change the value to "invoke spotlight"...

<rant>
Spotlight is one of the worst things I ever saw. Once open, it takes forever to search for the first (few) character(s) you have the imprudence to give to it :(


This is with a PowerBook 15" Alu 1.5GHz / 512GB from August 2004.
</rant>

For some unknow reason I fall every here and then in Spotlight. After being very angry, I make a search and discover (I was happy...) that I can change the shork cut to calls it. So I do.



2. Confirmation have to be done

Are you sure that key code 53 is always the <esc>apa key in all keyboards available around the world ?

It is always a good idea to check and test and ask before using a key code.

key code are hardware location of keys.
keyboard layout is what is printed on the keys.

Both are not related: the keycode to get the 'm' letter on a US domestic (QWERTY, I do not know about Dvorak) keyboard is not the same to get that letter on the keyboard I actually use (French AZERTY; 'm' is located at the right of the 'l': HJKLM).

HTH,

Emile


PS: "what's the ASCII for the escape key, and bonus question"

I would answer:

tell application "System Events"
	keystroke (ASCII character 27)
end if

but I do not know.

email@hidden wrote:
Subject: Re: what's the ascii for the escape key, and bonus question
To: Eric Geoffroy <email@hidden>
Cc: AppleScript List <email@hidden>
Message-ID: <email@hidden>
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed


tell application "System Events" keystroke space using command down -- invoke spotlight delay 1 key code 53 -- escape key end tell


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: TextEdit script
  • Next by Date: Re: UI scripting: how to click 'OK' in Photo-Paint
  • Previous by thread: Re: what's the ascii for the escape key, and bonus question
  • Next by thread: rendering HTML on the fly with Webkit
  • Index(es):
    • Date
    • Thread