Invoke your background stack by a key combination

Paul Claude paulclaude at postino.it
Mon Feb 20 07:25:26 EST 2006


Hi Malte,

Thank you very much, it works perfectly.

Greetings

Paul Claude


on 20-02-2006 11:50, Malte Brill at revolution at derbrill.de wrote:

> Hi Paul,
> 
> I would write a keyboard listener script. This might get you started:
> 
> A stack with a field and a button:
> 
> In the buttons script:
> 
> on mouseUp
>    if the flag of me is empty then set the flag of me to false
>    set the flag of me to not the flag of me
>    if the flag of me then
>      put empty into fld "myField"
>      startlisten
>    end if
> end mouseUp
> 
> on startlisten
>    if the keysDown is not empty then
>      put the keysdown&cr after fld 1
>    end if
>    if the flag of me then send "startlisten" to me in 50 millisecs
> end startlisten
> 
> This will also work if the stack is in background.
> 
> Hope that helps,
> 
> Malte
> 





More information about the use-livecode mailing list