|
-
Jan 20th, 2007, 03:05 PM
#1
Thread Starter
Addicted Member
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
There is a server manager i want to be able to send custom messages at certain time.
thanks,
Ross
-
Jan 20th, 2007, 04:54 PM
#2
Re: Clicking in another application
use send keys
VB Code:
Private Sub Command1_Click()
SendKeys {enter}
End Sub
My usual boring signature: Something
-
Jan 20th, 2007, 05:36 PM
#3
Thread Starter
Addicted Member
Re: Clicking in another application
But how would i tell it what application and text box to put it in?
-
Jan 20th, 2007, 07:25 PM
#4
Thread Starter
Addicted Member
Re: Clicking in another application
-
Jan 21st, 2007, 05:46 AM
#5
Thread Starter
Addicted Member
Re: Clicking in another application
How do i tell VB what application to sendkeys to and what textbox/button to click??
-
Jan 21st, 2007, 05:58 AM
#6
Re: Clicking in another application
-
Jan 21st, 2007, 06:19 AM
#7
Thread Starter
Addicted Member
Re: Clicking in another application
Dosn't really help me in my question in post #5
-
Jan 21st, 2007, 06:24 AM
#8
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.
-
Jan 21st, 2007, 06:30 AM
#9
Thread Starter
Addicted Member
Re: Clicking in another application
Arr okay. Do you know of a simple sendmessage tutorial page??
-
Jan 21st, 2007, 06:37 AM
#10
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|