I think the ScriptKit is not up-to-date.
A method [ScriptCenter scriptDictionaryForActiveApplication] is missing.

Yen-Ju

On Wed, Aug 13, 2008 at 8:33 PM, David Chisnall <[EMAIL PROTECTED]> wrote:
> I've just fixed a bug where x and y were mixed up, so now horizontal
> and vertical gestures should work properly.
>
> The latest version now has a default action where drawing an h hides
> the active application[1].
>
> Scripts and associations between gestures and scripts[2] are set in
> user defaults.  This needs a UI for defining them - for 0.4 I'd be
> happy to ignore this, but I'd be very happy if someone felt like
> writing one, since we definitely should have it for 0.5.
>
> We should think of some default gestures.  My current thoughts are:
>
> 3 - redo
> 7 - undo
> 57 - close window
> 51 - new
>
> Any other suggestions?
>
> David
>
> [1] Assuming the active application supports scripting, which
> currently means 'is Typewriter.app'
>
> [2] Actually between gestures and objects.  You can write gesture
> actions in Objective-C or Smalltalk, and the example one is written
> in ObjC.
>
> On 12 Aug 2008, at 14:39, David Chisnall wrote:
>
>> Hi everyone,
>>
>> I've just added a basic gesture recognition engine to Corner.app.  If
>> you hold down control and shift[1] and move the mouse, it will treat
>> the next movements as a gesture.  Gestures are translated into
>> 'words' where each element in the gesture is a digit:
>>
>> 1 - north
>> 2 - north-east
>> 3 - east
>> 4 - south-east
>> 5 - south
>> 6 - south-west
>> 7 - west
>> 8 - north-west
>>
>> At the moment, all it does with these is log the word to the
>> terminal.  Can everybody test this, and see if they can make it log
>> the words they expect from the gestures they give?
>>
>> I plan on exposing this through the scripting interface later, with a
>> dictionary mapping gesture words to selectors.  I intend to keep
>> mouse gestures global, and use the scripting interface to communicate
>> them to the active application to avoid undue modality.  For example,
>> you could define a gesture for undo or redo (maybe left and right
>> gestures) and these would send undo and redo messages to the active
>> window.
>>
>> David
>>
>> [1] On my test setup, there is a weird bug in X11 where the modifiers
>> are only detected by the X server if shift is held down before
>> control.  Can anyone reproduce this?
>>
>> _______________________________________________
>> Etoile-discuss mailing list
>> [email protected]
>> https://mail.gna.org/listinfo/etoile-discuss
>
>
> _______________________________________________
> Etoile-discuss mailing list
> [email protected]
> https://mail.gna.org/listinfo/etoile-discuss
>

_______________________________________________
Etoile-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/etoile-discuss

Répondre à