Typing In DirectX?
Hi. I've got my keyboard input sorted, but I'm having big problems with an otherwise extraordinarily simple subject... typing. Is there no way to enter typing other than to use tons of If statements looking for key presses? Surely I've overlooked some super-simple method out there somewhere?
If it matters, I'm trying to make it so users can type a profile name in for my game. And, as can be guessed, it ain't workin'.
Thanks in advance SoM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
DirectX 7 2D To DirectX 8 2D - Guru Needed!
I need someone to help me learn how to do some 2D functions using Direct X 8. If you are familiar with DX8 (2D abilities, alpha blending, rotation, sprite drawing, etc..) PLEASE private message me here. I am willing to pay you for your time to act as my consultant. But you better know your stuff! LOL...
Scrolling DirectX And 6 Layers In DirectX
I'm working on a game which involves scrolling as you move and I think 4-6 layers are required. I have a Ground tile, Ground2 (above ground), BGTile (above both grounds), FGTile (above EVERYTHING including you), and im not sure if your character counts. The screen is 10x10 with the size of a 32x32 pixel for one tile. i was wondering if anyone could help me with how to make SIX layers (i can understand 2, backbuffer and the mainsurfer) but not how to make 6 show up in different layers... and either going under or over you or going over one other layer or being under another layer, errr see, its complicated for me heh... could anyone help me out? i left out SOME details such as how to make the tiles show up (you click on map editor and paste into screen, ill describe for whoever would help me) in the proper areas. also i would like a 4x4 box (from the center) thats walkable without the map moving, then when u walk any further then 4x4... it pushes the map over by 32x32, and keeps going if you hold it down... i was wondering if anyone could help me do this in a.... heres the key word.... SMOOTH WAY? if you could, you could reply on here with your AIM or MSN and I can get to you or you could IM me (AIM below) I would soooooooo appreciate this and you could have some recognition in the Credits. This is an online game about to be very popular, i need to convert the bitblt 15x15 map by map by map graphics to DirectX smooth scrollable 10x10.
Aim: Liquifywolf
MSN: Jeremyhoc@hotmail.com (not on THAT much)
Please help me, thanks,
-Wolf
btw: DX7 is whats being used
OR you could make a source including the above and send to liquifywolf@yahoo.com that'll also work
DirectX Ontop Of DirectX Help
Ok, let me put this in a way that won't confuse everyone...
If I wanted to make a digital clock show on top of direct X games, like counter strike or some other game that I can't modify the code to. How could I make the clock show on top of the game?
Self-Typing
How would I make my program type things? Such as, going to another window (like Word) and typing things that I have told it to type in the code? Just wondering if this is possible, and if so, how.
Typing
Does anyone have a code that would actually type something in from a text box, for example, with trojans when you use the keyboard. (not that I have used a trojan before o.O)
Upside Down Typing
Hello. I have a very strange question: Is there any way that you can use a RichTextBox and when the user types, it shows the text vertically. Any Ideas?
With My Typing Game
i have got it set up like this
Private Sub Form_KeyPress(KeyAscii As Integer)
If KeyAscii = Asc("a") Then
If Right(Label5.Caption, Label5.Caption) = "a" Then
Label5.Caption = Right(Label5.Caption, Len(Label5.Caption) - 1)
End If
If Label5.Caption = nole Then
Label5.Left = 0
End If
and i am trying to make it to only deleate the letters if it is that leter it will deleate but the statements i have tried havent worked i am guessing because i recieved this code " Label5.Caption = Right(Label5.Caption, Len(Label5.Caption) - 1)" from this site and used it without realy understanding why the code worked just thinking it worked and it did but now i have no if statement for it to only deleate that letter
In Word: Allow Typing ,no Changes
I would like to have a document that a user can type but once info is entered changes cannot be made without a password. The catch is I need info to be entered constantly but not altered.
Formatting While Typing
Hello,
I'm doing a File Editor, where these type of files are some kind of language (A little one), but I want to do something similar to the VB IDE, while I'm writing the text I need to give different colors to the TOKEN name and the VALUE like a, here is an example that I want:
Code:
POSY = 1cm
POSX = 1cm
TEXT = 2cm®Here is the Text Value
POSX = 1cm
POSY = 1cm
POSX2 = 3cm
POSY2 = 3cm
RECTANGLE
I need to give colors to this text:
TEXT : Blue
2cm : Green
® : Black
Here is the Text : Red
How I can do this
I'm using a Rich TextBox
but if you have any different way doesn't matter please tell me how ??
Thanks
Mike
Typing Text...
Hey guys, I was wondering if anyone could help me? I want my program to type text outside of the VB environment... What I mean is, say I click on Notepad, then my program would start typing. By the way, I don't intend to use this for MSN or anything like that, it's a college thingy...
Sinkquick...
Typing In Listbox
Say I have a question,
In one part of my project I have a listbox that when you click in it you can type to find what you're looking for.
For example if I had a listbox with a lot of names in it and I wanted to find the name "Dulsey" I could click anywhere in the listbox and then type D U L and it will take me right there.
Now I have listboxes in other areas of my project that simply don't behave the same way. I looked at the properties and can't really find a way to control that. I know I missed something simple somewhere. Any ideas?
THanks
Max.
Typing Into A Combo Box
Hey all,
I'd like to type into a combo box and have the contents of the Combo box appear in the text area as I type letters. Kind of like the way that the index of MSDN finds the items in the listbox by the letters typed into the textbox above...
Any ideas?
Thanks in advance,
Rich
Typing Right To Left
I was wondering if anyone knew how to type from right to left in a text box of mask edit box like how a calculator does. That way when you type it will fill from right to left instead of left to right. Thanks for your input.
Typing In A Listview
I have a list view that lists comments by date like this
1/1/02 Comment number three
12/21/01 Comment number two
12/20/01 Comment number one
I want to be able to click on a blank line and add a new comment or edit current comments. Can I do this?
If not is there another grid or view that I could do this with?
Collection Typing
Is there any way to type a collection object?
for instance
Code:
Dim X collection of <object or typename>
so that when I create a custom OCX I would be able to call it like
Code:
A = ocxCustom.CollectionOfTypes("KeyText").CollectionOfSubTypes("KeyText").Property1
B = ocxCustom.CollectionOfTypes("KeyText").CollectionOfSubTypes("KeyText").Property2
C = ocxCustom.CollectionOfTypes("KeyText").CollectionOfSubTypes("KeyText").Property3
Keyboard Typing
I was wondering If it is possible to in a text editing program, when you click a key on the keyboard, and have another letter come out on your document? EXAMPLE: Pressed A on Keyboard- Letter C Comes out on screen...
Thanks
Typing Letters
How can you make something like you know in some programs the letters dont just pop up on the screen. They are like if they were typed i mean. Like matrix style. Like if someone was writing them. How can you make that effect
Stop Typing
i want to make an app that will call a function when the user stops typing in a text field. is this possible
Text Box Typing
heya guys
does anyone know how to set a text box so that when it is typed in the first letter is automatically in capitalts and the rest are lower case.
Typing Tutor
guys can you give me some sample code in typing tutor... i mean the way they type then they checked if you type the correct word...
No Typing In Combo Box
I have combo boxes in the program I am writing, but during run time, if a user was to highlight the current text, they could type anything they wanted in it. How do I lock it so that this doesn't happen?
Thanks in advance
Typing Chinese Into VB
Does anyone know how to type chinese characters into Visual Basic IDE? I have tried all of the 'normal' methods of doing so, however once they have been inputted they all turn into ??s
I am trying to use string tables for multiple languages - so that I dont have to write heaps of if() statements when all I want to display is a msgbox!
Does anyone know a workaround for this?
Key Typing Problem
I'm using direct input to check what keystrokes are pushed, and if they are do something. Anyways, I have this code in a loop:
VB Code:
'Check for "np" If InStr(Current_Text_Position, Text, "np") Then Current_Text_Position = InStr(Current_Text_Position, Text, "np") + 2 SendKeys "{BS}" SendKeys "{BS}" SendKeys "no problem" End If 'Check for "nvm" If InStr(Current_Text_Position, Text, "nvm") Then Current_Text_Position = InStr(Current_Text_Position, Text, "np") + 2 SendKeys "{BS}" SendKeys "{BS}" SendKeys "{BS}" SendKeys "nevermind" End If
Etc.........
Anyways lets say I type, "nvm", it doesnt stop sending the keys "nevermind". Whats the problem?
P.S., I just noticed under where it checks for "nvm", it has np instead of nvm on the line below for the parameters for InStr. But the same thing happens when I type "lol" etc...
Notepad + Typing
Will anybody be able to tell me how to code Notepad to open, and when opened, program vb to type text in Notepad. By typing, I mean that the user can visually think that the computer is typing for its self. also if nebody knows any programs where this can be done, please post the link here.
Thankz in advance
gota (K)
Allow Typing Into A Listview
Please help me, I'm in a time crunch.
I have a listview object on a form, and I want to let a program user click on a line and it will let them type into the listview control.
For each line they click on, they should be able to manually type something in that field.
How do I do this in VB? Please provide code. HELP !!!
debashis22@hotmail.com
Typing Text
How can i make it look like the Computer is Typing text ?
like it types a label or something instead of it being there already
Abt Typing Combo...
hello any one can tell me
in combobox or in datacombo i have added some item
in betw A TO Z... when i type in combo... it should display list... aplabetcially
according to A TO Z is there any propery pls tell me
Find What You Are Typing
I have a usercontrol with the above code. It contains an array of lblEnum Labels.
I also have a richtextbox on a separate form with the myEnum UserControl on it. I want to, when the user types in the richtextbox, have a lblEnum on myEnum to change its backcolor and forecolor as seen in the below code if its .caption is the same as what the user it typing. (Im making something like the vb box that opens when you hit "."). Im using this code (The top is myEnum and the bottom is the separate form):
Code:
Private Sub richtextbox_KeyDown(KeyCode As Integer, Shift as Integer)
myEnum.SendType KeyCode
End Sub
Code:
Public Sub SendType(KeyCode As Integer)
txtHidden.Text = txtHidden.Text & Chr(KeyCode)
txtHidden.Text = LCase(txtHidden.Text)
For i = 0 To lblEnum.Count - 1
If Len(lblEnum(i).Caption) >= Len(txtHidden.Text) Then
If LCase(Mid(lblEnum(i).Caption, 1, Len(txtHidden.Text))) = txtHidden.Text Then
For j = 0 To lblEnum.Count - 1
lblEnum(j).BackColor = &H800000
lblEnum(j).ForeColor = &HFFFFFF
Next
lblEnum(i).BackColor = &HFFFFFF
lblEnum(i).ForeColor = &H0&
End If
End If
Next
End Sub
But it doesn't work. Why?
Typing Exercise
I am working on a typing exercise. What I want to do is that, when the user type the right word, the color of that character will change, but how can I do this?
thanks for help.
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 enter) to do that, though.
Thanks
Typing In Textbox.......
How do I get the text to go to the next line when typing in the textbox? It just keeps going on so untill I enlarge the screen...
Text Box Typing
I have a text box named main on my form named Form1, when the form loads it types in the text box, except after its done righting the first thing I want it to go onto the next line.
So if its supposed to write:
Hello,
My name is John
it currently writes:
Hello, My Name is John
when it should be:
Hello,
My name is John
The code is simple, all it does is this:
Code:
main.text = main.text + "Hello, My name is John"
I am using VB 6.0 on Windows XP Pro.
Help is greatly appreciated
Automatic Typing!
Yeah Uh I Saw A Program That Has A List And It Types By Its Self!
Please Giv Me The Ecellt Way How To Do It!
Auto Typing
Ok how would i make a program that outputs text? like i type in a word in a textbox then click on a command button, it focuses on word, note pad, or whatever and it types in the word from the text box.
Typing Speed
hi,
in my form there r 2 textboxes & 1 button,in 1st textbox there is one paragraph & based on that i want to compare second textbox if error it will be point out & at the button click give the typing speed.
thanks in advance...
Edited by - honey_sonal on 7/21/2007 12:50:22 AM
Touch Typing Tutor
How do you create a touch typing tutor program using visual basic, with a keyboard that has keys which light up when they need to pressed, possibly hands and an interesting graphic display e.g. a touch typing tutor similar in concept to http://www.flashtyping.com/
I really need some kind of tutorial that takes me through the process step by step with the code.
Thanks for any help that you can offer
User Is Typing A Message
hey,
I made a lan-chat program, and stopped at a point, you know the thing in Messengers
"User is typing a Message"
yeah, I want to make one like it, when I type a message to say at the other prog the user is typing....
I made a way and it worked....good, it was like this:
I added a timer, add this code to it:
Code:
Private Sub Timer1_Timer()
If Label1.Caption = "Connected" And Text1.Text <> "" Then
Winsock.SendData "/000data"
DoEvents
End If
If Label1.Caption = "Connected" And Text1.Text = "" Then
Winsock.SendData "/111data"
DoEvents
End If
End Sub
when I connect to the other comp, label1 turns "Connected"
text1 is the place where I write.
and I added this code to the reciever:
Code:
If Left$(strData, 8) = "/000data" Then
Label3.Caption = "Sender is typing a message..."
Else
If Left$(strData, 8) = "/111data" Then
Label3.Caption = ""
end if
end if
as I said its good, but the problem is, I've added FILE TRANSFER, add with this code the file trans wont work because this keeps on sending info and it gets mix up with the file....
I deleted it and the file trans works great, but I need it
is there anyother way?
Typing Unicode Characters
Hello
I am writing a Macro for a MS-Word 2000 template and am trying to type a UNICODE character.
Character set number is 257.
If I hold ALT key and type 0255 (or less) I do get the character I expect. However if I hold the ALT key and type 0257 nothing appears. How can I add a unicode character to my Macro?
Regards
MichaelNZQA.
How To Prevent Typing In Combo Box?
I have a bunch of combo boxes I need to prevent typing in. They're pulling the data from tables, and the contents are managed in another form to prevent people from entering a bunch of junk. I'd like to prevent the users from typing in the combo boxes, but I don't want to lock them, as the users need to be able to change the values. Any ideas?
Method List After Typing .
In some of my apps, after i type the ".", a list of methods comes up for me to choose from. In some of my apps, this doesn't happen. How do I turn it on? An example is:
frmShipping.Hide
in my first project after i hit the ., a list comes up such as "Appearance, Caption, Hide, Show, etc." This option must be turned off in my second project?
thanks!
Typing Special Character
i know its a stupid question lol but
i can't remenber it nor can i find any matching answer in google too
Text Appears When Typing
When I am coding in Access, it used to be that as I typed code, for instance:
Me.textfield
the available options would appear (pop-up) an I could select from them. Now it happens but only for a fraction of a second, then dissappears. I also noticed that after I type something, the cursor "jumps back" several spaces and since I end up with something like:
If Me.field=Ture
as opposed to
If Me.field=true
Any ideas?
Prevent Typing A Value In Combo Box
hi.
how do i prevent people from typing in stuff into my combo box? i want them to only be able to select the things that are there....i've tried 'locked' but that just doesn't let you choose anything.....any other ideas? thanks.
Typing Cursor Position
hey whats up yalll?
iam try to make a HTML editor...but iam trying to insert some tags by letting the user click on menus
eg: if user clicks on <html> tag menu
it will insert this tag in the place where the typing cursor is ??
but i dont know how to do this...
i tried richtext1.seltext = <html> but that doesnt work
did a search and found nothing
i think i will need some API or something....help plz
Disable Typing In A Combo Box
Given a Data Combo Box [dcb].
Currently the user can write something in the text field or select one of the choices that are given in the combo box. I need remove the users ability to write text in the combo box so that the value that is chosen must come from the list.
I tried dcb.enable = False however this removes the users ability to scroll down the choices. I only want to remove the ability to enter a new value and not choose from the list.
Get Coordinates Of Typing Cursor
You know the little cursor type thing that appears while you're typing..looks like a "|" and follows the text, well, if there anyway to get the coordinates of it, see i need it for a program where a picturebox is supposed to appear where you're currently typing, and this seems the only way. Does anyone know/have any code to do this?
|