Strange behaviour with COM

Chris... sca at isogmbh.de
Mon May 10 07:34:45 EDT 1999


Hello...

  Playing around with Python and COM, especially using Vim's
(www.vim.org) COM interface I encountered a problem and don't know,
whose fault it is (vim's, python's or mine):

import win32com.client
vim = win32com.client.Dispatch('Vim.Application')
# send the sequence :simalt ~w with return to vim
# to restore its window size
vim.Sendkeys(':simalt ~r<c-m>')

  Unfortunately it seems that the ~ gets lost, but only with Python.
I've tried the same with VB and Perl (the same key sequence) and it
worked, so I guess, the problem might be with Python (or at least me).

  Can anyone help?

  Thanks a lot in advance!

bye
  Chris...




More information about the Python-list mailing list