what does this script do: #KeyHistory 0 ListLines Off SetBatchLines, -1 SetKeyDelay, -1,…
- User
what does this script do: #KeyHistory 0 ListLines Off SetBatchLines, -1 SetKeyDelay, -1, -1 SetMouseDelay, -1 SetDefaultMouseSpeed, 0 SetWinDelay, -1 SetControlDelay, -1 SendMode Input CoordMode, Pixel, Screen PixelBox := "3" PixelSens := "45" PixelColor := "0xFEFE40" TapTime := "60" HoldKey := "XButton1" Gui, +OwnDialogs Gui, +AlwaysOnTop Gui, Font, s10 cWhite, Verdana-bold Gui, Color, Black Gui, Add, Tab3,, Main|Settings|Help Gui, Font, s10 cWhite, Verdana-bold Gui, Color, Black Gui, Add, GroupBox, x20 y30 w260 h260, Illuminati Valorant Trigger Bot v2.0 Gui, Add, Text, x150 y10, Select Mode: Gui, Add, Button, x30 y50 w130 h52 gStayOn, Constant/Auto Mode Gui, Add, Button, x30 y110 w240 h52 gHoldMode, Hold Mode Gui, Add, Button, x30 y170 w240 h52 gOffLoop, Turn Off Trigger Bot Gui, Add, Button, x30 y230 w240 h40 gTerminate, Exit Trigger Bot Gui, Tab, Settings, Gui, Font, s10 cGray, Verdana-bold Gui, Color, Black Gui, Add, GroupBox, cWhite x20 y30 w260 h260, Illuminati Valorant Trigger Bot v2.0 Gui, Add, Text, cRed x30 y50, Pixel FOV: Gui, Add, Edit, cBlack x150 y50 w120 vPixelBox, %PixelBox% Gui, Add, Text, cPurple x30 y80, Pixel Sensitivity: Gui, Add, Edit, cBlack x150 y80 w120 vPixelSens, %PixelSens% Gui, Add, Text, cBlue x30 y110, Enemy Color: Gui, Add, Edit, x150 y110 w120 vPixelColor, %PixelColor% Gui, Add, Text, cGreen x30 y140, Tap Time (ms): Gui, Add, Edit, cBlack x150 y140 w120 vTapTime, %TapTime% Gui, Add, Text, cYellow x30 y170, Hold Key: Gui, Add, Edit, cBlack x150 y170 w120 vHoldKey, %HoldKey% Gui, Add, Text, cRed x50 y200, https://discord.gg/valorantaccount Gui, Add, Button, x70 y226 w150 h30 gApplySettings, Apply Settings leftbound:= A_ScreenWidth/2-pixel_box rightbound:= A_ScreenWidth/2+pixel_box topbound:= A_ScreenHeight/2-pixel_box bottombound:= A_ScreenHeight/2+pixel_box Gui, Tab, Help Gui, Add, Text, cYellow x30 y50, Yellow Enemy Outline color = 0xFEFE40 Gui, Add, Text, cPurple x30 y80, Purple Enemy Outline color = 0xA145A3 Gui, Add, Text, cRed x30 y110, Red Enemy Outline color = 0xB82C29 Gui, Add, Text, cBlue x20 y140, If you need help open a ticket in discord Gui, Add, Text, cWhite x20 y160, Make sure RAW input buffer is off ingame Gui, Add, Text, cBlue x20 y175, settings Gui, Add, Text, cWhite x20 y190, Preset config is a good config to use Gui, Add, Text, cBlue x20 y210, Best config sare in our config channel in our Gui, Add, Text, cRed x20 y225, discord https://discord.gg/valorantaccount Gui, Tab, Main Gui, Add, Text, cRed x160 y50 w280 vStatus, Status: Gui, Add, Text, cRed, Toggle GUI with . Gui, Show, w290 h275, AHK Script GUI WinSet, Style, -0xC00000, AHK Script GUI StayOn: SoundBeep, 300, 200 GuiControl,, Status, Status: Constant Mode SetTimer, loop2, off SetTimer, loop1, 1 return HoldMode: SoundBeep, 300, 200 GuiControl,, Status, Status: Hold Mode SetTimer, loop1, off SetTimer, loop2, 1 return OffLoop: SoundBeep, 300, 200 GuiControl,, Status, Status: Turned Off SetTimer, loop1, off SetTimer, loop2, off return Terminate: SoundBeep, 200, 200 SoundBeep, 100, 200 Sleep 400 ExitApp ApplySettings: Gui, Tab, Settings Gui, Submit, NoHide Gui, Tab, Main return loop1: PixelSearch() return loop2: If GetKeyState(HoldKey, "P"){ PixelSearch() } return #if toggle *~$LButton:: sleep 1 While GetKeyState("LButton", "P"){ Click sleep 1 } return #if PixelSearch() { global PixelBox, PixelSens, PixelColor, TapTime, DelayTime PixelSearch, FoundX, FoundY, A_ScreenWidth/2-PixelBox, A_ScreenHeight/2-PixelBox, A_ScreenWidth/2+PixelBox, A_ScreenHeight/2+PixelBox, PixelColor, PixelSens, Fast RGB If !(ErrorLevel){ If !GetKeyState("LButton"){ sleep DelayTime Click sleep TapTime } } return } .:: if (GuiVisible := !GuiVisible) Gui, Show else Gui, Hide return
- Assistant
This script is written in AutoHotkey (AHK) and implements a trigger bot for the game Valorant. It primarily detects specific pixel colors on the screen and simulates mouse clicks based on those detections.
Here's a breakdown of what the script does:
-
Initial Setup:
-