Search found 3 matches
- 17 Apr 2021, 10:15
- Forum: Gaming Help (v1)
- Topic: Subroutine not working when if condition is off.
- Replies: 1
- Views: 131
Subroutine not working when if condition is off.
Hi, i made this code with the idea that: 1)When the pixelsearch result is positive, it hits (pressing E), and it stops when this is no longer true. 2) when it is no longer true, keep pressing L The reason: i trying to do a bot that keep pressing L (to target the enemy), and it targets, pixelsearch g...
- 16 Apr 2021, 21:18
- Forum: Gaming Help (v1)
- Topic: Help with: while x is true do, and press z at set timer Topic is solved
- Replies: 2
- Views: 241
Re: Help with: while x is true do, and press z at set timer Topic is solved
Worked! Did:
Code: Select all
-::
Loop,
{
Send {L down}
Sleep, % keydelay
Send {L up}
PixelSearch, x1,y1,x2,y2, colorid, 10, RGB
if (ErrorLevel = 0)
{
Send {E down}
Sleep, % keydelay
Send {E up}
Sleep, % weapondelay
}
}
- 16 Apr 2021, 20:27
- Forum: Gaming Help (v1)
- Topic: Help with: while x is true do, and press z at set timer Topic is solved
- Replies: 2
- Views: 241
Help with: while x is true do, and press z at set timer Topic is solved
Hello everyone, can anyone help me? Im trying to do a script that: 1) press L every 3 seconds (because in the game you have to press it to Target the enemy) 2) Search the enemy bar for the pixelcolor that equals red (which means he still has HP) and hit E while is still red Basically, target the ene...