Pixel Triggerbot D:

Posts 3139 of 39 · Page 3 of 3
Quote Originally Posted by Grim View Post
LMAO swear to god u have your color variation set to 80? and you only expect it to click only on yellow? that'll mess you up right there. You dont want it to be any higher than 10, but 10 is still probably too much variation.

and also you need to give more details to the MouseClick command.. i dont know why but without defining where to click the mouse, the MouseClick command will move the mouse before clicking so change MouseClick to look like this:

MouseClick("primary", MouseGetPos(0), MouseGetPos(1))

and yes the correct way with MouseGetPos is with () and not []. which would also be better to do instead of declaring the variable $pos
For one, it's shade variation NOT color variation.
Also, just sending a mouseclick will click wherever your your mouse is at the time of it being sent.

one more thing....
Code:
If _IsPressed($body) = 1 Then
  While 1
    $coord = PixelSearch(MouseGetPos(0) - $radius, MouseGetPos(1) - $radius, MouseGetPos(0) + $radius, $MouseGetPos(1) + $radius, $searchcolora, 10)
    If _IsArray($coord) = 1 Then
      MouseClick("primary", MouseGetPos(0), MouseGetPos(1))
      Opt("MouseClickDelay", 0)
      Opt("MouseClickDownDelay, 0)
    EndIf
  WEnd
EndIF
When it hits that while it's never going to come out.. so ya... try again I guess.



[quote]
Quote Originally Posted by F-A-I-L View Post
Please approve... Also, I do not under stand what he means by: "The first time you run it, it'll write a few things to the CAConfig.cfg in your root directory (C).
2 of these are the keys I have been using (capslock and space).
Change them to something else if you want.

List of what you can change the keys to:" and then there are a list of different buttons... Someone help me please
This was done for ******* originally, which uses CAConfig.cfg to store it's hotkeys. I just made it write to that file for convenience. It makes two entries for keys, one for scan radius.
Code:
[triggerkeys]
head=14
body=20
scan radius=3
You just edit the numbers to whatever then save it.
Quote Originally Posted by Hmmmk View Post
For one, it's shade variation NOT color variation.
Also, just sending a mouseclick will click wherever your your mouse is at the time of it being sent.

one more thing....
Code:
If _IsPressed($body) = 1 Then
  While 1
    $coord = PixelSearch(MouseGetPos(0) - $radius, MouseGetPos(1) - $radius, MouseGetPos(0) + $radius, $MouseGetPos(1) + $radius, $searchcolora, 10)
    If _IsArray($coord) = 1 Then
      MouseClick("primary", MouseGetPos(0), MouseGetPos(1))
      Opt("MouseClickDelay", 0)
      Opt("MouseClickDownDelay, 0)
    EndIf
  WEnd
EndIF
When it hits that while it's never going to come out.. so ya... try again I guess.
re read the post.. i thought i'da had more time before you got to it so i was still doing some editing.. saw you posted this so im done editing it now.. i was going to tell you about how to do a custom sleep time, but since you dont want my help you can do it on your own
Hmmmk Please answer my question... I do not know what you mean by:
"The first time you run it, it'll write a few things to the CAConfig.cfg in your root directory (C).
2 of these are the keys I have been using (capslock and space).
Change them to something else if you want."

Please help me
I don't mean to come off as an ass. It's just annoying how people say AMGIMADETHISFIRSTITMUSTBEMAAICODE

@fail
I edited in the answer to my previous post.
Quote Originally Posted by Hmmmk View Post
I don't mean to come off as an ass. It's just annoying how people say AMGIMADETHISFIRSTITMUSTBEMAAICODE

@fail
I edited in the answer to my previous post.
i don't care where you got it from or if you completely wrote it out yourself.. i was just trying to help you out with some flaws in your code so there will be less people having problems..

I've made this program for months now and with all the noobs i've helped i know how to set it up properly.

In My Sig "My Apss" Multi-Function+ AND Auto-Click..

Mostly Auto-Click because it's the exact same thing here, only mine clicks when it seens an enemy name tag and not the yellow textured heads
Thanks but what are the numbers I should use... and is there a hotkey? All I have to do is run the program right?
@WarPathSin666
I appreciate it, but what you posted after the edit would turn it into a toggle, one press to turn it on, another to turn it off. I wanted it to be a key that whilst you hold down it does what it does. When you release it it stops. Which atm it does without any problems.

@fail
The numbers are listed in the initial post.
14=CapsLock
20=Space

So your capslock key makes it fire if you go over the color yellow.
Your spacebar would make it fire if you go over the color pink.

scan radius is just setting up how large it needs to scan
3 means you have a 6 pixel circle around your crosshair. Increasing the number increases the size of the circle, viceversa.
Quote Originally Posted by Hmmmk View Post
@WarPathSin666
I appreciate it, but what you posted after the edit would turn it into a toggle, one press to turn it on, another to turn it off. I wanted it to be a key that whilst you hold down it does what it does. When you release it it stops. Which atm it does without any problems.

@fail
The numbers are listed in the initial post.
14=CapsLock
20=Space

So your capslock key makes it fire if you go over the color yellow.
Your spacebar would make it fire if you go over the color pink.

scan radius is just setting up how large it needs to scan
3 means you have a 6 pixel circle around your crosshair. Increasing the number increases the size of the circle, viceversa.
dont forget to add that the bigger the box the slower the reaction time.. OH and one more thing is that at the very end of pixel search you should do a pixel search of 2..

PixelSearch(left, top, right, bottom, color, 10, 2)

so that it'll only scan every other pixel instead of every single pixel.. it'll increase the programs reaction speed and drop the lag down a lot
Ok now I really want to try this out... lol. Someone better approve this fast or someone will get mad
Posts 3139 of 39 · Page 3 of 3
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?