AI-Aimbot icon indicating copy to clipboard operation
AI-Aimbot copied to clipboard

redo of aimbot activation logic

Open kotae4 opened this issue 2 years ago • 1 comments

  • now allows for toggle or hold type logic
  • configurable via two new settings

NOTE: I did not test the actual aimbot because I have an AMD gpu and don't want to bother using pytorch cpu, but I tested the logic I added and it works as expected on my cheap $20 keyboard (I'm honestly surprised hardware toggle keys don't mess it up, might be worth testing on other keyboards before merge)

kotae4 avatar Jun 28 '22 03:06 kotae4

Quick little script for testing:

# Remember: pip install pywin32
import win32api

def main():
    # What key to press to quit and shutdown the autoaim
    aaQuitKey = "Q";

    # What key to activate the aimbot functionality
    # Refer to: https://docs.microsoft.com/en-us/windows/win32/inputdev/virtual-key-codes
    aaActivateKey = 0x2;

    # Whether the `aaActivateKey` should be a toggle or not
    # If this value is `False` then you'll need to hold the key down
    aaShouldToggle = False;

    # State variables for whether the aimbot should be active
    aimbotActive = False;
    isActivateKeyDown = False;
    wasActivateKeyDown = False;
    while win32api.GetAsyncKeyState(ord(aaQuitKey)) == 0:
        # This checks if the key is currently held down
        isActivateKeyDown = (win32api.GetAsyncKeyState(aaActivateKey) & 0x8000) == 0x8000;
        # If we're in toggle mode and the key was *just* pressed this frame then we toggle the aimbot
        if ((aaShouldToggle == True) and (isActivateKeyDown == True) and (wasActivateKeyDown == False)):
            aimbotActive = not aimbotActive;
        # If we're not in toggle mode then we want the aimbot the be active only if the activate key is currently held down
        elif (aaShouldToggle == False):
            aimbotActive = isActivateKeyDown;
        # Now that we're done using 'isActivateKeyDown', we save its state so we can check it next frame
        wasActivateKeyDown = isActivateKeyDown;
        print("Active: {}".format(aimbotActive));


if __name__ == "__main__":
    main();

kotae4 avatar Jun 28 '22 03:06 kotae4

while True:

if win32api.GetAsyncKeyState(0x02)<0:
           print("Active")
           Mousemove(x,y)

ZCban avatar Nov 29 '22 07:11 ZCban

Is this still relevant?

Qfc9 avatar Mar 30 '23 16:03 Qfc9

Like is it better than the current? If so can this be applied to the newer version. Then ill take the PR. If not, imma close it

Qfc9 avatar Mar 30 '23 16:03 Qfc9

It is I've been using it since minute 1

Villageslayer avatar Jun 20 '23 21:06 Villageslayer

I will rework this and try to implement this is truly superior to capslock

Villageslayer avatar Jun 20 '23 21:06 Villageslayer

XD Kotae will love you long time. I can't remember if this was before or after Wade did some of the same optimizations. I think that is why it wasn't taken... idk. It's been awhile.

Qfc9 avatar Jun 20 '23 21:06 Qfc9

Yeah makes sense I'm trying to rework it also I will release my custom scripts as soon I get the random surge of motivation to write a readme and comment the code

Villageslayer avatar Jun 20 '23 21:06 Villageslayer