I need help in my Triggerbot code

Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...
Seçkin Üye
Katılım
18 May 2020
Mesajlar
322
Çözümler
2
Tepki puanı
35
Ödüller
4
6 HİZMET YILI
First of all, I couldn't find the right section dealing with AHK codes. So I'm posting here, if I'am in the wrong session, I apologize.
I'm trying to make this code work, with the idea of him pressing the left mouse button, whenever the middle of the screen is in a specific color.

Im using AutoHotKey.

The game in question is Red Dead, and here's the code.


--------------------------------------------------------------------
Trigger:
{
Loop
{
if (Mod(counter_C, 2) = 0)
{
return
}
if (WinActive("ahk_exe RDR2.exe"))
{
if (GetKeyState("RButton", "P"))
{
Loop
{
PixelSearch, outx, outy, 940, 560, 940, 560, 0x2e10f2, 5, Fast
if (outx)
{
click
}
Sleep, 1
if (GetKeyState("RButton", "T"))
{
break
}
}
}
else
{
Sleep, 100
}
Sleep, 5
}
else
{
Sleep, 800
}
}
}
return


_________________________________________


I'll try to add the crosshair image I want you to identify. Please, can someone help me. I can't get this to work on Red Dead, it only works on other games.
 
Moderatörün son düzenlenenleri:
Süper Üye
Katılım
18 Nis 2019
Mesajlar
649
Tepki puanı
124
Ödüller
5
Yaş
27
7 HİZMET YILI
hey , i made this code , when the pixel 805 , 745 is the color "0x40FE07" , i wait 430 ms and then click d , maybe it can help you

f3:: loop { PixelGetColor, Color, 805, 745 if (Color="0x40FE07") { sleep 430 SendInput d } }
 
Seçkin Üye
Katılım
18 May 2020
Mesajlar
322
Çözümler
2
Tepki puanı
35
Ödüller
4
6 HİZMET YILI
hey , i made this code , when the pixel 805 , 745 is the color "0x40FE07" , i wait 430 ms and then click d , maybe it can help you

f3:: loop { PixelGetColor, Color, 805, 745 if (Color="0x40FE07") { sleep 430 SendInput d } }
How did you get to know what color you needed?

Mine doesn't work at all, I need to make sure I get the right color.
 
Süper Üye
Katılım
18 Nis 2019
Mesajlar
649
Tepki puanı
124
Ödüller
5
Yaş
27
7 HİZMET YILI
How did you get to know what color you needed?

Mine doesn't work at all, I need to make sure I get the right color.
you do a pixel search and print it i think, try this :

PixelGetColor, Color, 805, 745
MsgBox the color is %color%

and to find the pixel use mouseCoodinates software
 
Son düzenleme:
Seçkin Üye
Katılım
18 May 2020
Mesajlar
322
Çözümler
2
Tepki puanı
35
Ödüller
4
6 HİZMET YILI
It didn't work out the right way I think. Every time I repeat the process it gives me a different color. I tried more than 5x with the same stitch, in the same color, and it gave me different colors.

I'm freaking out, nothing seems to work.
you do a pixel search and print it i think, try this :

PixelGetColor, Color, 805, 745
MsgBox the color is %color%

and to find the pixel use mouseCoodinates software
Post automatically merged:

Wow, where are the heads of the forum to help us: c Curious people who want to learn.

I think they're sitting on the throne of gold, doing LoL and Valorant Hacks, and have no interest in us mere mortals.
 
Süper Üye
Katılım
28 Mar 2020
Mesajlar
609
Çözümler
2
Tepki puanı
61
Ödüller
4
Yaş
26
6 HİZMET YILI
What about searching on net for some ?
 
Seçkin Üye
Katılım
18 May 2020
Mesajlar
322
Çözümler
2
Tepki puanı
35
Ödüller
4
6 HİZMET YILI
What about searching on net for some ?
I don't mean to be rude, but what's the point of your comment?

It is obvious that it has already been searched on the internet.

Hey friend, I came here to look for help, not "farm comments" unnecessary.
Post automatically merged:

you do a pixel search and print it i think, try this :

PixelGetColor, Color, 805, 745
MsgBox the color is %color%

and to find the pixel use mouseCoodinates software
I've been researching how to get the hex color, and I got it.

What do you think?

CoordMode, Pixel, Window

x:: toggle := !toggle if toggle SetTimer, label, 50 else { SetTimer, label, Off ToolTip } return label: PixelGetColor, OutputVar, 1076, 344 ToolTip, % OutputVar return
 
Süper Üye
Katılım
18 Nis 2019
Mesajlar
649
Tepki puanı
124
Ödüller
5
Yaş
27
7 HİZMET YILI
the code format is destroyed or im not sure why its in the same line like that , but im glad it worked , i hope the pixel color is always the same and doesn't vary a bit.
 
Seçkin Üye
Katılım
18 May 2020
Mesajlar
322
Çözümler
2
Tepki puanı
35
Ödüller
4
6 HİZMET YILI
-EDIT

WOOOOOOOOOOOOOOOOOOOOOOOOOOOORKKKKKKKKKKKKKS OMGGGGGGGGGGGGGG THAAAAAAANKS<333333333333333
_____________________________________________________________________________________________________________

I used your code with some changes. The only problem now is that when I press X it only plays once.

It's like it didn't stay activated.

You know how I get it to continue with the code activated.

Because it seems that it only reproduces the command 1 time.

__________________________________________________________________

CoordMode, Pixel, RD2.exe

x::
toggle := !toggle
loop {
PixelGetColor, Color, 512, 384
if (Color="0x2D10F2")
}
sleep 43
click
}
}
Post automatically merged:

the code format is destroyed or im not sure why its in the same line like that , but im glad it worked , i hope the pixel color is always the same and doesn't vary a bit.

I forgot to reply ;x
 
Son düzenleme:
Süper Üye
Katılım
18 Nis 2019
Mesajlar
649
Tepki puanı
124
Ödüller
5
Yaş
27
7 HİZMET YILI
glad it works , try removing the loop and see
 
Donator
Katılım
25 Kas 2018
Mesajlar
645
Tepki puanı
29
Ödüller
10
7 HİZMET YILI
most ahk are detected but if u are in single player maybe nothing happend
 
Süper Üye
Katılım
11 Nis 2019
Mesajlar
601
Tepki puanı
41
Ödüller
5
Yaş
26
7 HİZMET YILI
Check unknowncheats they have codes useful
 
Samael
Süper Üye
Katılım
28 May 2018
Mesajlar
610
Çözümler
3
Tepki puanı
35
Ödüller
7
Yaş
28
8 HİZMET YILI
this how u create cheat ?
 
Seçkin Üye
Katılım
7 Ağu 2020
Mesajlar
599
Çözümler
14
Tepki puanı
86
Ödüller
2
5 HİZMET YILI
does the enemy have any layout color? doesnt seems to have
 
Seçkin Üye
Katılım
3 Eki 2021
Mesajlar
596
Çözümler
1
Tepki puanı
27
Ödüller
3
4 HİZMET YILI
this looks cool tho cant lie
 
Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...