← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #142644]: How to import win32com to sikuli

 

Question #142644 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/142644

    Status: Open => Answered

RaiMan proposed the following answer:
Python modules can only be imported if fully written in Python language
or ported to the Jython/Java environment (which is the Python
interpreter used in Sikuli).

I guess win32com is a C-type based Python module. Those cannot be used
together with Sikuli/Jython.

To dispatch apps on windows you have to use the Sikuli class App.

If you want to stay with the Python interpreter (where you can use
win32com) and want to integrate Sikuli, you have to produce self
contained Sikuli scripts, export them as .skl and run them from
commandline using e.g. os.popen().

You may implement a sikuli script dispatcher subprocess (running as
Jython) or use XML-RPC (look
https://answers.launchpad.net/sikuli/+faq/1331)

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.