Input Problems! Please help -
Hi,
I have a DirectInput game which I am creating macros for, I've written "man-in-the-middle" DLLs of dinput8.dll which allow me to access the game's IDirectInput8 and IDirectInputDevice8 interfaces, and through my debug messages I've managed to come to the conclusion that the program is acquiring both a keyboard and a mouse input. That's all fine and dandy.
I can read/write the keyboard state when the application requests GetDeviceState about the keyboard device; But strangely enough, the mouse interface _never_ makes any requests to get data or even set an action map, through my logs, the only function which are called are:
SetProperty, SetCooperativeLevel, SetDataFormat, Acquire and Unacquire.
I can't for the life of me discover how the mouse is controlled; So I dove into the assembly of the program and found that during startup it loads a Cursor from the .resc section.. Strange thing for a DirectInput + DirectDraw application to do. I figured that perhaps I could control the mouse pointer via normal windows messages.. But alas.. No luck. I could move the pointer with SetCursorPos which increased my hopes, but I can't send a click message through WM_LBUTTONDOWN at all, and looking at the wndproc assembly of the application, it doesn't even parse those messages anyway.
I discovered with SetCursorPos that it only works if I call the function within the context of the application; IE, I call in in my "man-in-the-middle" DLL, and it doesn't work if I call from an outside app.
I'm really stumped for what to do; Pondering if perhaps the programmers have acquired a seemingly non-used interface to the mouse with DirectInput (and I wouldn't put it past them :/) or simply found a really good method to hide the interface from potential "hackers" of the game.
Save me from vexation, I beg you ^^
Problems with KeyAscii and Selectalltext, and one more -
I'm having problems trying to limit the input into the textbox's using the KeyAscii case.
I used this same line in a program last week and it worked, so I'm puzzled why it's not following the rules of the case that is specified.
Also, again I used the SelectAllText, in a program, an
If & Equals -
Can any1 tell me why the code inside the if statement isnt executed??
input = 2+2 in this case
Code:
while (curPos < length)
{
if (input[curPos].Equals("0") || input[curPos].Equals("1") || input[curPos].Equals("2"
2 records, 1 row! -
I have my datareport giving the correct information I want and everything, but can't do the layout I want. My details are small enough per row to fit 2 on side by side. So instead of:
1 Input Input
2 Input Input
per line I want:
1 Input Input
MOre basic VB questions - Text Box control -
Thanks to the VB GURUs for help on my previous text box question. Here is another one for ya! Say I have three text boxes that I input info into: A, B, and C. Say I also have three text boxes: 1, 2, and 3 that the info. I put in the first three goes into them as follows:
Input from
Data display problems -
Dear all,
My asp page dynamically generates HTML data. Sometimes I have to populate an HTML text input with some data e.g. New's Along. In this case the ' in the word New's causes problems. For when I generate the HTML for the text box it is as below
<INPUT TYPE=TEXT VALUE='New
Form Posting Issues -
Hey everyone,
I'm having problems posting a form to another website. The website I am trying to post to does credit card transactions and requires my data to populate their form.
The code they provided me with was as follows:
Code:
<form method="POST" action=
ActiveX Control -
Hi all!
Rite now, I need to build an ActiveX control that can do the following stuff:
(a)On a click of a check box, it can capture the audio input from the microphone and show the current audio level by using a progress bar
(b)Volume Control for Microphone Input by using a sl
whats wrong with this loop -
I'm trying to read in a file line by line and store it into an array. When i run the following code i keep getting an error that tells me: "Input past end of file". Any ideas?
Open fileName For Input As #1
While (cnt < fileCount)
While Not EOF(1)
Playing sounds as microphone input -
Is it possible to play sounds(mp3/wav) from my pc and let it act as the microphones input?
It would be cool if this is possible in VB.
Maybe i can do this(which i don't really like...) :
I've got an amplifier on my subwoofer(connected to pc).
Send the sound from the pc to the sub,
Binary - Simple Question -
Hi,
I am having problems understanding binary:
1. What is the difference between open path for binary.. & open path for input.
2. If I load the data from both the examples above into strings will they be the same (if the files are exe)?
3. If you open an EXE file (open st
Problems Reading Text File. Help! -
Hi,
I'm having problems trying to read a part of a text file.
The file has a row of numbers like this at the end
56 67 65 32 33
34 67 56 33 44
12 34 55 66 77
I'm trying to read the numbers with a code that looks something like this:
Do
Input #fnum,
Rounding decimal Numbers -
Hi ,
How can I get the Following output
Let's say
input - 1.0
output - 1
input - 1.1
output - 2
input -1.2
output -2
'
'
'
input - 1.9
output - 2
input - 2.0
output - 2
input - 2.1
output - 3
input -2.2
output -3
'
'
and so on...
<input box> -
Is there a way to limit the input into an input box.
Ie..only 7 characters permitted.
Please don't reference other controls as substitutes as I am only interested in knowing if and how one could limit input into an input box. It's not a big deal, just something that I would like to
error handling discussion -
Hey everyone.
Have you ever done any kind of error loging or something like that in a VB App. I have got a large app that I would like to set something up for.
Basically I would like to put something in every function or sub that would log errors to a text file on the network.
DBCombo, OLE Name Of PhotoEditor ,... -
Hi, Dear Friends
Thanks for friends who are ready to help other for solving their problems.
I have three problems in VB6.
1) How can I change one Form’s Status to Modal?
2) DBCombo must have two types Data Stream. One for Input and one for Storing Link or that data to table. I
uses of input boxes on Word -
I am trying to hide what is displayed when a user enters in an input box by masking the characters somehow. Is there any possible way to do that while using input box ONLY. I know it's possible using a text box... but i really need it while using Word's input box option. Thanks.
text manipulation -
hello i hope you can help ipleaseeeee :-) i am trying
to read data from text but i cant make it to work
i have a text that look like that alot more numbers but that's the idea
5 5456
3 5345
5 4543
i need to ch
Question about a factorial program -
I was wondering if anyone can help, because i cn get it to work in java but not in C++.
#include <iostream.h>
void main()
{
int input;
cout<<"Type in a number\n";
cin>>input;
for (int i = 1; i <= input; i++)
{
input = i * input;
}
Changing handling of keyboard input -
I'm looking for something that will change the way keyboard input is handled. Someone told me when they press down 2 keys, such as 1 and enter, it will repeat that sequence of all keys over and over: 1 and enter. When I do it, I get 1, then a whole bunch of enters.
I'm thinking this
Keyboard Input Disables Problem -
We have an application written in Visual Basic 5 that runs great on Windows 95 and Windows 98. The problem is that now we want to change to Windows 2000 and after a short time of my users entering data keyboard input becomes disabled. This seems to happen when the NUM LOCK key is dow
Httprequesr and MySql... -
HI,
I need help. I'm using the httprequest object to update tables. I get to update 'em but if i try to select the data recently input then I can't. i.e. let's say there's a textbox for ID, NAME, ADDRESS, and PHONE, using the httprequest object I get to send the data input on
stdio vs fstream - C++ -
Is there a reason I should use functions from the fstream header rather than just using fputs from stdio if all I want to do is input a string to a text file depending on what button a user presses? There is no user supplied input so I don't need to worry security vulnerabilities or an
Validating content of a ListView item -
Hi everyone,
I'm implementing a kind of "project manager" software, and I chose to use the listview as the tool to list all the tasks of the project.
I'm having problems to validate the items that the user inputs. For instance, one of the columns is a "datetime"
JavaScript Loop -
Can anyone tell me why this code goes into an endless loop or freezes my browser when I run it
Code:
input = location.search.substring(1);
while (input.length > 0) {
variableName = input.substring(0,input.indexOf('='));
input = input.substring(input.indexOf
...............Desparate now...(beginner stuck) -
I posted a similar question yesterday. Thanks to the guys who replied, but I didn't explain myself properly.
I have a number which has been input by the user. Could be anything, but normally not greater than about 10 or so, but may be up to 2 decimal points.
From this number, I nee
Filtering out bad characters before storing text in DB -
I'm using SQLite to store text input from a CGI website. The text is later displayed as part of an HTML page. Are there any characters I should be filtering out from the input text that might otherwise cause problems (or security risks) when storing in SQLite?
Calendar Problems -
Hi there,
I need to change the date of the calendar, depending on the user input, so that when a certain input is entered then it will change the date on the calendar.
Ideally, I need it to change the today's date, and display the right month screen.
I have tried changing thi
How Do U Create Input Control Read!! -
hi there i have a form with 2 textboxes and a button. One for numerical input and another for text input and an enter button to go to another page. The thing is i dunno how to create conditional code for the button which checks the input of the textboxes.
basically I want one textbo
Open file read into textboxes -
I get an error everytime I try this and i'm not sure why it's not working. please show me what I did wrong
F = FreeFile
Open CommonDialog1.FileName For Input As #F
Line Input #F, Txt1.Text
Line Input #F, Txt2.Text
Line Input #F, Txt3.Text
Line Input #F, Combo1.Text
Line Input
FILE INPUT DELIMETERS -
I am using the input statement to read in data from a file,
Input #1, strInput
Some of the lines of the file have a comma in them, which cuts off the input and puts the rest of the line into the next input statement(i am using a do while loop).
I know that the Input Function d
how to validate user input in dynamic controls -
hi,
Iam trying to validate dynamic controls.This form has dynamically created controls and gets the user input which should be validated.it has to validate email,phone number,state,zip etc.i have written procedures for these validations but having problems impleminting it.how do i us
accessing files on network -
I've written my first program for a network.
The app has to input data and output data to a maximum of 1000 small files from several workstations at the same time. Only a few of these files exist at the moment and there have been no problems. However I would like to know what problems
EOF function in VB 6 -
We have code that works most of the time, but fails once in a while. It is basically as shown below. It reaches the end of the input file but keeps writing the last line of input to the output until it has created a file of hundreds of MB's and fills that disk.
We are having some
textbox problems -
I have a "More Input" button in my form which should make additional textboxes to appear in the form, Initially, when the form loads it should only have one textbox and when the user clicks the button, another textbox should appear below it, so that the user will have more in
Input Box Cancelling -
I've searched the forums, and no luck. Again, I'm beginner here
My program accepts exactly 10, no more no less, numbers from input boxes. Well, upon pressing cancel, it gives the error message specified for invalid input, such as non-numeric input or empty input. I'm so glad th
Accelerators in Excel VBA... -
Has anybody had problems using accelerators in Excel VBA? I have an add-in with a 'wizard' type interface. The 'Next' and 'Back' buttons are accelerated on the N and B. I have code in the cmdNext_Click events. When I try to break on this code it doesn't always happen when I'm using the
Using "Click-Once" to publish embedded text files -
Edit : I'm using Visual Basic 2008.
Hi, this is driving me insane. I have 4 text files that are needed for my application to run and I'm using the following code to read the data in them :
Code:
FileOpen(iFileNum, "..\AirProp.txt", OpenMode.Input)
For J = 1 To 45
[2005] SQL server and connection problems - Urgent help needed -
Hi all, I have been experiencing this problem alot and in need to get it solve. I do not know if I have changed some settings unknowingly as I am still very new to the application itself.
I have attached 2 files in my post. The first picture depicts my problem in adding a connection
Automating file input element -
Guys, if we see
<INPUT type=text name=hello>
We can just do hello.value="hello"
If we see
<INPUT type=submit name=hi>
we can do hi.click
What about if we see:
<INPUT type=file name=hi>
How do we automate that kind of input?
Input to Animation Help. -
Ok Hi I am haven'tm been programming with visual basic long and am doing a project for school and I desparetly what I am doing is making a animation where you make your own characters name up for example you input Bob into where you put the input then along with a picture of the animat