Skip to content

SineshX/NO-AFK

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 

Repository files navigation

An Anti-afk bot for valorant :)

current features :

  • random key input (w,a,s,d,space,ctrl)
  • write lol / afk in chat

to run :

  1. Install Python and make sure running the command in termonal : python --version | and later on run commands below to install module required module separately.
  2. python3 -m pip install pyautogui
  3. python3 -m pip install keyboard
  4. TO run the bot " python3 main.py or watch the video :)
  5. test video 2 (watch my bot die XD): https://youtu.be/35IWyJW0BBk (1min vid)
  6. anti-ban formula : try playing with a friend

You can contribute :) and help me out with :

  • focus on valorant.exe : ( if running ) //done

  • Buy Guns for teammates

  • agent select using pyautogui

  • remove keyboard module and use pyautogui only

  • GUI for custom chat inputs :)

  • make ML model with my mode

  • make exe for noobs

    • pip install auto-py-to-exe
    • and convert into exe
  • special key binding

  • start with valo samall icon on somewhere

  • auto afk detect :) danger zone for campers

End

now only trash below ..

working with pyautogui

list = pyautogui.getWindowsWithTitle('VALORANT')
list
[Win32Window(hWnd=263294)]
valorant = list[0]
valorant
Win32Window(hWnd=263294)
valorant.restore()
#"D:\Games\Riot Games\Riot Client\RiotClientServices.exe" --launch-product=valorant --launch-patchline=live
pyautogui.scroll(200)
im = pyautogui.screenshot()
later work for gun buying etc with image and mouse :)
im.save()

Working with threads:

    global bot_flag 
    bot_flag = True # will be used to terminate the bot / thread
    # creating thread || yes u can pass function XD
    t1 = threading.Thread(target = no_afk ) 
    # starting thread || calling no_afk in parallel
    t1.start()
    while bot_flag == True:
        sleep(3)
        if keyboard.is_pressed('q'):
            bot_flag = False
            return
            

try except in while loop

    try:
        #something
    except KeyboardInterrupt:
        sys.exit(0)
     # did not worled : was not able to focus on the valorant window       

maja aa gaya bidu :)

fun fact : I'm noob in python and valo 😅