Pixel Search Auto Pot using AHK

Posts 1–15 of 16 · Page 1 of 2
Pixel Search Auto Pot using AHK
Member @Fulminex released a pixel search potter usign autoit @ http://www.mpgh.net/forum/showthread.php?t=1010404 but many said it doesnt work for them.
The one by taejim is still far better then a pixel bot but due to it not having the correct pointers no longer works till updated.

This one how ever will work with out pointers as it does not read memory. So unless they stop keysends or getting pixel colors at screen coords this will always work.


So in the end I made my own in Autohotkey. There is nothing special about this. All it does is searches x,y coords for a color change and when that color is changed it trys to use a potion default key "q".

How to use
Just put your mouse on the health globe where you would like it to autopot. Then hit number pad 1. You will hear one ding. This means that it is on.

To stop it just hit the number pad 1 again you will hear 2 dings.

To change the setting where it pots just stop and start it up again.


Maybe later I will write a gui with custom hotkeys but for now it is not needed. Remember to always hit that thank link. As well if you use my code please give credit where credit is due.

Autohotkey Source:
 
Version 1.0
;Version 1.0
;First Release
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
AutoPot = off
XPos = 0
YPos = 0
PixelColor = 0

NumPad1::
If AutoPot = off
{
AutoPot = on
MouseGetPos, XPos, YPos
PixelGetColor, PixelColor, %XPos%, %YPos%
SetTimer, AutoPot, 100
SoundPlay, %A_WinDir%\Media\Windows Ding.wav
} else If AutoPot = on
{

AutoPot = off
SetTimer, AutoPot, Off
SoundPlay, %A_WinDir%\Media\Windows Ding.wav
sleep 100
SoundPlay, %A_WinDir%\Media\Windows Ding.wav
}
return


AutoPot:

PixelGetColor, PixelColor2, %XPos%, %YPos%
If (PixelColor == PixelColor2)
{
;ToolTipDisplay("Matched" . PixelColor . " x" . PixelColor2)
} Else {
if WinActive("ahk_exe Trove.exe")
{
Send q
ToolTipDisplay("Trying to use a pot.")
}
}
return

ToolTipDisplay(Message) {
ToolTip, %Message%
SetTimer, RemoveToolTip, 5000
return
}
RemoveToolTip:
SetTimer, RemoveToolTip, Off
ToolTip
return



https://www.virustotal.com/en/file/6...is/1439946573/

Code:
SHA256:	6e652cfb2c2909d3291ad65d050d8762461a2855cf1464d7b957d029127a6750
File name:	Pixel Autopot1.0.rar
Detection ratio:	1 / 56
Analysis date:	2015-08-19 01:09:33 UTC ( 0 minutes ago )
Pixel Autopot1.0_mpgh.net.rar480 KB · 543 downloads Clean
This literally does the same thing as mine, the only reason it doesn't work for people is because they don't understand how to use it.
Quote Originally Posted by powaful3000 View Post
This literally does the same thing as mine, the only reason it doesn't work for people is because they don't understand how to use it.
Basically but in autohotkey not a fan of autoit. Also mine has a on and off function along with a reset not having to reload the whole thing if you miss the coords. Only briefly looked at yours and never used it at all. So not for sure all the feature if any that yours might have.
lets try it i think its nice
Approved.
Quote Originally Posted by Jhem View Post
Approved.
I edited : Send q
with a for my azerty keyboard and that work
Quote Originally Posted by gamemen9 View Post
Very buggy
Whats buggy about it? If you don't tell us how can we fix it?
Only bugs I found are everytime you use a portal it uses a pot and if you tab and go into builder mode it uses a pot
Quote Originally Posted by mikeydp805 View Post
Only bugs I found are everytime you use a portal it uses a pot and if you tab and go into builder mode it uses a pot
Right now I can't think of a way to fix this. But you are right you change maps the load screen comes up. So the pixels changes and when you hit tab and enter build mod the pixels changes due to the bar getting bigger.

I am open to any ideas if anyone happens to know how to fix this. Only thing I might be able to fix is the Tab. Have it detect the tap press and pause the to pot during build mode. But not 100% on that.
Well this works like a charm! Thank you very much! Two things i want to point out. First when you have the autoit up and running and you load a new world it tries to use a potion and when you load it wastes one for no reason, i'm pretty sure you can't fix that since it uses x,y coords. But i had to point it out. Second and this is just cosmetic, when you are using a potion there's no reason for the little text to pop up every time. It can get somewhat annoying! But other than those two things, this release works and it works great!
Quote Originally Posted by ilias3456 View Post
Well this works like a charm! Thank you very much! Two things i want to point out. First when you have the autoit up and running and you load a new world it tries to use a potion and when you load it wastes one for no reason, i'm pretty sure you can't fix that since it uses x,y coords. But i had to point it out. Second and this is just cosmetic, when you are using a potion there's no reason for the little text to pop up every time. It can get somewhat annoying! But other than those two things, this release works and it works great!
yeah the tooltip was a debug thing so I knew what it was doing. I will have it removed for next go around. And I might have a idea to fix that little issue during loading screens but wont help if you use the tab menu.


Edit:
Issue with potting when going from build to adventure mode.
I noticed if you put your mouse on the left side of the globe and when you hit tab it wont autopot when you tab between. So this is the thought for you guys that have that issue. Still looking in to a idea for the switching between maps. Maybe I might add a tick counter if it starts to spam q like within 3 secs it pauses for 10 to 20 secs. might solve the issue with that.
Could you please update this tool? Add a gui solve the issues when changing maps etc? Its a great tool as it is but it needs a little bit more Thanks btw!
Tryed and work. NJ
Posts 1–15 of 16 · Page 1 of 2

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?