gre.key repeat

gre.key_repeat(
    code,
    [channel]
)
            

Send a key_repeat event to the application with the scancode passed in the parameters. channel is an optional parameter

Parameters: code The UTF-8 character code to inject channel An optional Storyboard IO channel to send the event on, if not specified the event is added directly into the current Storyboard application event queue if neither the environment variable or global GREIONAME variable are set. Returns: true for success, false for failure and error message string, e.g. "Can't open greio channel my_channel" Example:

function CBKeyRepeat()
    gre.key_repeat(0x20)
end

function CBSendKeyRepeat()
    local success, error = gre.key_repeat(0x20, "my_channel")
    if(success == false) then
        --handle error
    end
end
Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

0 comments

Article is closed for comments.