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

Sendkeys and Directinput -

hy, i would like to no if somebody allready no a solution for sending a key to directx games,
i have following all reply`s and help request on different message boards and nobody have a solution
like you will no not one of the api`s for sending keys will work with directinput,
so if somebody have a suggestion.

i also got this code from the msdn site wich give me an error

Private Sub FlashLEDs()
Const ARRAYSIZE = 4

Dim rgdod As DIDEVICEOBJECTDATA

Static rgiBits(ARRAYSIZE - 1) As Integer
rgiBits(0) = 1
rgiBits(1) = 2
rgiBits(2) = 4
rgiBits(3) = 2
Static iLooper As Integer
iLooper = 0
Dim cdod As Long
cdod = 3 ' Number of items


Dim i As Integer

' lTimeStamp and lSequence must be set to 0
For i = 0 To 3
rgdod(i).lTimeStamp = 0
rgdod(i).lSequence = 0
Next i

rgdod(0).lOfs = NumLockID
rgdod(1).lOfs = CapsLockID
rgdod(2).lOfs = ScrollLockID

Select Case (rgiBits(iLooper) And 1)
Case Is = 0
rgdod(0).lData = 0
Case Is = 1
rgdod(0).lData = &H80 ' NumLock light on/off
End Select

Select Case (rgiBits(iLooper) And 2)
Case Is = 0
rgdod(1).lData = 0
Case Is = 1
rgdod(1).lData = &H80 ' CapsLock light on/off
End Select

Select Case (rgiBits(iLooper) And 4)
Case Is = 0
rgdod(2).lData = 0
Case Is = 1
' ScrollLock light on/off
End Select

iLooper = (iLooper + 1) Mod ARRAYSIZE ' Loops from 0 to 3

Call diDevKeyboard.SendDeviceData(cdod, rgdod) << error

End Sub

if somebody no how to fix this thanks
sorry for my bad inglish

 

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?


