Sign in to follow this  
Followers 0
UberLeetOmg

Need A Little Bit of Help

5 posts in this topic

Okay so I've been working on an aimbot and everything is going great except MouseMove does not move the ingame cursor or crosshair. Ah and another thing, is there a list of all the supported hot keys you can use? Like if I wanted to use the Mouse 4 button on my mouse or the caps lock button? I'm kinda new to AutoIt stuff but I've got a decent enough grasp on it now I believe.

Global $Aimbot = 0

Opt("MouseCoordMode", 0)
Opt("PixelCoordMode", 0)
Opt("MouseClickDelay", 0)
Opt("MouseClickDownDelay", 0)

Hotkeyset ("{????}", "Aimbot")
HotKeySet ("{End}", "TurnoffAimbot")

Global $searchcolor = 0xFF0000

While 1
Sleep(1000)
Wend

Func Aimbot()
$Aimbot = 1
While 1
    If $Aimbot = 1 then
        $coord = PixelSearch(10, 10, 800, 580, $searchcolor)
            If IsArray($coord) = 1 Then
                MouseMove($coord[0], $coord[1], 0)
            EndIf
    EndIf
Tooltip("Aimbot is On", 0, 0)
Sleep(10000)
Wend
EndFunc

Func TurnoffAimbot()
$Aimbot = 0
Tooltip("Aimbot is Off", 0 ,0)
Sleep(10000)
Endfunc

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Look up _ispressed in the help file. There is a list of all key codes.

Edited by acidfear

Share this post


Link to post
Share on other sites

Look up _ispressed in the help file. There is a list of all key codes.

Global $Aimbot = 0

Opt("MouseCoordMode", 0)
Opt("PixelCoordMode", 0)
Opt("MouseClickDelay", 0)
Opt("MouseClickDownDelay", 0)

Hotkeyset ("{CapsLock}", "Aimbot")
HotKeySet ("{End}", "TurnoffAimbot")

Global $searchcolor = 0xFF0000

While 1
Sleep(1000)
Wend

Func Aimbot()
$Aimbot = 1
While 1
    If $Aimbot = 1 then
        $coord = PixelSearch(100, 100, 100, 100, $searchcolor [,10] [,2])
            If IsArray($coord) = 1 Then
                MouseMove($coord[0], $coord[1], 1)
            EndIf
    EndIf
Tooltip("Aimbot is On", 0, 0)
Sleep(10000)
Wend
EndFunc

Func TurnoffAimbot()
$Aimbot = 0
Tooltip("Aimbot is Off", 0 ,0)
Sleep(10000)
Endfunc

Okay now I am getting a recursion level has exceeded on the line Sleep(10000). Also MouseMove function seems to not work for the game. As it appears it hides the cursor but does not restrict its movement so it must be using some other way for the mouse to move correct?

Share this post


Link to post
Share on other sites

Okay so I made some adjustments to fix my some bugs. Not sure if its gonna work, at school.

Global $Aimbot = 0

Opt("MouseCoordMode", 0)
Opt("PixelCoordMode", 0)
Opt("MouseClickDelay", 0)
Opt("MouseClickDownDelay", 0)

Hotkeyset ("{CapsLock}", "Aimbot")
HotKeySet ("{End}", "TurnoffAimbot")

Global $searchcolor = 0xFF0000

While 1
Sleep(1000)
Wend

Func Aimbot()
$Aimbot = 1
While 1
    If $Aimbot = 1 then
    $pos = MouseGetPos()
        $coord = PixelSearch(($pos[0] - 50) , ($pos[1] - 50) , ($pos[0] + 50) , ($pos[1] + 50), $searchcolor) 
            If IsArray($coord) = 1 Then
                MouseMove($coord[0], $coord[1], 0)
            EndIf
    EndIf
Tooltip("Aimbot is On", 0, 0)
Sleep(530)
Wend
EndFunc

Func TurnoffAimbot()
$Aimbot = 0
Tooltip("Aimbot is Off", 0 ,0)
Sleep(530)
Endfunc

How does this look? Added the snap to feature found in the aimbot proof of concept in another thread.

Share this post


Link to post
Share on other sites

You might also want to check to see if the game has any anti-cheat stuff installed, punkbuster or something like that which would block pixelsearches... if they do, then you have to find someway to disable that before your script will actually be able to move the mouse.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0