|
-
Jan 2nd, 2002, 04:00 PM
#1
Thread Starter
Hyperactive Member
changing letter outupt!????
ok i want to change the letter that comes out when i press a key any where in my computer.,
lets say i am typing here at vb world, and i type a letter "o", and i want a "0" zero to come out, can this be done????
I know a lot oF Vb, expert in C++, and i think in assembly.
MSVC++6.NET
vb6
masm
Windowz Xp
I find my self using this a lot in C++
__asm {
}
-
Jan 2nd, 2002, 04:40 PM
#2
Thread Starter
Hyperactive Member
I know a lot oF Vb, expert in C++, and i think in assembly.
MSVC++6.NET
vb6
masm
Windowz Xp
I find my self using this a lot in C++
__asm {
}
-
Jan 2nd, 2002, 06:16 PM
#3
Frenzied Member
Hmm...
VB Code:
Private Sub Text1_KeyPress(KeyAscii As Integer)
Select Case KeyAscii
Case Asc("o")
KeyAscii = Asc("0")
End Select
End Sub
Does this help?
-
Jan 2nd, 2002, 06:17 PM
#4
Thread Starter
Hyperactive Member
no, because i am not typing IN my program, i am typing out of it
I know a lot oF Vb, expert in C++, and i think in assembly.
MSVC++6.NET
vb6
masm
Windowz Xp
I find my self using this a lot in C++
__asm {
}
-
Jan 2nd, 2002, 06:23 PM
#5
If macai's suggestion is not what you're after, then I assume you want to re-map your keyboard keys. You could probably write a program to do this using API's - haven't done it before though. I would start looking at the API's that deal with the keyboard.
"It's cold gin time again ..."
Check out my website here.
-
Jan 2nd, 2002, 06:24 PM
#6
Thread Starter
Hyperactive Member
Originally posted by BruceG
If macai's suggestion is not what you're after, then I assume you want to re-map your keyboard keys. You could probably write a program to do this using API's - haven't done it before though. I would start looking at the API's that deal with the keyboard.
this is what i orignally asked for.
I know a lot oF Vb, expert in C++, and i think in assembly.
MSVC++6.NET
vb6
masm
Windowz Xp
I find my self using this a lot in C++
__asm {
}
-
Jan 2nd, 2002, 06:26 PM
#7
Frenzied Member
ohh
Oh i see. Well, you see you can use the "GetAsyncKeyState" API
and when the user presses certain buttons, you say
VB Code:
'Declares
Public Declare Function GetAsyncKeyState Lib "user32" Alias "GetAsyncKeyState" (ByVal vKey As Long) As Integer
'When you want to replace o with 0
SendKeys {BS}
SendKeys "0"
'Check for the button being pressed
If GetAsyncKeyState(Asc("o"))
Does THAT help?
-
Jan 2nd, 2002, 06:30 PM
#8
Frenzied Member
woops
VB Code:
'Declares
Public Declare Function GetAsyncKeyState Lib "user32" Alias "GetAsyncKeyState" (ByVal vKey As Long) As Integer
'When you want to replace o with 0
SendKeys vbKeyBack
SendKeys "0"
'Check for the button being pressed
If GetAsyncKeyState(Asc("o")) Then
Sorry i found a couple errors, try this.
-
Jan 2nd, 2002, 06:33 PM
#9
Thread Starter
Hyperactive Member
doesnt sendkeys need a window name to send to?
then i wound need to find what window i am typing in
I know a lot oF Vb, expert in C++, and i think in assembly.
MSVC++6.NET
vb6
masm
Windowz Xp
I find my self using this a lot in C++
__asm {
}
-
Jan 2nd, 2002, 06:35 PM
#10
Frenzied Member
Nope
SendKeys, by default, sends the keys to whatever is the currently
active control. Cool, huh?
-
Jan 2nd, 2002, 06:58 PM
#11
Addicted Member
If you want to remap your keys just pop them off of your keyboard and move them around
-
Jan 2nd, 2002, 07:24 PM
#12
Frenzied Member
Originally posted by goudabuddha
If you want to remap your keys just pop them off of your keyboard and move them around
Idiot! Just Kidding
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
|