PDA

Click to See Complete Forum and Search --> : sendmessage api again


Da_HerB
Mar 17th, 2001, 12:03 AM
How do I use the sendmessage api to send commands such as 'enter' or 'ctrl+s' to a program?

Chris
Mar 17th, 2001, 12:53 AM
Use keybd_event will do

Chris
Mar 17th, 2001, 12:56 AM
or just use the Sendkeys function


Private Sub Command1_Click()
SendKeys "{ENTER}"
End Sub

Private Sub Command2_Click()
SendKeys "^s"
End Sub


'Code improved by vBulletin Tool (http://orion.spaceports.com/~mccloud/vbtool.zip) (Save as...)