Thread: TriggerBot

Results 1 to 5 of 5
  1. #1
    thiag00's Avatar
    Join Date
    May 2007
    Gender
    male
    Posts
    50
    Reputation
    10
    Thanks
    7

    TriggerBot

    Hii
    Can someone help me with this codes...
    in the module i have:
    Code:
    Option Explicit
    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 MOUSEEVENTF_LEFTDOWN = &H2
    Private Const MOUSEEVENTF_LEFTUP = &H4
    
    Public Sub lef***ick()
    Call mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0)
    Call mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0)
    End Sub
    in the timer:
    Code:
    dim cat as long
    readalong(&H(TriggerBotAddy), cat)
    if cat = (whatever the tiggerbot addy changes to when you scroll over someone.. it changes) then
    lef***ick()
    end if
    Currely the When you scroll over someone it changes from
    -1 if not in game yet
    0 if not over someone
    2 if over someone
    When i scroll the mouse over someone I can't shoot...
    what i have to do for this work?

  2. #2
    K2 Nemico's Avatar
    Join Date
    Jul 2007
    Gender
    male
    Posts
    160
    Reputation
    8
    Thanks
    29
    the second code is like this:
    Code:
    dim cat as long
    call readalong(&H(TriggerBotAddy), cat)
    if cat = val("2") then
    lef***ick
    end if
    this should help

  3. #3
    thiag00's Avatar
    Join Date
    May 2007
    Gender
    male
    Posts
    50
    Reputation
    10
    Thanks
    7
    the same thing...
    when I scroll the mouse over someone I can't shoot..

  4. #4
    Jester62's Avatar
    Join Date
    May 2007
    Posts
    58
    Reputation
    10
    Thanks
    0
    in ur module u need the sendkeys command


    Private Declare Sub keybd_event Lib "user32" ( _
    ByVal bVk As Byte, ByVal bScan As Byte, _
    ByVal dwFlags As Long, ByVal dwExtraInfo As Long)
    Private Const KEYEVENTF_EXTENDEDKEY = &H1
    Private Const KEYEVENTF_KEYUP = &H2




    Private Declare Function GetVersion Lib "kernel32" () As Long
    Private Declare Function VkKeyScan Lib "user32" Alias "VkKeyScanA" ( _
    ByVal cChar As Byte) As Integer
    Private Declare Function VkKeyScanW Lib "user32" ( _
    ByVal cChar As Integer) As Integer

    Private Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" ( _
    lpvDest As Any, lpvSource As Any, ByVal cbCopy As Long)


    Public Sub KeyDown(ByVal vKey As KeyCodeConstants)
    keybd_event vKey, 0, KEYEVENTF_EXTENDEDKEY, 0
    End Sub

    Public Sub KeyUp(ByVal vKey As KeyCodeConstants)
    keybd_event vKey, 0, KEYEVENTF_EXTENDEDKEY Or KEYEVENTF_KEYUP, 0
    End Sub

    Public Function KeyCode(ByVal sChar As String) As KeyCodeConstants
    Dim bNt As Boolean
    Dim iKeyCode As Integer
    Dim b() As Byte
    Dim iKey As Integer
    Dim vKey As KeyCodeConstants
    Dim iShift As ShiftConstants

    ' Determine if we have Unicode support or not:
    bNt = ((GetVersion() And &H80000000) = 0)

    ' Get the keyboard scan code for the character:
    If (bNt) Then
    b = sChar
    CopyMemory iKey, b(0), 2
    iKeyCode = VkKeyScanW(iKey)
    Else
    b = StrConv(sChar, vbFromUnicode)
    iKeyCode = VkKeyScan(b(0))
    End If

    KeyCode = (iKeyCode And &HFF&)

    End Function


    i cant get triggerbot to work for myself because if sum varible bs

    but ut that in ur module and c if it works

    if it works can i get a thank u lol

  5. #5
    thiag00's Avatar
    Join Date
    May 2007
    Gender
    male
    Posts
    50
    Reputation
    10
    Thanks
    7
    hii
    already fixed
    MODULE:
    Code:
    Public 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)
      Public Const MDown = &H2
        Public Const MUp = &H4
    
    Public Sub Down()
        mouse_event MDown, 0, 0, 0, 0
    End Sub
    
    Public Sub Up()
        mouse_event MUp, 0, 0, 0, 0
    TIMER:
    Code:
    Dim triggerbot As Long
    Call readalong(Addie, triggerbot)
    If triggerbot = 2 Then
    Call Down
    Else
    Call Up
    End If
    Last edited by thiag00; 06-14-2008 at 08:36 PM.

Similar Threads

  1. address for triggerbot ?
    By Chimpen in forum WarRock Discussions
    Replies: 0
    Last Post: 08-14-2009, 04:49 PM
  2. Mogen1000's Triggerbot
    By That0n3Guy in forum Combat Arms Hacks & Cheats
    Replies: 70
    Last Post: 07-22-2009, 10:43 AM
  3. [Release] Triggerbot *UPDATE*
    By ahlun89 in forum Combat Arms Hacks & Cheats
    Replies: 43
    Last Post: 12-17-2008, 09:07 AM
  4. VB6 TRIGGERBOT
    By apezwijn in forum WarRock - International Hacks
    Replies: 1
    Last Post: 06-02-2008, 10:13 AM
  5. [Tutorial] Triggerbot Class
    By cjg333 in forum Programming Tutorials
    Replies: 10
    Last Post: 03-01-2008, 04:35 AM

Tags for this Thread