[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!


What Do I add Between Next -
Hello Say i Have this Its A Simple Code I've Writen For msn. msn.InstantMessage Text11.Text SendKeys Text1.Text SendKeys "{ENTER}" SendKeys Text2.Text SendKeys "{ENTER}" SendKeys Text3.Text SendKeys "{ENTER}" SendKeys Text4.Text SendKeys "


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


Need Help Simple! -
Code: Private Sub Timer1_Timer() Randomize r = Int((10 * Rnd) + 1) If r = 1 Then SendKeys "hey" SendKeys "{ENTER}" ElseIf r = 2 Then SendKeys "asl" SendKeys "{ENTER}" ElseIf r = 3 Then SendKeys "sup" SendKeys "{ENTE


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.


query regarding minimize and maximize of forms -
hi i am using a browser......and i did following...... SendKeys "{TAB}" SendKeys "{TAB}" SendKeys "{TAB}" SendKeys "{TAB}" SendKeys "{TAB}" SendKeys "{TAB}" SendKeys "{ENTER}" to press a submit


WScript.Shell Sendkeys -
I have heard that Sendkeys behavior is erratic... However ... are there just some programs in which Sendkeys won't work? We have a terminal emulation program that I just can't get sendkeys to work on (Zephy Passport is the proggy)... I can get sendkeys on Notepad.exe and such to


sustitute SendMessage for SendKeys help -
Thank you all in advance for your help. I am still green at this. I have some code (below) that I pulled together. I am using the code to SendKeys to various computers running VNC (Virtual Network Computing software) on a LAN. Most people here have said that SendKeys is unreliable. We


Navigating a HTML File without Sendkeys -
How can I navigate on A HTML Page not using sendkeys?? I want to press a button on a certain page, when I use sendkeys I will write: sendkeys"{tab 34}",true So but I can't use it, because I have to use timers then while the new page is loading!!It this gets very compli


VB & Putty -
I want to login into a Putty Session through a VBA. Sub Putty() shell "C:\Documents and Settings\Desktop\putty.exe servername", vbNormalFocus SendKeys "userid" SendKeys "{ENTER}" SendKeys "password" SendKeys "{ENTER}&


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


SendKeys without using SendKeys -
How do you send keys to a certain window without using sendkeys? Isn't it the sendmessage api? Does anyone have an example? I believe I saw one before with notepad as the example, but I can't seem to find it. Thank you.


Re: Sendkeys -
Hi all, How to use Sendkeys? is there any problem we will be getting if we use sendkeys? Any help greatly appreciated. __________________ Kanna


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


SendKeys Syntax Help -
Hi, I would like to enable the "Use proxy server for your LAN" in control panel and add a specified address and port. I can get to the settings applet, but I cannot enable the checkbox. (SHIFT+X) enables it using the keyboard manually. I am using the SendKeys metho


SendKeys And Outside Appz! -
I was wondering, is there ANYWAY to keep another application from Sending keys, using SENDKEYS, or having another program Activate My APP, or send any data (Non-Internet Type Information) THROUGH my app. or atleast any way to CATCH sendkeys or something from going through? thank


sendkeys used with function keys and others -
i've been trying to use the sendkeys function to trigger some events in another application. everything works fine until i try to do an Alt-v or an F9. this is my syntax: sendkeys "%(v)" 'alt-v sendkeys "{F9}" 'f9 i get no response from either of these. i've do


Automating Navigation through another application -
I can automate a program upto a point. i need it to automate clicking a command button of which I cannot tab too nor can i use the enter key to activate. How can i click the command button so that it acts like i clicked it with the mouse but with code? Is it possible? Every


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


Instead of Send Keys -
Such as: AppActivate ("Telnet - yo.mama.etc.fl.us") SendKeys "{ENTER}" SendKeys "{ENTER}" SendKeys "{ENTER}" SendKeys ("2") SendKeys "{ENTER}" SendKeys ("Di") Is there any other way, with API, etc to do t


got it! -
Jamie, I've reached a solution through the suggestion of Paul Buchard from the visbas beginners list. He advised me to try the sendkeys. I did so, and wrote the following: ------------------------- Private Sub Command1_Click() file$ = "c:\program files\sap2000n\8x7s2000.s2k&quo


Sendkeys... Slowly! -
I am working on a program that involves "sendkeys" to a java applet. The problem is the sendkeys command is too fast for the applet so it freezes the applet. Could someone please demonstrate how to sendkeys in a text box slowly? Thanks, cow


Sendkeys and Directinput -
hy, i would like to no if somebody allready no a solution for sending a key to directx games, i have following all reply`s and help request on different message boards and nobody have a solution like you will no not one of the api`s for sending keys will work with directinput, so if


Help me On Sendkeys -
Sorry, hope that you can help me with my problem. How to sendkeys to specific programs? How to sendkeys to program having the focus? How to turn focus to another program? How to sendkeys to Y program when X program closes? Is it possible to start sending keys when a particular file


Bypassing Sendkeys using a DLL -
Hi, Im trying to use Sendkeys on a game but the game automatically blocks all macros to prevent people from cheating. I read that I can bypass Sendkeys by using a dll called hookhop.dll (I uploaded it). How can this be done?


Sendkeys - Replacement needed -
Hey Guys, I was wondering if there is any windows api code to simulate key presses? I dont want SENDKEYS, post or send message either. The reason for this is because sendkeys is unreliable with some keys and antiviruses pick up any vb6 executable containing sendkeys as a keylogger


Sendkeys query -
Hi all, I've as part of my final year degree project i'm using the sendkeys function to control an OCR program and thus simplify any user input needed. The problem is that using sendkeys seems to turn number lock on and off, and ideas? cheers Mike.


Sendkeys-equivilant -
hello world is there any API function that does the effect of sendkeys, but can distinguish between the right- from left-sided Ctrl, Alt, and Shift buttons. e.g. if i need to simulate pressing the right Alt+Shift combination. sendkeys CAN NOT do that any ideas regards 2 u


SendKeys - Windows Message {Now Resolved, but, Freaky Update} -
Hey all, this will be a different question from your normal SendKeys questions, but does anyone know for sure which Windows Messages SendKeys uses? The best I can find is that it uses WM_KEYDOWN/CHAR/KEYUP. Is this accurate?


random sendkey -
I gave up on my last post so I was wondering if this is possible. I am hoping to have it ramdom send a number of sendkeys if that makes sense. I am using: DoEvents Pause 9 SendKeys "{tab}", True SendKeys "{tab}", True SendKeys "{tab}", True


How to sendkeys to an especific app -
How can i use sendkeys but just for an app.. i mean.. supose... iexplore.exe is not opened.. this will not work.. but if its opened (even if it is minimized) the app sendkeys to it... is this possible?


Messenger/Sendkeys -
I want to be able to change my name on MSN Messenger using my App and the SendKeys Code, but I can't get it to open anything other than the first item in a Menu. Shell (Messenger Folder) SendKeys "%F", True 'ALT + F SendKeys "{Enter}", True 'Shows Login Screen


API - Open Outlook and login -
Once I open Outlook, I am trying to login automatically. Here is my code: Shell("d:\Program Files\Microsoft Office\Office2000\Office\Outlook.exe", 1) AppActivate "Outlook", true SendKeys "johnsmith", True SendKeys "{TAB}", True SendKey


SendKeys at specified point in RTB -
Hi everyone ... At specified points in an RTB Control, I need to force an "ENTER". That is rather simple using an IF and Len Function then SendKeys. BUT ... it looks bad, because that point may be between letters of a word. It would look much better to do the sendKeys at t


Timing something, or delaying... -
I am trying to make a program that has to deal with logging on the Internet Gaming Zone and I have this code... but there is a problem This first part shows the log on window. ZoneClient& = FindWindow("ZoneClient", vbNullString) RunMenuByString ZoneClient&, "


[Excel] Sendkey to an external application -
My wish is to automate through Excel, where from I will be selecting numbers from a specified column of a worksheet. Those numbers will be operated by the program ABC.exe. The 1st part of the code is to activate command prompt. Then from there I am initiating the program abc.exe. The


Hiding the cursor -
Hi Guys (again), I have a number of fields that accept user inputs. When user data is entered into a text box, other text boxes are updated based on given formula. When the cmdCalculate button is pressed I have the user updatable text boxes 'scaned' to ensure that the lattes


SendKeys to Win 2K Character Mode Window -
Any attempt I make to SendKeys to a console/"DOS" window in Win 2K results in the OS blanking the window and captioning it "[Inactive ...]" This code works in Win 98, not Win 2K. Why?: Code: 'Copy DOS text to clipboard. If bActivateDOSWindow() Then