M
Marcio Braga
I need to send a key (letter "x" for example) to SketchUp (shortcut) in
the middle of a code execution. I'm trying to use the command:
WIN32OLE.new("WScript.Shell").SendKeys("x")
But this way, the "x" is not being sent immediately. For example:
p "test1"
WIN32OLE.new("WScript.Shell").SendKeys("x")
p "test2"
I see "test1" and "test2" arriving (on SketchUp console) but I do not
see SketchUp responding to shortcut "x" during execution of the code.
"x" arrives only when the code finishes and return control to SketchUp.
Is any way to send this "x" ... immediately ?
Thank you
Marcio
the middle of a code execution. I'm trying to use the command:
WIN32OLE.new("WScript.Shell").SendKeys("x")
But this way, the "x" is not being sent immediately. For example:
p "test1"
WIN32OLE.new("WScript.Shell").SendKeys("x")
p "test2"
I see "test1" and "test2" arriving (on SketchUp console) but I do not
see SketchUp responding to shortcut "x" during execution of the code.
"x" arrives only when the code finishes and return control to SketchUp.
Is any way to send this "x" ... immediately ?
Thank you
Marcio