Call a procedure

I am wondering if it is possible to call a procedure pressing a single key the keyboard.

Thanks

 

I think you can do this indirectly by calling a macro menu item that calls a function:

Menu "Macros"
    // press F6
    "CallFoo/F6", foo()            
End

function foo()
    print "something"
end

see also:

DisplayhelpTopic "Keyboard Shortcuts"