Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Help in a simple script



This script is accepted as valid, but don't do what is expected, wich is analise some keyboard keys status and display a correspondent dialog box. Can someone point what is wrong?

if option down is true then
display dialog "Option key pressed!"
else if control down is true then
display dialog "Control key pressed!"
else if shift down is true then
display dialog "Shift key pressed!"
else if command down is true then
display dialog "Command key pressed!"
else
display dialog "No key pressed!"
end if

Thanks in advance!

Andre Moura
Tech. Support
Audio & Video
Ass. Torre de Vigia
Sao Paulo - Brazil
_______________________________________________
applescript-studio mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-studio
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.