Re: [Sikuli-driver] [Question #701193]: Error with runnable fat jar outside of IDE
Question #701193 on SikuliX changed: https://answers.launchpad.net/sikuli/+question/701193 Description changed to: Hi all, When I export as a fat jar and run on another Win10 PC with Java installed I get the following error when I use screen.exist, hover, click etc java.lang.UnsatisfiedLinkError: 'long org.opencv.core.Mat.n_Mat()' Just wondering if you have seen this before or have any suggestions? Note I'm running 2.0.4 because 2.0.5 has an issue locating images embedded in the jar Thanks in advance -- You received this question notification because your team Sikuli Drivers is an answer contact for SikuliX. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #701193]: Error with runnable fat jar outside of IDE
Question #701193 on SikuliX changed: https://answers.launchpad.net/sikuli/+question/701193 Description changed to: Hi all, When I export as a fat jar and run on another PC with Java installed I get the following error when I use exist, hover, click etc java.lang.UnsatisfiedLinkError: 'long org.opencv.core.Mat.n_Mat()' Just wondering if you have seen this before or have any suggestions? Note I'm running 2.0.4 because 2.0.5 does not find the images embedded in the jar Thanks in advance -- You received this question notification because your team Sikuli Drivers is an answer contact for SikuliX. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
[Sikuli-driver] [Question #701193]: Error with runnable fat jar outside of IDE
New question #701193 on SikuliX: https://answers.launchpad.net/sikuli/+question/701193 Hi all, When I export as a fat jar and run on another PC with Java installed I get the following error when I use exist, hover, click etc java.lang.UnsatisfiedLinkError: 'long org.opencv.core.Mat.n_Mat()' Just wondering if you have seen this before or have any suggestions? Note I'm running 2.0.4 because 2.0.5 does not find the images embedded in the jar Thanks in advance -- You received this question notification because your team Sikuli Drivers is an answer contact for SikuliX. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #701165]: [request] Windows: act on a non-forground app-window (not or not fully visible)
Question #701165 on SikuliX changed: https://answers.launchpad.net/sikuli/+question/701165 RaiMan proposed the following answer: ok, thanks for the additional information. >From now on I am able to compile and test such snippets myself: >https://github.com/Embarcadero/Dev-Cpp The next days I will play a bit with your input. I will come back with any insights. -- You received this question notification because your team Sikuli Drivers is an answer contact for SikuliX. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #701165]: [request] Windows: act on a non-forground app-window (not or not fully visible)
Question #701165 on SikuliX changed: https://answers.launchpad.net/sikuli/+question/701165 johnny doe posted a new comment: Send message is use for sending keytroke and mouse input to the target window without actually using the mouse and keyboard. The user can still use the mouse and keyboard. //send left click at target 250,250 without using the mouse SendMouseJB(hwnd, 'L', 250, 250); //send right click at target 350,350 without using the mouse SendMouseJB(hwnd, 'R', 350, 350); //open inventory of the game SendKeyboardJB(hwnd, 'I', 'I'); void SendMouseJB(HWND hwnd, const char button, int x, int y) { //left mouse at x,y if (button == 'L') { SendMessage(hwnd, WM_LBUTTONDOWN, MK_LBUTTON, MAKELPARAM(x, y)); SendMessage(hwnd, WM_LBUTTONUP, MK_LBUTTON, MAKELPARAM(x, y)); } //right mouse at x,y else if (button == 'R') { SendMessage(hwnd, WM_RBUTTONDOWN, MK_RBUTTON, MAKELPARAM(x, y)); SendMessage(hwnd, WM_RBUTTONUP, MK_RBUTTON, MAKELPARAM(x, y)); } } void SendKeyboardJB(HWND window, WORD key, char letter) { SendMessage(window, WM_KEYDOWN, key, 0); if (letter != 0) SendMessage(window, WM_CHAR, letter, 1); SendMessage(window, WM_KEYUP, key, 1); } -- You received this question notification because your team Sikuli Drivers is an answer contact for SikuliX. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #701165]: Detect image, click result when target application is minimize
Question #701165 on SikuliX changed: https://answers.launchpad.net/sikuli/+question/701165 RaiMan posted a new comment: ok tested your exe and it works. To use it programmatically, it should accept commandline parameters. - opened a Notepad++ window and put it behind other windows (background) - used the exe, that produced an image of the app window (test.png) then I used the following script, to test that test.png can be found, when the app window is visible: app = App("Notepad++") app.focus() regWin = App.focusedWindow() img = "test.png" imgExe = Image.create(img) print "fromExe:", imgExe print "notepad:", regWin print regWin.find(imgExe) --- output: fromExe: I[test.png(1899x625)] notepad: R[6,4 1914x684 (neu 1 - Notepad++)]@S(0) M[14,55 1899x625]IN(0) %99,85 C(963,367) [147/147 msec] So your approach works, to get the window content of not fully visible windows. I still do not understand the intention of your SendMessage usage in the beginning. What is it good for? --- The only problem now is how to send keyboard and mouse input to a background application. I do not have any experience with the Windows API, so if the net does not jnow a solution, I cannot help. -- You received this question notification because your team Sikuli Drivers is an answer contact for SikuliX. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #701165]: [request] Windows: act on a non-forground app-window (not or not fully visible)
Question #701165 on SikuliX changed: https://answers.launchpad.net/sikuli/+question/701165 Summary changed to: [request] Windows: act on a non-forground app-window (not or not fully visible) -- You received this question notification because your team Sikuli Drivers is an answer contact for SikuliX. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp