Dejan Dimic wrote:
> Before sending any keys you should verify to whom you are sending
> them.

Return of AppActivate is true so I think I'm sending to the right place 
(I can see SketchUp window going to focus), but the shortcut "Y" is not 
triggered before the end of code execution.

s=WIN32OLE.new("WScript.Shell")
p s.AppActivate("SketchUp") # return is true ...
sleep(5)
p s.SendKeys("y") # should trigger Y shortcut
sleep(5)
# no signs of the shortcut ...

-- 
Posted via http://www.ruby-forum.com/.