Click here to Skip to main content
15,885,546 members

Comments by Sébastien FAVIER (Top 3 by date)

Sébastien FAVIER 26-May-15 11:43am View    
I found my problem !! My application must to have more privileges, and this work

Thank you Sergey :-)
Best regards
Sébastien FAVIER 26-May-15 9:57am View    
Okay, I see :-)

Keep the idea that I must reproduce a human sequence, for begin, I test this
( I forget the website source :/ )
================================================
INPUT Input={0};
// left down
Input.type = INPUT_MOUSE;
Input.mi.dwFlags = MOUSEEVENTF_LEFTDOWN;
::SendInput(1, &Input, sizeof(INPUT));

/* /!\ I must Sleep some ms?? /!\ */

// left up
::ZeroMemory(&Input, sizeof(INPUT));
Input.type = INPUT_MOUSE;
Input.mi.dwFlags = MOUSEEVENTF_LEFTUP;
::SendInput(1, &Input, sizeof(INPUT));
================================================

The first "Clic" MOUSEEVENTF_LEFTDOWN (0x02) do not give window focus or clic in a button for some applications that I've quoted.

I must reproduce all the sequence of humain events, but with SendInput(), how I can do this?

Thank
Sébastien FAVIER
Sébastien FAVIER 26-May-15 4:07am View    
This work perfectly! I tested with Microsoft Paint, TeamViewer, Calc.exe, explorer.exe and other..
But, there are a strange problem with some application as CCleaner, ADwcleaner, MalwareBytes, this not work, he don't focus and click.
(There are a hook key on this applications for block my inputs?)

Thank
Sebastien FAVIER