Python: how to import win32gui --- not possible because it is C-based

Asked by amok

HI
in python 2.6 IDE,I can import win32api,but in sikuli 1.0.1 when I

myScriptPath = "c:\\Python26\\Lib\\site-packages\\win32"
import win32api
always point
[error] script [ 1 ] stopped with error in line 2
[error] ImportError ( No module named win32api )

I want to know how to import win32gui?

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

SikuliX talks Python, but the internally used interpreter is Jython (functionally compatible at language level 2.5). Jython is Java based and cannot import C-based Python stuff like win32api.

Revision history for this message
rob (reg82) said :
#2

are there any modules equivalent or similar to win32 that are usable?

Revision history for this message
RaiMan (raimund-hocke) said :
#3

You have to google for
JNA win32 API

there seem to be some Java based packages available, that can be used with Sikuli.

Can you help with this problem?

Provide an answer of your own, or ask amok for more information if necessary.

To post a message you must log in.