o
k
q
u
e
s
t
i
o
n
s
.
c
o
m

DirectInput problem - Simulating Keystrokes -

I'm trying to make a program that simulates a keystroke for a game (have tried keybd_event, and postmessage/sendmessage), and I can get it to work when the game is in a state where it seems to accept regular windows keyboard events (like, when you are typing text to say to another person), but the game will not accept the same code any other time. It's a DirectX 7.0a based game, so I'm thinking that it only accepts DirectInput keystrokes during regular play (as long as you're not chatting).

I saw another example of this in this thread:
http://www.vbforums.com/showthread.p...put+directx+xp

I'm getting the same exact problem. It works in Windows 2k, but not XP.

Now, the thing I'm wondering is if there's any way to simulate a DirectInput keystroke, or to fix this problem with XP (it's probably something pretty simple, but I've searched for 3 days and haven't found a thing).

If anyone can help, it would be much appreciated.

 

DirectInput problem - Simulating Keystrokes -
I'm trying to make a program that simulates a keystroke for a game (have tried keybd_event, and postmessage/sendmessage), and I can get it to work when the game is in a state where it seems to accept regular windows keyboard events (like, when you are typing text to say to another pers


Simulating typing -
Is there a way to simulate keystrokes, so that they will appear in another program? What I want to do is have a list of links that my browser visits on a regular basis, being controlled by a program running in the background. I'd need to know how to do special keystrokes (tab and ent


SendInput+DirectX8 App+XP=Not working -
I'm writing an application that needs to send keystrokes to some applications, including a few DirectInput ones. I'm using the SendInput API, and the code works flawlessly under Windows 2000 - all applications, even the DirectInput ones, are recieving the keystrokes sent. Unfortu


[VB] DirectInput Question -
Hello, i want to know if it's possible to emulate DirectInput's events, for example if I press a key in the keyboard DirectInput create a event. Thanks.


DirectInput -
Hello, I am currently working on a macro program for a game and it uses DirectInput. Is there any way to send keys to that program? I don't mind if I need to use other dll's or stuff like that. Thanks!


SendKeys using DirectX's DirectInput -
Since DirectInput works at the lowest level and obtains input directly from the keyboard, is it possible to invoke a SendKeys type function? It seems as though it would be possible. If not, what can do a better job than SendKeys, the SendInput API, and the Keyb_Event API?


Sensing keystrokes -
I need a routine that will allow me to sense the keyboard and keystokes. I have tryed to use the Form_KeyPress and FormKeyDown routines with only partial success. After a while they seems to lock up and stop functioning. Is there another routine that uses the API or something, that


Faking DirectInput -
I'm trying to find out.. if you have a program gathering its input through direct input, is there a way to simulate something through there? Like a keypress or mouse move /click? I think this may be the reason a program I'm trying to create a macro prog for is ignoring a lot of my


Mixed Keystrokes -
I am making a text editor and a RTB servers as the main interface. I have a form with key preview turned on. When someone types in the RTB the form doesn't get the keystrokes at all? How can I let the form get the keystrokes first, deal with them and then let the RTB have them?


GamePad input for DirectInput in VB6 -
I can't find a descent example anywhere that shows how to access the gamepad and buttons. At the moment I'm using the outdated DirectDraw7. I've found plenty of examples of how to use DirectInput for Keyboard strokes, But not Game Controllers. Any help would be appreciated, Thanks.


Global Keystrokes Capturing -
does anyone know how to capture keystrokes globally. What i mean Globally is that anything that is being typed on the computer, not only in my application. For example, capture the keys when typing something in the MS Word or anything else. I just want to be able to send these keystro


Sending Keystrokes to a file -
Hi, I was wondering how to send keystrokes to a file. I can get my vb program to display the keystrokes but do not know how to make it send them to a file. I am using VB 5. Please Help. Kevin


SetWindowPos -
These are my steps: 1) Set my VB form always on top using SetWindowPos. 2) Call another application, X. 3) Get its handle, using FindWindow. 4) Set foreground window to X, using SetForegroundWindow to let X receives all the keystrokes. 4) Send keystrokes to X using SendKeys.


