Click here to Skip to main content
15,921,622 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: any body could provide the link? Pin
techno_guru22-Nov-02 5:59
techno_guru22-Nov-02 5:59 
GeneralRe: any body could provide the link? Pin
techno_guru22-Nov-02 6:06
techno_guru22-Nov-02 6:06 
Questionreturn sucessfully.but? Pin
imran_rafique22-Nov-02 5:18
imran_rafique22-Nov-02 5:18 
AnswerRe: return sucessfully.but? Pin
Anders Molin22-Nov-02 10:14
professionalAnders Molin22-Nov-02 10:14 
GeneralGroup Members and Logon Pin
Richard Hudson22-Nov-02 5:08
Richard Hudson22-Nov-02 5:08 
GeneralRe: Group Members and Logon Pin
imran_rafique22-Nov-02 5:40
imran_rafique22-Nov-02 5:40 
GeneralRe: Group Members and Logon Pin
Anders Molin22-Nov-02 10:11
professionalAnders Molin22-Nov-02 10:11 
Questionplz see code and solve my problem? Pin
imran_rafique22-Nov-02 5:05
imran_rafique22-Nov-02 5:05 
when we are at logoff state in professional xp a window is displayed having a window text
-------------------
LOG ON TO WINDOW
-------------------
that window has two edit box one for username and other for password i want to get the hwnd of these edit box and want to type username and password and click a button
and the code i have used for this purpose is this


POINT pt;
::GetCursorPos(&pt);
HWND h=::WindowFromPoint(pt);
-----------------------------------------
for typing some characters i use this code
-----------------------------------------

::SendMessage(h, WM_CHAR, (WPARAM) 's', (LPARAM) 0);
::Sleep(300);
::SendMessage(h, WM_CHAR, (WPARAM) 'u', (LPARAM) 0);
::Sleep(300);
::SendMessage(h, WM_CHAR, (WPARAM) 'p', (LPARAM) 0);
::Sleep(300);
::SendMessage(h, WM_CHAR, (WPARAM) 'e', (LPARAM) 0);
::Sleep(300);
::SendMessage(h, WM_CHAR, (WPARAM) 'r', (LPARAM) 0);
-----------------------------------------------
for clicking purpose i use this code

::SendMessage(h,WM_LBUTTONDOWN,0,0);
::SendMessage(h,WM_LBUTTONDOWN,0,0);
::Sleep(300);
::SendMessage(h,WM_LBUTTONUP,0,0);



i get mouse position when mouse is at one of the edit box and button of that window.

that code executed at any other window sucessfully but it does not execute at this(described above)window.

what to do ?
is there any change in logic ?




r00d0034@yahoo.com
AnswerRe: plz see code and solve my problem? Pin
Daniel Turini22-Nov-02 5:16
Daniel Turini22-Nov-02 5:16 
AnswerRe: plz see code and solve my problem? Pin
Joan M22-Nov-02 6:37
professionalJoan M22-Nov-02 6:37 
GeneralVS6 IDE "hangs" Pin
Nitron22-Nov-02 4:27
Nitron22-Nov-02 4:27 
GeneralRe: VS6 IDE "hangs" Pin
Michael P Butler22-Nov-02 4:41
Michael P Butler22-Nov-02 4:41 
GeneralRe: VS6 IDE "hangs" Pin
Nitron22-Nov-02 4:51
Nitron22-Nov-02 4:51 
GeneralRe: VS6 IDE "hangs" Pin
Michael P Butler22-Nov-02 5:02
Michael P Butler22-Nov-02 5:02 
GeneralInvalid floating operation Pin
Patje22-Nov-02 4:19
Patje22-Nov-02 4:19 
QuestionExcel grids? Pin
-Dy22-Nov-02 4:10
-Dy22-Nov-02 4:10 
AnswerRe: Excel grids? Pin
Nitron22-Nov-02 4:59
Nitron22-Nov-02 4:59 
GeneralRe: Excel grids? Pin
-Dy22-Nov-02 5:06
-Dy22-Nov-02 5:06 
GeneralRe: Excel grids? Pin
Nitron22-Nov-02 5:13
Nitron22-Nov-02 5:13 
AnswerRe: Excel grids? Pin
Obliterator22-Nov-02 7:21
Obliterator22-Nov-02 7:21 
Generaladd some color to propertysheet Pin
Deepti22-Nov-02 3:46
Deepti22-Nov-02 3:46 
GeneralSetForegroundWindow.... Pin
Neha22-Nov-02 2:56
Neha22-Nov-02 2:56 
GeneralRe: SetForegroundWindow.... Pin
David Viggiano22-Nov-02 3:10
David Viggiano22-Nov-02 3:10 
GeneralChecking ISDN on Win98 Pin
Tili22-Nov-02 2:56
Tili22-Nov-02 2:56 
GeneralManually creating a wave file Pin
Hamza22-Nov-02 2:41
Hamza22-Nov-02 2:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.