Форум: "WinAPI";
Текущий архив: 2002.10.17;
Скачать: [xml.tar.bz2];
ВнизКликнуть курсором мыши по чужому приложению. HELP!!! Найти похожие ветки
← →
Константин (2002-08-30 08:25) [0]Уважаемые ПРОФИ помогите.
Позиционирую курсор в нужное мне место чужого приложения кликаю следующим способом:
mouse_event(
MOUSEEVENTF_LEFTDOWN, // flags specifying various motion/click variants
0, // horizontal mouse position or position change
0, // vertical mouse position or position change
0, // amount of wheel movement
0 // 32 bits of application-defined information
);
mouse_event(
MOUSEEVENTF_LEFTUP, // flags specifying various motion/click variants
0, // horizontal mouse position or position change
0, // vertical mouse position or position change
0, // amount of wheel movement
0 // 32 bits of application-defined information
);
Нифига не срабатывает! Хотя для остальных приложений это работает...
Смотрю дамп программой WinSigth вижу следующее:
Если кликаю мышкой (ручками):
"OZONW" WM_MOUSEACTIVATE sent LButtonDown in Caption hwnd ....
"OZONW" WM_SETCURSOR sent LButtonDown in Caption hwnd ....
"OZONW" WM_SETCURSOR sent MouseMove in Caption hwnd ....
"OZONW" WM_SETCURSOR sent MouseMove in Caption hwnd ....
"OZONW" WM_SETCURSOR sent MouseMove in Caption hwnd ....
"OZONW" WM_SETCURSOR sent MouseMove in Caption hwnd ....
"OZONW" WM_SETCURSOR sent MouseMove in Client hwnd ....
"OZONW" WM_MOUSEMOVE Dispatched (322, 26) LButton
"OZONW" WM_LBUTTONUP Dispatched (322, 26) LButton
"OZONW" WM_SETCURSOR sent LButtonUp in Client hwnd ....
"OZONW" WM_LBUTTONUP Dispatched (322, 26) LButton
"OZONW" WM_MOUSEMOVE Dispatched (322, 26) LButton
Если кликаю программно:
"OZONW" WM_LBUTTONDOWN Dispatched (322, 26) LButton
"OZONW" WM_MOUSEACTIVATE sent LButtonDown in Client hwnd ....
"OZONW" WM_SETCURSOR sent LButtonDown in Client hwnd ....
"OZONW" WM_LBUTTONDOWN Dispatched (322, 26) LButton
"OZONW" WM_SETCURSOR sent LButtonUp in Client hwnd ....
"OZONW" WM_LBUTTONUP Dispatched (322, 26) LButton
Почему такая разница?
Может нужно работать с мышкой на более низком уровне? Если Да - то как?
← →
Константин (2002-09-05 02:47) [1]Вопрос снят!
Т.к. никто не ответил сообщаю, что помогло сообщение "WM_NLCBUTTONDOWN"!
Страницы: 1 вся ветка
Форум: "WinAPI";
Текущий архив: 2002.10.17;
Скачать: [xml.tar.bz2];
Память: 0.44 MB
Время: 0.007 c