Hi, all

Is it possible to send 'CTRL+A' and 'CTRL+C' to MS Excel using SendMessage?

I have tried WM_KEYDOWN and WM_KEYUP Messages for 'CTRL+A' with following code but no success.

Code:
SendMessage(m_fEC2,WM_KEYDOWN, (WPARAM)VK_CONTROL,(LPARAM)1);
SendMessage(m_fEC2,WM_KEYDOWN, (WPARAM)65,(LPARAM)1);
SendMessage(m_fEC2,WM_KEYUP, (WPARAM)VK_CONTROL,(LPARAM)1);
SendMessage(m_fEC2,WM_KEYUP, (WPARAM)65,(LPARAM)1);
m_fEC2 is the handle to the Child window as detected in SPY++.

Difference from SPY++ is only the LPARAM Parameter. How to construct LPARAM parameter for the same? or is there any thing wrong or missing.

Thanx for any kind of help.

Regards,
Shail2k4

Regards,