Thanks for updating one question: how to read COM object's constants? In
python, we can do
import win32com.client
word = win32com.client.gencache.EnsureDispatch("Word.Application")
print(win32com.client.constants.wdLineSpaceExactly)
word.Quit()
Run
but in winim, none of the following is right
import winim.com
comScript:
#~ if true:
let word = CreateObject("Word.Application")
#~ echo (com.client.constants.wdLineSpaceExactly)
echo "undeclared identifier: 'client'"
#~ echo (client.constants.wdLineSpaceExactly)
echo "undeclared identifier: 'client'"
#~ echo (constants.wdLineSpaceExactly)
echo "undeclared identifier: 'constants'"
#~ echo (wdLineSpaceExactly)
echo "undeclared identifier: 'wdLineSpaceExactly'"
#~ echo (word.wdLineSpaceExactly)
echo "unhandled exception: unsupported method: wdLineSpaceExactly
[COMError]"
word.Quit()
COM_FullRelease()
Run
Thnaks