can someone link me to a tutorial or something that shows how to build a Visual Basic Program
where basically if I type any letter on the keyboard, it replaces it with its own message... like a auto typer, but its really replacing it...
like if I type h, it types hahaha, or p, pwnt
not exactly like that, but can anyone help me?
Spammer/Typer/Whatever...
Started by
Guest_Rascagua_*
, Apr 28 2007 10:15 AM
3 replies to this topic
#1
Guest_Rascagua_*
Posted 28 April 2007 - 10:15 AM
Guest_Rascagua_*
|
|
|
#2
Guest_Jordan_*
Posted 28 April 2007 - 12:06 PM
Guest_Jordan_*
You could do a search and replace after the user types but this would be slow:
CodeGuru: "Search and Replace" in Visual Basic Applications
CodeGuru: "Search and Replace" in Visual Basic Applications
#3
Guest_NeedHelp_*
Posted 28 April 2007 - 12:19 PM
Guest_NeedHelp_*
Do you want to do a drop-down list like dictionary or when they press "h" automatically put in hahahaha. What if they wanted to type he or She and then it would be Shahahaha?
Or is it "if they type H and press enter replace with hahahaha"?
Or is it "if they type H and press enter replace with hahahaha"?
#4
Posted 10 May 2007 - 04:14 AM
No need for big fuss, and no need for tutorials, just open Visual Basic and insert a timer, make the interval = 500 and add this code:-
Explanation:-
GetAsyncKeyState(vbKeyH) = this detects when you press the H key
SendKeys "{BS}hahahahaha" = SendKeys is self explanatory {BS} is backspace (so to delete the h that you wrote), and then the string hahahahaha.
Pretty simple? Don't you think. Just took me 30 seconds to figure it out.
Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vkey As Long) As Integer
Private Sub Timer1_Timer()
If GetAsyncKeyState(vbKeyH) Then SendKeys "{BS}hahahahaha"
If GetAsyncKeyState(vbKeyP) Then SendKeys "{BS}pwnt"
End Sub
Explanation:-
GetAsyncKeyState(vbKeyH) = this detects when you press the H key
SendKeys "{BS}hahahahaha" = SendKeys is self explanatory {BS} is backspace (so to delete the h that you wrote), and then the string hahahahaha.
Pretty simple? Don't you think. Just took me 30 seconds to figure it out.


Sign In
Create Account

Back to top