Simulating keystrokes to a fullscreen DOS app -
Hi guys I'm new here so please dont bite me I have a VB.NET app I'm using to send keystrokes to a DOS app (I'm using Quake 2 as an example since I can emss round with the source of that) I'm using the code below to simulate the keystrokes, and although it works fine for Windows p


intercepting keystrokes! -
how can i intercept all keystrokes, even when my application doesnt have focus and is running in the background? thanks


Trapping keystrokes -
HI, How can I trap keystrokes of my computer through API. Can any one please help me through code.


Capturing Keystrokes...sorta but not really important... -
Hey all, Is there any way for VB to capture keystrokes even if it doesn't have the focus? I need to close in on some person(s) who think they're being cute and wrecking network IDs at work.


Sending keystrokes to a Directx Game (VC6) -
Hi! it's about 1 week that i'm trying to send keystrokes to a windowed 3d videogame. It's a game where I'm able to chat or to use Keys to perform actions. If chatting, (same window) i'm able to send keystrokes...if I'd want to eg:move my character, it just ignores the keystrokes I s


Stopping Keystrokes -
Hi,im a fairly new vb programmer and i was curious.... is there a way to actualy STOP people from using keystrokes like alt-f4,ctrl-alt-delete,[windows key] etc.... any response would be appreceated


Simulating mouse click -
I searched, and I only find threats where you can use screen coordinaties, and then click. But what if I want to move my mouse by myself to the specific button, and thén simulating a mouse click? Thanks


Other input Devices with DirectInput -
Hey all, I am trying to figure out how I can detect a device I have connected to my machine. It is a footpedal device I am trying to use with my app. How do I detect what the device properties are for this device? It has three buttons total and was recognized as a compatible direct


Sys Tray security app -
I have a security app on this computer that keeps people out of my personal files. However, at this time, it's a standard .exe sitting in one of the folders, nothing difficult to find. What I'm looking for is a program that launches from the Windows startup, and maintains itself act


Simulating Ctrl-Alt-Delete under NT/2K -
I've been trying to find a way of simulating a Ctrl-alt-Delete keypress under NT/2K does anyone have any idea how to do this. I've tried both the keybd_event and send input functions but so far I have been unsuccessful in getting them to simulate the ctrl-alt-delete keypress Any ide


DLL Wrappers -
Could anyone tell me how I would go about writing a DLL wrapper? I'm trying to write one for directinput and no clue if I'm going in the right direction. What I did was change the name of dinput8.dll to olddinput8.dll and in my DLL I declared the functions of directinput (found in


[2008] How to code this -
I want to automate the deletion of certain parts in my forum. What I'm trying to do is this: I enter a string, then it calculates the ammount of characters, then keystrokes the delete button or backspace button, a radio button option switches between them, the same ammount of times as


Keystrokes... -
Can ne1 tell me how to send keystrokes as if the user had pressed them? And is it possible to send them to a particular program while its running?


Reading Keystrokes -
Hey, I have a question regarding reading keystrokes when the program is minimized and is not in focus... For example the user has word open and types something. Is there a way to record their typing. It should work similar to Keydown. I am thinking a way using some API it should be


Joystick with DirectX -
I am having issues getting a joystick to work with VB.NET and directx 9. I have gotten a joystick to work in VB6 no problem with directx 8, but now with 9, I just can't get it. Here is the code I have so far: VB Code: Private Sub Form1_Load(ByVal sender As System.Object,


Using Keystrokes.... -
OK, I need a little help... I was wondering how to capture keystrokes. I'm making a little game here and was wonding how to use the arrow keys as controls. I can build the logic behind this, but would just like a form to start with. When the form is up and you press either up, down,


Compact & Repair current Access DB from VBA -
I've put "cleanup" buttons on some of my Access 2000 switchboards that delete temp tables, and I thought it would make sense to do a compact automagically right after that, but ... DoCmd.RunCommand acCmdCompactDatabase fails with the error message "You can't compa


DirectInput keyboard poling question (Resolved) -
I'm writing a game using DirectInput. The game uses full screen 3D animation, so to debug I'm using remote debugging over a network. The only input I'm currently working with is the keyboard, and am having some troubles. DirectInput allows for immediate and buffered input. Buffered inp


Forcing keystrokes for password entry -
Hello Everyone! I have a PDF file being opened in a OCX control in one of my forms, and it requires a password before it can be opened. However, I do not want the user to enter the password. Right now, I have my program set up to watch for the "Password" window, and then i


[2005] Detecting Keystrokes -
Hi guys, I can detect key strokes using the keydown function, but this only works when the form has focus, I am after a way to detect all keystrokes despite what program has the focus, can any one help?


Intercept keystrokes to browser -
Hey guys... i'm wondering how i would go about intercepting or hooking or whatever a couple of keystrokes going to any browser window... how would i go about doing this? let's say the user entered something into a textbox on my page, i want to be able to intercept that....


need to capture all keystrokes... api perhaps -
I want my usercontrol to close whenever the user presses the Escape key, whether the control has the focus or not. I'm just wondering how I can capture the keypress events with my usercontrol (just they keystrokes that happen in my form)


Monitor keystrokes without focus -
I am trying to write an application that launches one of 5 or 6 different emulators depending on what menu item is selected. I also want to be able to end any of those applications with a single common keypress. For example, 3 of them will end with the F12 key, but a fourth will


Capturing Keystrokes outside main program -
Cheers all, Could someone tell-me (or point to an older post) how to capture keystrokes outside the main program? My objective is to get the VB app to recognize and perform an event whenever the user hits the F12 key. Thanks, Black_Vise


[2008] Keylogger Help -
Hey, I need some help with a keylogger. I want to make the app to log the keystrokes, then when u click upload, it will upload the keystrokes to a text file on a website that i own. How would this be possible?


How can I send keystrokes to another app -
hi, I need to create a small application that will act as a keyboard on screen. How can I send simulate keystrokes in another application? Thanks, Cedric


telling a Picture box to intercept keystrokes -
I have a pictuer box on top of a form, is there a way to tell the picture box to intercept keystrokes? sort of like a keypress event?