You can use VB's SendKeys command for some things, but I don't think it works with Alt,Ctrl, or Shift.
Printable View
You can use VB's SendKeys command for some things, but I don't think it works with Alt,Ctrl, or Shift.
My problem is not getting the keys send to the specific windows, but yes, I do use FindWindow.
Now that I got it's handle, I want to send "alt + L" to the windows using SendMessage but I don't know how to send 'alt' key to the window.
Any idea anyone???
There must be a way to do this, I am sure but HOW????
Yes, I can use sendkeys as mlewis said but it doesn't guarantee that the windows will receive the keys. I've tried before and some times it works and sometimes doesn't works. So, I want to use SendMessage or PostMesage to send the keys to the window but I just don't know how to send "alt + L" or 'control' or keys like that...
Somebody please... do tell me how to do that..
Thanks a lot!!!!