|
-
Aug 14th, 2007, 02:37 AM
#1
Thread Starter
Member
[RESOLVED] Use sendkeys to outside application
Hi I've searched for a while I got close but couldn't get it to work.. how can I make sendkeys go to another application outside of the program in vb6... Its not working right for some reason..
Ty for any help or use a search comments in advance
-
Aug 14th, 2007, 02:42 AM
#2
Re: Use sendkeys to outside application
-
Aug 14th, 2007, 02:42 AM
#3
Fanatic Member
Re: Use sendkeys to outside application
AppActivate "Login to NetZero" 'the caption of the outside program
sendkeys "what ever you what"
 Originally Posted by 8bangerstang
Hi I've searched for a while I got close but couldn't get it to work.. how can I make sendkeys go to another application outside of the program in vb6... Its not working right for some reason..
Ty for any help or use a search comments in advance 
Live life to the fullest!!
-
Aug 14th, 2007, 12:53 PM
#4
Thread Starter
Member
Re: Use sendkeys to outside application
 Originally Posted by Fazi
Looking at the send message function.. so I could make that send to the game if I find the hwnd? It's Medal of Honor, Making a simple trigger bot.. I dont see why send keys isnt sending correctly.. its bringing up the menu instead of shooting the gun..
-
Aug 14th, 2007, 01:11 PM
#5
Thread Starter
Member
-
Aug 14th, 2007, 01:48 PM
#6
Thread Starter
Member
Re: Use sendkeys to outside application
No longer using sendkeys..
mouse event works.. Thanks for the help and looking
Resolved
-
Aug 14th, 2007, 02:50 PM
#7
Re: [RESOLVED] Use sendkeys to outside application
also look into keybd_event. It sends virtual keypresses systemwide so it doesn't matter which window is in focus
-
Aug 16th, 2007, 07:22 PM
#8
Thread Starter
Member
Re: [RESOLVED] Use sendkeys to outside application
I'm having issues with the mouse event.. Its not predictable I mean my program is calling it and it doesnt work every time maybe 1 out of 3 it will work..
-
Aug 18th, 2007, 02:35 PM
#9
Fanatic Member
Re: [RESOLVED] Use sendkeys to outside application
are you sure your app has focus when there beening sent?
 Originally Posted by 8bangerstang
I'm having issues with the mouse event.. Its not predictable I mean my program is calling it and it doesnt work every time  maybe 1 out of 3 it will work..
Live life to the fullest!!
-
Aug 19th, 2007, 01:36 AM
#10
Thread Starter
Member
Re: [RESOLVED] Use sendkeys to outside application
 Originally Posted by newprogram
are you sure your app has focus when there beening sent?
I didnt think it needed focus though it was global.. maybe thats the issue with it working 1 out of 3 times.
-
Aug 19th, 2007, 07:53 AM
#11
Re: [RESOLVED] Use sendkeys to outside application
using mouse_event you shouldn't need focus. But maybe the program you are sending it to doesn't have focus? in that case, the first click you send would give it focus.
-
Aug 19th, 2007, 10:40 AM
#12
Thread Starter
Member
Re: [RESOLVED] Use sendkeys to outside application
well the game is in full screen so it definitely has the focus.
-
Aug 19th, 2007, 06:15 PM
#13
Re: [RESOLVED] Use sendkeys to outside application
NO. Just because it is full screen doesn't mean it has focus. If you run your program from a keyboard shortcut for example while the game is full screen your program will get focus and you probably won't be able to see it because the game screen will be drawn with directx and that pretty much takes over the display.
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
|