Re: Input key
Re: Input key
- Subject: Re: Input key
- From: Dana McDonald <email@hidden>
- Date: Wed, 20 Mar 2002 17:06:20 -0500
I just tested the input state {keys down:ASCII character 27} and it worked
for me.
I switched to Microsoft word. Opened the "Print Preview". Issued the: input
state {keys down:ASCII character 27} and the "Print Preview" closed. Just
like if you hit the escape key on the keyboard.
My testing stopped there and didn't do in depth testing for other
applications. I'm using Akua Sweets 1.4.3
Anyway, I hope it works for Vincent also.
Dana
>
>
That won't work at all, but using Sigma's additions to do that might well
>
work:
>
>
type text (ASCII character 27)
>
>
And there probably is a way with input state too, using one or more of its
>
other parameters (raw keys, etc.) What you should do is test it out by
>
devising a way to hold down the key, then running input state: probably by
>
means of an applet which displays the various record properties of input
>
state into a display dialog (you'll have to label the properties with
>
strings: display dialog won't just display a record as is). Hold down esc
>
key and double-click the applet - I don't know if that will work. Actually
>
you can probably just put 'input state' into a script in Script Editor with
>
the Script Result window showing and click Run. Then you'll see the whole
>
record, and can figure it out.
>
>
I'm in OS X where Akua doesn't work, so I can't test this now.
>
>
--
>
Paul Berkowitz
>
>
> From: Dana McDonald <email@hidden>
>
> Date: Wed, 20 Mar 2002 08:49:27 -0500
>
> To: "'email@hidden'" <email@hidden>
>
> Subject: Re: Input key
>
>
>
> haven't tested but try
>
>
>
> input state {keys down: ASCII Character 27}
>
>
>
> Dana McDonald
>
> Myrtle Beach, SC
>
>
>
>
>
>> From: Vincent Gibson <email@hidden>
>
>> Date: Wed, 20 Mar 2002 10:31:53 -0000
>
>> To: "'email@hidden'"<email@hidden>
>
>> Subject: Input key
>
>>
>
>> Hi all,
>
>> I'm trying to tell aother machine
>
>> to fake a key press. all works fine
>
>> using Akua sweetes, problem is
>
>> i need to use the escape key
>
>> and that doesn't work .
>
>>
>
>> Input state {keys down:"esc"}
>
>>
>
>> any ideas any soloutions?
>
>>
>
>> am near to deadline.
>
>>
>
>> thanx in advance
>
>>
>
>> Vincent
_______________________________________________
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.