|
-
Jun 26th, 2007, 09:53 AM
#1
Thread Starter
Addicted Member
SendKeys alternate [REQUEST]
Hello, i'm very new to the VBForums and programming in VisualBasic itself. I am currently using Visual Basic 5.
What my problem is... when I try and use the SendKeys to another app it doesn't work. [I've searched the forums but I don't understand the SendMessage or PostMessage etc.]
So could someone please explain to me how to substituite the SendKeys to a more usefull command in VB.
Here is my current code -
Code:
VB Code:
Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
AppActivate "Halo"
SendKeys "tHello"
SendKeys "{Enter}"
End Sub
Note: The t at the start of the first SendKeys is so that the dialogue tab opens up so you can talk. I'm sure that is the problem to the SendKeys because it has nowhere to type it in.
Thanks in advance.
Last edited by Vanasha; Jun 27th, 2007 at 09:21 AM.
-
Jun 26th, 2007, 10:53 AM
#2
Thread Starter
Addicted Member
Re: SendKeys alternate [REQUEST]
-
Jun 26th, 2007, 04:02 PM
#3
Re: SendKeys alternate [REQUEST]
Exactly what would you type in the Halo window? tHello? {Tab}Hello? Something else? "t" is just the unshifted "t" key.
The most difficult part of developing a program is understanding the problem.
The second most difficult part is deciding how you're going to solve the problem.
Actually writing the program (translating your solution into some computer language) is the easiest part.
Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.
Please Help Us To Save Ana
-
Jun 27th, 2007, 09:23 AM
#4
Thread Starter
Addicted Member
Re: SendKeys alternate [REQUEST]
Yes just that. Or even some movement commands for the game like {Up}
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
|