Tailor Made Tools/Programs for You - AHK

02/24/2009 05:51 Evan Lim#241
vegetasupersaiyan6@
probably make the seaching range larger, like
Code:
ImageSearch, XX, YY, 400,10, 800, 400, *5 %A_desktop%\goldore.bmp
CObotter@
for checking HP background, it will be hard, well at least i dont know how to do it
because HP value is encrypted (something call DMA)
and for checking account name, i am not sure if the following code works, u can try:
Code:
name = evan
WinGetText, outputvar, [Conquer  
IfInString, outputvar, %name%
MsgBox, %name% was found:`n%outputvar%
else
MsgBox, %name% was not found:`n%outputvar%
02/25/2009 02:09 almoslem2005#242
hmmmmmmmmmmm
i need autostg background work with all patches
02/25/2009 02:30 Acidburncx#243
Evan Lim i tested it yesterday works great but is it also possible that it start selling gold ore on the inventory on the very first left corner top on the mouse coursor it be great f u can manage this thank you in advance and for u fast response :)
02/25/2009 02:31 Evan Lim#244
almoslem2005@
this works:
[Only registered and activated users can see links. Click Here To Register...]
02/25/2009 03:11 kinshi88#245
Would it be possible for you to create an Auto Reviver?

So it revs either when the person dies or ever X seconds, then after Y amount of revs it pots with F1.

(Prefer: X = 5, Y = 2)

Thanks.
02/25/2009 07:20 Acidburncx#246
Evan Lim i tested it yesterday works great but is it also possible that it start selling gold ore on the inventory on the very first left corner top on the mouse coursor it be great f u can manage this thank you in advance and for u fast response sorry for double post cuz no response :(
02/25/2009 08:02 Evan Lim#247
vegetasupersaiyan6@
right now which row and column does it start first?
or do u mind changing the function to define searching area by your mouse position

kinshi88@
if its not background, sure it is possible
my plan will be image search the rev yellow icon
if exists, then wait for X seconds
then click the image

if u want this, please provide a screenshot of the rev icon in BMP format
02/25/2009 08:34 Acidburncx#248
It's on the very corner left on very top
02/25/2009 08:44 Evan Lim#249
vegetasupersaiyan6@
so...right now starts "on the very corner left on very top" (row1, column1)
and where do u want the program to start?
02/25/2009 09:08 Acidburncx#250
What do u mean where I want the program to start?
Really sorry i'm nt very good at this it the same but I just want on row1 and column1 to start selling all the gold ore
02/25/2009 16:32 Evan Lim#251
vegetasupersaiyan6@
ok, i understand u want the program to start selling from row1 col1
but i want to know is right now the program starts from which row and col?
because the image search function is suppose to search from top to bottom, left to right
which is suppose to be top left first
02/25/2009 17:49 Acidburncx#252
it starts at row3 and column2 and the 2nd choice it picks is row1 column3 here's a screenshot also [Only registered and activated users can see links. Click Here To Register...]
02/25/2009 18:40 stickray#253
Quote:
Originally Posted by Evan Lim View Post
vegetasupersaiyan6@
if it doesnt sell, what does the program do?
did it not detect the images?

stickray@
Code:
msgbox, Ctrl + Q to pause
settimer, checkhp, 500

checkhp:
IfWinActive, [Conq
{
PixelSearch, , , 10, 720, 60, 720, 0x0B098F, 10, Fast
if ErrorLevel
{
send {F1}
sleep 1000
}
}
return
^q::pause
thanks evan :):handsdown:
02/25/2009 21:03 Evan Lim#254
vegetasupersaiyan6@
does it matter which gold ore u sell first? or are u just trying to make it looks pretty when clicking?
right now i am thinking of:
check row1 col1 area, if no match, continue
check row1 col2 area, if no match, continue
check row1 col3 area, if no match, continue
check whole bag area, if no match, that means no more gold ore in bag

apparently this method will increase the script size at least 4 times, but of course i dont mind, but u will need to give me the coordinates of row1 col1, row1 col2 and row1 col3 (try to get the center point of the box).
u can use the following script to find the coordinates:
Code:
loop
{
sleep 200
MouseGetPos, xx, yy
if (xx != oldxx or yy != oldyy)
tooltip, x%xx% y%yy%,1,1
oldxx:=xx
oldyy:=yy
}
02/26/2009 00:11 Acidburncx#255
kinda but sadly im not good with coordinate :(