If I well understood, until Ignition 7.x, the java libraries (JNA) was native from SUN.
But with Ignition 8.x the java lib are deployed by Inductive Automation with a custom package.
This shouldn’t a big issue but since now our previous scripts do not run anymore.
For a real example the following script now crashes at the first row:
**from com.sun.jna.platform.win32 import** * **from com.sun.jna.platform.win32.WinDef import** * def SendMessage(wndCaption, messageCode, wParam, lParam): wPARAM = WPARAM(wParam) lPARAM = LPARAM(lParam) hWnd = User32.INSTANCE.**FindWindow**(None, wndCaption) User32.INSTANCE.**PostMessage**(hWnd, messageCode, wPARAM, lPARAM) if (None != hWnd): User32.INSTANCE.**SetForegroundWindow**(hWnd) def IsRunning(wndCaption): hWnd = User32.INSTANCE.**FindWindow**(None, wndCaption) if (None == hWnd): return 0 else: return 1
We need to get access to some Win32 API (FindWindow, PostMessage and so on) and we need to know how to do so with the new JNA distro.
Thanks in advance.