Look into this.You can manipulate the following face detection code to detect letters and numbers, but you will run into various problems with different fonts and sizes.
Face Detection in C# - CodeProject
[img]https://i295.photobucke*****m/albums/mm150/gfx_forums/CFT_4.png[/img]
[IMG]https://i295.photobucke*****m/albums/mm150/gfx_forums/hazard3_redone.png[/IMG]
Litle bit OfTopic:
I've tried with Hotkeys, and get this message:
A call to PInvoke function 'Prfction!Prfction.Form1::GetAsyncKeyState' has unbalanced the stack. This is likely because the managed PInvoke signature does not match the unmanaged target signature. Check that the calling convention and parameters of the PInvoke signature match the target unmanaged signature.
Dim Hotkeyss As Boolean
Hotkeyss = GetAsyncKeyState(Keys.F10)
And yes I have
Public Declare Function GetAsyncKeyState Lib "user32.dll" (ByVal vKey As Long) As Integer
&
Dim StartHotKey As Boolean
Dim StopHotKey As Boolean
Then I can't use my program when i debugg.
Hope it is an answer here until tomorrow
Gnite
Public Declare Function GetAsyncKeyState Lib "user32.dll" (ByVal vKey As Int16) As Int32
On a timer (ENABLE IT)
Code:dim hotkey as boolean = getasynckeystate(Keys.F10) If hotkey 'do something end if
Ty! Now the hotkeys works. But it doesn't do what i want :s
That is supposed to start a timer so my spammer starts. And do that you can't write in any of the textboxes. But instead. It just reset what i've wrote in textboxes, and don't starts the timer..Code:dim hotkey as boolean = getasynckeystate(Keys.F7) If hotkey Then Timer1.Start() Button2.Text = "...." Button1.Text = "Stop" TextBox2.Enabled = False TextBox3.Enabled = False Timer1.Interval = TextBox2.Text + "0" 'do something Timer2.Stop() End If
Where em I wrong?
I did get it to work =D
Just swapping some codes here and there and it worked
Last edited by Prfction; 07-01-2010 at 07:11 PM.
Try that first, any other errors just tell me.Code:dim hotkey as boolean = getasynckeystate(Keys.F7) If hotkey = True Then Timer1.Start() Button2.Text = "...." Button1.Text = "Stop" TextBox2.Enabled = False TextBox3.Enabled = False Timer1.Interval = TextBox2.Text + "0" Timer2.Stop() End If
You can win the rat race,Originally Posted by Jeremy S. Anderson
But you're still nothing but a fucking RAT.
++Latest Projects++
[Open Source] Injection Library
Simple PE Cipher
FilthyHooker - Simple Hooking Class
CLR Injector - Inject .NET dlls with ease
Simple Injection - An in-depth look
MPGH's .NET SDK
eJect - Simple Injector
Basic PE Explorer (BETA)
You can win the rat race,Originally Posted by Jeremy S. Anderson
But you're still nothing but a fucking RAT.
++Latest Projects++
[Open Source] Injection Library
Simple PE Cipher
FilthyHooker - Simple Hooking Class
CLR Injector - Inject .NET dlls with ease
Simple Injection - An in-depth look
MPGH's .NET SDK
eJect - Simple Injector
Basic PE Explorer (BETA)
Tip:
Use your data types correctly.
Dim text as string = "whatever"
Dim number as integer = 0 'see no ""
text = text + "something"
text += "something"
number += "5"
number += 5
You don't add a string to an integer even though if that works, the code will be 'cleaner' without. So watch your data types.
-----------------------------------------------
Furthermore, why would you add a + "0" to your timer's interval. Not minding that you have put the 0 into a string, but why adding 0, it does not do anything o_O. 1 would be useful if some1 writes letters in the textbox but 0 o_O.
CInt() // Val() avoid the program to stop working when some1 actually enters a letter or spaces into the textbox. You better use a numericupdown.
-----------------------------------------------
The true is UNNECESSARY. Even MSDN says, that you shouldn't use it in such constructions.
Post your timer1/timer2 code if that does not work.Code:If hotkey Then Timer1.Interval = Val(TextBox2.Text) + 1 'to make sure the value is atleast 1 cuz if some1 enters a letter teh value will be 0 Timer1.start Button2.Text = "...." Button1.Text = "Stop" TextBox2.Enabled = False TextBox3.Enabled = False Timer2.Stop() End If
Last edited by Blubb1337; 07-01-2010 at 07:54 PM.
just make a numeric up-down and set min to 100?
You can win the rat race,Originally Posted by Jeremy S. Anderson
But you're still nothing but a fucking RAT.
++Latest Projects++
[Open Source] Injection Library
Simple PE Cipher
FilthyHooker - Simple Hooking Class
CLR Injector - Inject .NET dlls with ease
Simple Injection - An in-depth look
MPGH's .NET SDK
eJect - Simple Injector
Basic PE Explorer (BETA)