How do I use the sendmessage api to send commands such as 'enter' or 'ctrl+s' to a program?
Printable View
How do I use the sendmessage api to send commands such as 'enter' or 'ctrl+s' to a program?
Use keybd_event will do
or just use the Sendkeys function
Code:Private Sub Command1_Click()
SendKeys "{ENTER}"
End Sub
Private Sub Command2_Click()
SendKeys "^s"
End Sub
'Code improved by vBulletin Tool (Save as...)