I'd like to be able to execute a command immediately after I leave a function. In particular, I've written a function called myKeyboard, which does a few things (e.g., reports the results of dbstack), and then keyboards. But I'd like it to keyboard immediately after myKeyboard is completed, rather than within myKeyboard. From the documentation it looks as though the command
should do this, but it doesn't. It seems as though onCleanup only accepts functions as inputs, and executing a function on exit from myKeyboard would not accomplish what I want to accomplish
Thanks very much for any help...