Armenian Knowledge Base  

Go Back   Armenian Knowledge Base > Technical sections > Languages, Compilers, Interpreters
Register

Reply
 
LinkBack Thread Tools
Old 19.02.2002, 01:44   #16
Студент
 
Join Date: 01 2002
Location: Yerevan, Armenia
Age: 37
Posts: 282
Downloads: 0
Uploads: 0
Reputation: 0 | 0
Post

esli ne trudno link dai ya na site microsoft, i tam mnogo raznix sdk, kakoi immeno ne znayu ... <img src="sad-2.gif" border="0">

A vot 1 fevralya 2001 ne bilo, tolko 1fevralya 2002 goda da i to WMI kakoito.

Esli ne trudno podskazhi ili dai konkretnii link.

thx u in advance.

zdes' primernii kod:

mog bi pointer na INPUT massiv sdelat' i vse kk, v nego...no eto potom...

void CMesSendWndDlg: <img src="embarrassed.gif" border="0"> nSendmessageBtn()
{
HWND hWnd = ::FindWindow("FROMDLL_CLASS_NAME", "FROMDLL_CLASS_NAME");

INPUT kkDown, kkUp;
DWORD flagsDown = MOUSEEVENTF_ABSOLUTE | MOUSEEVENTF_LEFTDOWN;
DWORD flagsUP = MOUSEEVENTF_ABSOLUTE | MOUSEEVENTF_LEFTUP;

kkDown.type = INPUT_MOUSE;
kkDown.mi.dwExtraInfo = 0;
kkDown.mi.dx = 20;
kkDown.mi.dy = 20;
kkDown.mi.dwFlags = flagsDown;
kkDown.mi.mouseData = flagsDown;
kkDown.mi.time = GetTickCount();

kkUp.type = INPUT_MOUSE;
kkUp.mi.dwExtraInfo = 0;
kkUp.mi.dx = 20;
kkUp.mi.dy = 20;
kkUp.mi.dwFlags = flagsUP;
kkUp.mi.mouseData = flagsUP;
kkUp.mi.time = GetTickCount();

SetCursorPos(20,20);

::SendInput(1, &kkDown, sizeof(kkDown);
::SendInput(1, &kkUp, sizeof(kkUp);
}
__________________
Сколько времени и сил должен потратить мужчина,
Чтобы воспользоваться минутной слабостью женщины
Reply With Quote
Sponsored Links
Reply

Thread Tools


На правах рекламы:
реклама

All times are GMT. The time now is 02:53.


Powered by vBulletin® Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.