Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

Image Search can't loop!


  • Please log in to reply
No replies to this topic
SnowFlake_FlowSnake
  • Members
  • 845 posts
  • Last active: Jan 24 2016 05:24 PM
  • Joined: 08 Oct 2012

Hi,

 

Im making a Bot for a game called Project RS06 it's a game similar to Runescape, i have made a simple bot to bank all my items if inventory is full, and it's working perfectly now i only want it to loop.

 

 

my code:

 

#NoEnv
SetWorkingDir %A_ScriptDir%
CoordMode, Mouse, Window
SendMode Input
#SingleInstance Force
#WinActivateForce
WinActivate, Play - Project RS06 - RuneScape Private Server - Google Chrome ahk_class Chrome_WidgetWin_1
F4::exitapp

stop = 0
Loop
If stop = 0
{
CoordMode, Pixel, Screen
ImageSearch, FoundX, FoundY, 0, 0, 1366, 768, *0 C:\Users\Skillsa2\Downloads\Screenshots\Screen_20130203215913.png
If ErrorLevel = 0 ; bilden hittad äter mat
{

SetTimer, RefreshTrayTip, 1000
Gosub, RefreshTrayTip  ; Call it once to get it started right away.


RefreshTrayTip:
TrayTip, BOT, Inventory Full Will Now Bank, 16


Sleep, 1294
Click, 916, 205 Left, , Down
Sleep, 234
Click, 916, 205 Left, , Up
Sleep, 14618
Click, 576, 458 Left, , Down
Sleep, 187
Click, 576, 458 Left, , Up
Sleep, 4711
Click, 502, 339 Right, , Down
Sleep, 172
Click, 502, 339 Right, , Up
Sleep, 1217
Click, 505, 376 Left, , Down
Sleep, 156
Click, 505, 376 Left, , Up
Sleep, 4539
Click, 882, 416 Right, , Down
Sleep, 156
Click, 882, 416 Right, , Up
Sleep, 718
Click, 900, 487 Left, , Down
Sleep, 218
Click, 900, 487 Left, , Up
Sleep, 4602
Click, 972, 313 Left, , Down
Sleep, 172
Click, 972, 313 Left, , Up
Sleep, 9235
Click, 944, 289 Left, , Down
Sleep, 172
Click, 944, 289 Left, , Up
Sleep, 6443
Click, 626, 410 Left, , Down
Sleep, 171
Click, 626, 410 Left, , Up



}

If ErrorLevel  ; bilden inte hittad
{
F3::exitapp
SetTimer, RefreshTrayTip2, 1000
Gosub, RefreshTrayTip2  ; Call it once to get it started right away.

RefreshTrayTip2:
TrayTip, BOT, Keep Fishing., , 16


Sleep, 171
Click, 570, 392 Left, , Down
Sleep, 188
Click, 570, 392 Left, , Up

return
}

}
return

F2::stop:=!stop

 

Tnx  :D


  • Download link of my scripts on Autohotkey.com 2/10/2015 [DOWNLAND]
  • Contact Info:  https://github.com/floowsnaake //  FloowSnaake(A)gmail.com
  • IF you need Help send me a PM,Email or Post on Github

  • Quote by tank  Posted 29 September 2015 - 06:14 PM

  • "Eventually i will find a way to convert the DB back to PHPBB3. but i dont have the bandwidth right now. No one that has tried has had success. It is the Only way i can keep this open is if i could successfully convert it."