Any workaround to loading win32api or win32gui modules?

Asked by Tom Hinds

Hi Folks,

I know this is not Sikuli specific and I've seen others ask similar questions over the years without a solution. I thought I'd re-ask in case someone had found a workaround, or now that we're using a later version of Jython maybe that lends to a new solution.

I'd like to load win32api and win32gui into a Sikuli script, but I'm pretty sure those are still not available because they are C-based.

I'm interested in win32api because I'd like to use GetFileVersionInfo to read the "Product Version" property of some .exe and .dll files for comparison.

I'm interested in win32gui because I'd like to use GetWindowText to be able to read the title of the top-most window.

Thanks in advance for any new information or workarounds.

- Tom

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

to access the Win32API I use internally the package

   <dependency>
      <groupId>com.nativelibs4java</groupId>
      <artifactId>bridj</artifactId>
      <version>0.7.0</version>
    </dependency>

https://github.com/nativelibs4java/BridJ

in my case currently only to get something on systempath at runtime (org.sikuli.util.SysJNA)

In version 2 I will use it to get rid of the C++ code in WinUtil (App class support).

Can you help with this problem?

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

To post a message you must log in.