Valorant trigger ahk ud rn

Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...
Üye
Katılım
20 Nis 2018
Mesajlar
27
Tepki puanı
5
Ödüller
7
Yaş
29
8 HİZMET YILI
Kod yanlışlık var doğrusu aşağıdadır. Yapamayan arkadaşlar içinde. Not defterine yapıştırın. Sonra sonunda ki .txt yi .ahk olarak çevirin. Kodun çalışıp çalışmadığını bilmiyorum. Hile kullanmadığım için. Ben F1 diye atatım siz istediğiniz tuşu ataya bilirsiniz.
Kod:
#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_exit := "End"

key_hold := "XButton2"

pixel_box := 3
pixel_sens := 60

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 +LastFound +AlwaysOnTop -Caption +ToolWindow

Gui, Add, Tab2, x5 y5 w400 h200, Home|Color|Config
Gui, Tab, Home
Gui, Add, Text, x10 y30 w200 h20, Made By: 3froto
Gui, Add, Button, w100 h50 gStartSearch x10 y70, Start
Gui, Tab, Color
Gui, Add, Button, w100 h50 gSetRedColor x10 y30, Red
Gui, Add, Button, w100 h50 gSetPurpleColor x120 y30, Purple
Gui, Add, Button, w100 h50 gSetYellowColor x230 y30, Yellow
Gui, Tab, Config
Gui, Add, Button, w100 h50 gSaveSettings x10 y30, Hide
Gui, Show

hotkey, %key_exit%, terminate
return

start:

terminate:
Sleep 400
exitapp
return

StartSearch:
settimer, loop2, 20
return

loop2:
While GetKeyState(key_hold, "P"){
    PixelSearch()
}
return

SetRedColor:
pixel_color := 0xFE636A
return

SetPurpleColor:
pixel_color := 0xEB69FE
return

SetYellowColor:
pixel_color := 0xFFFF55
return

SaveSettings:
Gui, Submit
IniWrite, %pixel_color%, Settings.ini, Settings, PixelColor
IniWrite, %pixel_sens%, Settings.ini, Settings, PixelSensitivity
GuiControl,, SaveStatus, Settings saved.
Sleep 1000
GuiControl,, SaveStatus,
return

LoadSettings:
IniRead, pixel_color, Settings.ini, Settings, PixelColor
IniRead, pixel_sens, Settings.ini, Settings, PixelSensitivity
GuiControl,, PixelSensitivity, %pixel_sens%
GuiControl,, SaveStatus, Settings loaded.
Sleep 1000
GuiControl,, SaveStatus,
return

HideGui:
Gui, 2:Hide
return

#IfWinActive ahk_exe autohotkey.exe
F4::
Gui, 2:Show
Gui, 2:Tab, Home
return
#If

PixelSearch() {
    global
    PixelSearch, FoundX, FoundY, leftbound, topbound, rightbound, bottombound, pixel_color, pixel_sens, Fast RGB
    If !(ErrorLevel)
    {
        If !GetKeyState("F1")
        {
            ClickPixel()
            sleep 100
        }
    }
    return
}

ClickPixel() {
    SendInput, {Click}
}
 
Onaylı Üye
Katılım
30 May 2019
Mesajlar
54
Tepki puanı
11
Ödüller
6
Yaş
29
7 HİZMET YILI
There is an error in the code, the correct code is below. Among the friends who can't. Paste it into notepad. Then convert the .txt at the end to .ahk. I don't know if the code works or not. Because I don't use cheats. I assigned it as F1, you can assign it to any key you want.
Kod:
#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_exit := "End"

key_hold := "XButton2"

pixel_box := 3
pixel_sens := 60

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 +LastFound +AlwaysOnTop -Caption +ToolWindow

Gui, Add, Tab2, x5 y5 w400 h200, Home|Color|Config
Gui, Tab, Home
Gui, Add, Text, x10 y30 w200 h20, Made By: 3froto
Gui, Add, Button, w100 h50 gStartSearch x10 y70, Start
Gui, Tab, Color
Gui, Add, Button, w100 h50 gSetRedColor x10 y30, Red
Gui, Add, Button, w100 h50 gSetPurpleColor x120 y30, Purple
Gui, Add, Button, w100 h50 gSetYellowColor x230 y30, Yellow
Gui, Tab, Config
Gui, Add, Button, w100 h50 gSaveSettings x10 y30, Hide
Gui, Show

hotkey, %key_exit%, terminate
return

start:

terminate:
Sleep 400
exitapp
return

StartSearch:
septimer, loop2, 20
return

loop2:
While GetKeyState(key_hold, "P"){
    PixelSearch()
}
return

SetRedColor:
pixel_color := 0xFE636A
return

SetPurpleColor:
pixel_color := 0xEB69FE
return

SetYellowColor:
pixel_color := 0xFFFF55
return

SaveSettings:
Gui, Submit
IniWrite, %pixel_color%, Settings.ini, Settings, PixelColor
IniWrite, %pixel_sens%, Settings.ini, Settings, PixelSensitivity
GuiControl,, SaveStatus, Settings saved.
Sleep 1000
GuiControl,, SaveStatus,
return

Load Settings:
IniRead, pixel_color, Settings.ini, Settings, PixelColor
IniRead, pixel_sens, Settings.ini, Settings, PixelSensitivity
GuiControl,, PixelSensitivity, %pixel_sens%
GuiControl,, SaveStatus, Settings loaded.
Sleep 1000
GuiControl,, SaveStatus,
return

HideGui:
Gui, 2:Hide
return

#IfWinActive ahk_exe autohotkey.exe
F4::
Gui, 2:Show
Gui, 2:Tab, Home
return
#If

PixelSearch() {
    global
    PixelSearch, FoundX, FoundY, leftbound, topbound, rightbound, bottombound, pixel_color, pixel_sens, Fast RGB
    If !(ErrorLevel)
    {
        If !GetKeyState("F1")
        {
            ClickPixel()
            sleep 100
        }
    }
    return
}

ClickPixel() {
    SendInput, {Click}
}
what kind of error
 
Üye
Katılım
20 Nis 2018
Mesajlar
27
Tepki puanı
5
Ödüller
7
Yaş
29
8 HİZMET YILI
Error at line 110.

Line text etKeystate("F1")
Eror: Functions cannot contain functions

The program will exit

Düzeltmek içinde kodda ki şu kısmı değiştirdim

Kod:
PixelSearch() {
    global
    PixelSearch, FoundX, FoundY, leftbound, topbound, rightbound, bottombound, pixel_color, pixel_sens, Fast RGB
    If !(ErrorLevel)
    {
        If !GetKeyState("F1")
        {
            ClickPixel()
            sleep 100
        }
    }
    return
}

Ve başlattığımda başladığına dair bir bildiri almak içinde şu kodu girdim
Kod:
StartSearch:
MsgBox, StartSearch activated.
settimer, loop2, 20
return
 
Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...
Üst