Valorant Triggerbot

Ask gaming related questions (AHK v1.1 and older)
itjworkandlearn
Posts: 1
Joined: 10 May 2023, 05:51

Valorant Triggerbot

Post by itjworkandlearn » 10 May 2023, 06:01

Code: Select all

#NoEnv
#Persistent
#MaxThreadsPerHotkey 2
#KeyHistory 0
ListLines Off
SetBatchLines, -1
SetKeyDelay, -1, -1
SetMouseDelay, -1
SetDefaultMouseSpeed, 0
SetWinDelay, -1
SetControlDelay, -1
SendMode Input
CoordMode, Pixel, Screen
SoundBeep, 300, 200
 
key_hold_mode := "Home"
key_exit := "End"
 
key_hold := "XButton2"
 
pixel_box := 3
pixel_sens := 60
pixel_color := 0xFFFF55

leftbound := A_ScreenWidth / 2 - pixel_box
rightbound := A_ScreenWidth / 2 + pixel_box
topbound := A_ScreenHeight / 2 - pixel_box
bottombound := A_ScreenHeight / 2 + pixel_box
 
hotkey, %key_hold_mode%, holdmode
hotkey, %key_exit%, terminate
return
 
start:
 
terminate:
Sleep 400
exitapp
return
 
holdmode:
settimer, loop2, 1
return
 
loop2:
While GetKeyState(key_hold, "P"){
    PixelSearch()
}
return
 
#if
PixelSearch() {
global
PixelSearch, FoundX, FoundY, leftbound, topbound, rightbound, bottombound, pixel_color, pixel_sens, Fast RGB
If !(ErrorLevel)
{
If !GetKeyState("LButton")
{
ClickPixel()
sleep 100
}
}
return
}
 
ClickPixel() {
    SendInput, {Click}
}
I use this script as a triggerbot for valorant. How can I modify this so it snaps my aim to the pixel_color if it's found in a 2cm radius. I tried using mouse move, but it didn't work.


[Mod action: Moved topic to v1 section. The main section is for v2.]

User avatar
mikeyww
Posts: 26945
Joined: 09 Sep 2014, 18:38

Re: Valorant Triggerbot

Post by mikeyww » 11 May 2023, 05:59

Welcome to this AutoHotkey forum!

I would start with a new three-line test script.

1. On the first line, set the CoordMode. On the second line, search. On the third line, display the ErrorLevel.

2. If the search succeeds, add the MouseMove.

You can convert 2 cm into pixels (dots) because you know the number of dots per inch on your display, and you know how many inches are in a cm.

Az1em
Posts: 4
Joined: 18 Mar 2023, 01:45

Re: Valorant Triggerbot

Post by Az1em » 08 Jun 2023, 22:54

It's triggerbot not aimbot

Vaios
Posts: 1
Joined: 18 Nov 2023, 13:00

Re: Valorant Triggerbot

Post by Vaios » 18 Nov 2023, 13:04

how does this triggerbot work ?

Stealth7
Posts: 19
Joined: 12 Nov 2023, 17:21

Re: Valorant Triggerbot

Post by Stealth7 » 18 Nov 2023, 13:56

itjworkandlearn wrote:
10 May 2023, 06:01
[Mod edit: Removed long quote. Please use quotes more selectively!]

viewtopic.php?style=19&t=87420 You would have to start by looking at this and then customize it.

Post Reply

Return to “Gaming Help (v1)”