Code:
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
Static nVal1 As Boolean
If GetAsyncKeyState(Keys.A) = 0 Then
If nVal1 Then
SendKeys.Send(GrpTxt1.Text)
SendKeys.Send("{Enter}")
nVal1 = CBool(GetAsyncKeyState(Keys.A))
End If
End Sub
The problem is whenever it sends the text to another forum using the hotkey it works fine, But if the GrpTxt1 text contains the hotkey name it spams it it because the key is sending over and over again because it contains "A" the hotkey in the text. Please help ):
This post has been edited by macosxnerd101: 27 October 2011 - 09:04 PM
Reason for edit:: Please use code tags

New Topic/Question
Reply



MultiQuote



|