Re: [Sikuli-driver] [Question #701165]: Detect image, click result when target application is minimize

2022-04-02 Thread RaiMan
Question #701165 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/701165

RaiMan posted a new comment:
Great thanks for now. 
Will look into it tomorrow (for me it is late in the evening now).

-- 
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

2022-04-02 Thread johnny doe
Question #701165 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/701165

johnny doe posted a new comment:
@Raiman on the file that I sent you I remove this block of code

if (!BitBlt(hdcMemDC,
0, 0,
rcClient.right - rcClient.left, rcClient.bottom - rcClient.top,
hdcWindow,
0, 0,
SRCCOPY))
{
MessageBox(hWnd, L"BitBlt has failed", L"Failed", MB_OK);
goto done;
}


I replace it with PrintWindow(hWnd, hdcMemDC, 3);

-- 
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

2022-04-02 Thread johnny doe
Question #701165 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/701165

johnny doe posted a new comment:
You should not minimize it, it does not work when minimize, only put it
in the background.The user can do other things that way also.It is
because of the state of the window. I cannot find a capture image
function that is in the SW_MINIMIZE state,some says it is not possible.
Also you should edit the title of the program in the FindWindow
function so that it points to your target .

The SendMessage function on win32 is for sending input to the target
window(mouse or keyboard input) even if it is in the background.

-- 
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

2022-04-02 Thread RaiMan
Question #701165 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/701165

RaiMan requested more information:
I am very impressed.

I suppose, that there is a minimized app window, whose content is saved
to a bmp-file, without making this window visible on the screen.

I have some problems:

- I cannot use the c++-code as is, since I do not have the environment
to make it runnable on my Windows 11. So it would help me, if I could
get an exe, that accepts the 2 parameters (window-title, file-name).

- I do not understand, what "SendMessageJB(hwnd, 'W', 'W');" does with
the minimized window.

Testing with JNA I always get Rect(x = -32000,y =  -32000, w = 168, h =
28) for any minimized window, when using user32.GetWindowRect(hWnd,
rect).

You can mail me directly at sikulix---at---outlook---dot---com

-- 
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 #700968]: How do I improve text recognition in sikuli IDE

2022-04-02 Thread Launchpad Janitor
Question #700968 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/700968

Status: Needs information => Expired

Launchpad Janitor expired the question:
This question was expired because it remained in the 'Needs information'
state without activity for the last 15 days.

-- 
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