Pressing keys in the listener
I am novice to the site and to maxscript.
I am using the pickobject() fn in a dotnet checkbox eventhandler function.
The problem is it works fine, if you select the picked object and not cancel the action.
If i know how to press the "escape" key in the listener i will be able to stop the function. I tried to use the "sendkeys" class with the "sendwait" method, but it only works as input in the listener.
Is there a way to press a key in a dialog (maxscript listener) by its HWND from a script.