Clicking in another application
Hello,
If there anyway i can make my application type into another application and click submit on the other one?? Like i want to mirror what is happening. Hard to explain but tell me if this makes no sense :p
There is a server manager i want to be able to send custom messages at certain time.
thanks,
Ross
Re: Clicking in another application
use send keys
VB Code:
Private Sub Command1_Click()
SendKeys {enter}
End Sub
Re: Clicking in another application
But how would i tell it what application and text box to put it in?
Re: Clicking in another application
Re: Clicking in another application
How do i tell VB what application to sendkeys to and what textbox/button to click??
Re: Clicking in another application
Re: Clicking in another application
Dosn't really help me in my question in post #5
Re: Clicking in another application
Sendkeys sends to the control which currently has focus, using sendmessage would be better as the control does not need to have focus. But if you want to use sendkeys, then you will need to get the handle of the program.. display it, then make sure the focus is on the control before sending the text.
Re: Clicking in another application
Arr okay. Do you know of a simple sendmessage tutorial page??
Re: Clicking in another application
The link i posted should provide everything you need to find the control and send the text... but you can try doing a search. There should be plenty of examples. You can also check out the APIGuide, it will contain examples for many of the APIs.