Is it possible to import extern dll file in sikuli script?

Asked by Stranger on 2017-04-06

Now I want to write a script in sikuli, but in this script it need to import extern dll file, but I encounter one error after run.
This script works fine in python environment. So I want to know if it is possible to import extern dll file in sikuli script?

I list my script as below,

import ctypes
dll = ctypes.cdll.LoadLibrary('D:\working\UI_TEST\sikuli\DllCallPython.sikuli\DllTest.dll')
print dll.Add(1,2)

but error is reported in log window:
[error] script [ DllCallPython ] stopped with error in line 3
[error] NotImplementedError ( variadic functions not supported yet; specify a parameter list )

Could you help me? How to do with it?

Question information

Language:
English Edit question
Status:
Solved
For:
Sikuli Edit question
Assignee:
No assignee Edit question
Solved by:
Stranger
Solved:
2017-04-06
Last query:
2017-04-06
Last reply:
2017-04-06
Manfred Hampl (m-hampl) said : #1

https://sourceforge.net/p/jython/<email address hidden>/ might help

Stranger (peterlee007) said : #2

Thank you, it has been resolved!