I fixed that issue. It's working fine now but can you help me for coding random walks? I can't maintain teleporting since SP being drained too quickly.
it's a low rate server.
it's a low rate server.
a_screenwith means the width of your screen. it automatically finds your screen size, thou you can also manually set it.Quote:
Good day sir...i have a question.what the meaning of.a_screenwith..it says alway peco not found....can u explain what size of screen resulotion to be used...thnx for the answer
[Only registered and activated users can see links. Click Here To Register...]Quote:
Can you link to the OCR, I tried some of them in the AHK forums but they don't seem to work for me.
Thanks in advance :)
THANK YOU SO MUCH!!!!:handsdown:Quote:
a_screenwith means the width of your screen. it automatically finds your screen size, thou you can also manually set it.
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]
Have not test the code since i no longer play DarkRO if there is problem please post againQuote:
(F3)(3), 623, 493#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.
f2::Reload
F1::
{
Loop
{
Sleep 750
ImageSearch, FoundX, FoundY, 1, 1, A_ScreenWidth, A_ScreenHeight, Grand.png
if (ErrorLevel = 0)
{
Click, %FoundX%, %FoundY%
sleep 1300
send {H}
}
else if (ErrorLevel = 1)
{
send {H}
}
{
{
Sleep 500
ImageSearch, FoundX, FoundY, 0, 0, A_ScreenWidth, A_ScreenHeight, Orc.png
if (ErrorLevel = 0)
{
sleep 200
Send {H}, %FoundX%, %FoundY%
}
}
}
}
}
return
I'm not a pro programmer but I'm trying to learn how to make this config a bit more less hassle in terms of avoiding the orc or when my farmer detected that there's an orc nearby it will automatically gonna use fly wing but I've tried a million times now I really can't figure out what command I should use..I hope the author of this thread could help and check this script that I made
F1::
{
telecounter := 0
Loop
{
Sleep 500
ImageSearch, FoundX, FoundY, 0, 0, A_ScreenWidth, A_ScreenHeight, Orc.png
if (ErrorLevel = 0)
{
sleep 200
Send {H}
}
else if (ErrorLevel = 1)
{
sleep 500
ImageSearch, FoundX, FoundY, 1, 1, A_ScreenWidth, A_ScreenHeight, Grand.png
if (ErrorLevel = 0)
{
Click, %FoundX%, %FoundY%
sleep 500
telecounter++ ;; You need this so pixel bot will not get stuck if peco cannot be reached
if telecounter > 15 ;; It will force teleport every 15seconds with or without peco
{
send {H} ;; Assuming your teleport or flywing is Letter H
}
}
else if (ErrorLevel = 1)
{
send {H}
telecounter = 0
}
Sleep 500
}
}
}
return
your monster PNG must be color accurateQuote:
I follow the instruction but it keep me teleport only. Not even clicking the monster Peco
CoordMode, Pixel, Relative
CoordMode, Mouse, Relative
F2::Reload
F1::
{
telecounter := 0
WinWaitActive, DarkRO: Rebirth
WinSetTitle, DarkRO: Rebirth
WinGetActiveStats, Title, www, hhhh, X, Y
Loop
{
Sleep 500
ImageSearch, FoundX, FoundY, 0, 0, www, hhhh,*50 orc.png
if (ErrorLevel = 0)
{
sleep 200
Send {H}
}
else if (ErrorLevel = 1)
{
sleep 500
ImageSearch, FoundX, FoundY, 0, 0, www, hhhh,*50 grand.png
if (ErrorLevel = 0)
{
Click, %FoundX%, %FoundY%
sleep 500
telecounter++ ;; You need this so pixel bot will not get stuck if peco cannot be reached
if telecounter > 15 ;; It will force teleport every 15seconds with or without peco
{
send {H} ;; Assuming your teleport or flywing is Letter H
}
}
else if (ErrorLevel = 1)
{
send {H}
telecounter = 0
}
Sleep 500
}
}
}
return
its easy with vis2 ocrQuote:
do you have a script for auto answering the bot checker captcha?
text := OCR([x, y, w, h])
text :=StrReplace(text, "[", "") text :=StrReplace(text, "]", "") text :=StrReplace(text, " ", "") text :=StrReplace(text, "|", "")
ImageSearch, FoundX, FoundY, 0, 0, A_ScreenWidth, A_ScreenHeight, countchars.png
if (ErrorLevel = 0)
{
text := OCR([x, y, w, h])
text := StrLen(text)
text :=StrReplace(text, "[", "")
text :=StrReplace(text, "]", "")
text :=StrReplace(text, " ", "")
text :=StrReplace(text, "|", "")
sleep 5000
send {enter}
sleep 5000
send %text%
sleep 1000
send {enter}
sleep 1000
send {enter}
sleep 1000
}
ImageSearch, FoundX, FoundY, 0, 0, A_ScreenWidth, A_ScreenHeight, add.png
if (ErrorLevel = 0)
{
gosub, addsubtract
}
ImageSearch, FoundX, FoundY, 0, 0, A_ScreenWidth, A_ScreenHeight, sub.png
if (ErrorLevel = 0)
{
gosub, addsubtract
}
addsubtract::
{
text := OCR([x, y, w, h])
text :=StrReplace(text, "[", "")
text :=StrReplace(text, "]", "")
text :=StrReplace(text, " ", "")
text :=StrReplace(text, "|", "")
Loop, parse, text, `*/+-
{
if A_Index = 1
number1 := A_LoopField
if A_Index = 2
number2 := A_LoopField
}
If InStr(text, "-")
{
number := number1 - number2
sleep 5000
send {enter}
sleep 5000
send %number%
sleep 1000
send {enter}
sleep 1000
send {enter}
sleep 1000
}
If InStr(text, "+")
{
number := number1 + number2
sleep 5000
send {enter}
sleep 5000
send %number%
sleep 1000
send {enter}
sleep 1000
send {enter}
sleep 1000
}
}
return