Go Back   GamerzPlanet - For All Your Online Gaming Needs!! > Programming/Web Design > Visual Basic

Visual Basic VB Discussion. (Including VB.Net)


How to Bind Send Key ?

Visual Basic


Reply
 
Thread Tools Display Modes
Old 11-08-2009, 07:24 PM   #1
us3rn4m3
Lurker
 
Last Online: 11-21-2009 06:25 AM
Join Date: Aug 2008
Posts: 7
Rep Power: 0
Rep Points: 10
us3rn4m3 is on a distinguished road
Feedback: (0)
Points: 1,894.48
Bank: 0.00
Total Points: 1,894.48
How to Bind Send Key ?

How to Bind Send Key to enable send keys command for the game that is shielded by x-trap? I try it in notepad & it works but in game window does'nt.
this is the code...
Private Declare Function GetKeyPress Lib "user32" Alias "GetAsyncKeyState" (ByVal key As Long) As Integer
Private Declare Sub mouse_event Lib "user32" (ByVal dwFlags As Long, ByVal dx As Long, ByVal dy As Long, ByVal cButtons As Long, ByVal dwExtraInfo As Long)
Private Const MOUSELEFTDOWN = &H2 ' left button down /This is actually MOUSEEVENTF_LEFTDOWN
Private Const MOUSELEFTUP = &H4 ' left button up /This is actually MOUSEEVENTF_LEFTUP

Private Sub Check1_Click()
If Check1 = 1 Then Timer1.Enabled = True
If Check1 = 0 Then Timer1.Enabled = False
End Sub

Private Sub Command1_Click()
Timer1.Enabled = False
Timer1.Interval = Text1.Text
End Sub

Private Sub Form_Load()
Check1.Value = 0
End Sub

Private Sub Timer1_Timer()
If GetKeyPress(vbKeyF6) Then
Timer1.Enabled = True
SendKeys ("{2}")
ElseIf GetKeyPress(vbKeyF7) Then
Timer1.Enabled = False
End If
If GetKeyPress(vbKeyF8) Then
MsgBox ("Main hotkeys are F2 Start Auto Clicker f3 stop")
End If
If Timer1.Enabled = True Then
SendKeys ("{2}")
End If
End Sub

Private Sub Timer2_Timer()
If GetKeyPress(vbKeyF6) Then
Timer1.Enabled = True
End If
If GetKeyPress(vbKeyF7) Then
Timer1.Enabled = False
End If
If GetKeyPress(vbKeyF8) Then
MsgBox ("Main hotkeys are F6 Start Auto Clicker F7 stop")
End If
End Sub
us3rn4m3 is offline   Reply With Quote
Old 11-12-2009, 10:56 AM   #2
Anymonous
Registered User
 
Last Online: Yesterday 11:11 AM
Join Date: May 2007
Posts: 46
Rep Power: 0
Rep Points: 10
Anymonous is on a distinguished road
Feedback: (0)
Points: 4,669.22
Bank: 6,480.25
Total Points: 11,149.47
Re: How to Bind Send Key ?

Those kind of things are blocked by X-Trap.
Anymonous is offline   Reply With Quote
Old 11-12-2009, 12:17 PM   #3
LCS
Registered User
 
LCS's Avatar
 
Last Online: 11-21-2009 09:39 AM
Join Date: Nov 2005
Posts: 1,343
Rep Power: 9
Rep Points: 360
LCS is just really niceLCS is just really niceLCS is just really niceLCS is just really nice
Feedback: (0)
Points: 648.38
Bank: 41,088.26
Total Points: 41,736.64
Re: How to Bind Send Key ?

Quote:
Originally Posted by Anymonous View Post
Those kind of things are blocked by X-Trap.
He already knows that:
Quote:
Originally Posted by us3rn4m3 View Post
for the game that is shielded by x-trap?
__________________
My GUID: ca2262a7-0026-4830-a0b3-fe5d66c4eb1d

Click here.
LCS is offline   Reply With Quote
Old 11-13-2009, 03:32 PM   #4
us3rn4m3
Lurker
 
Last Online: 11-21-2009 06:25 AM
Join Date: Aug 2008
Posts: 7
Rep Power: 0
Rep Points: 10
us3rn4m3 is on a distinguished road
Feedback: (0)
Points: 1,894.48
Bank: 0.00
Total Points: 1,894.48
Re: How to Bind Send Key ?

Yes my code is blocked or shielded by xtrap! My point is how to bind the send key command like this ~~>>SendKeys ("{2}")? Binding the send key command make it works in game window even they have xtrap!
us3rn4m3 is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Forum Jump

All times are GMT -7. The time now is 01:02 AM.

 

Copyright ©2009, GamerzPlanet.Net
Visits: