begin
Keyboard.Hold keys("{<ctrl>}")
Keyboard.Press key("3")
Keyboard.Release keys("{<ctrl>}")
Color.Limit area of interest to coordinates("{FishingBarX}", "{FishingBarY}", "336", "28")
Mouse.Click("Left")
Macro.Pause("6000")
Function.Execute with timeout("fish", "5000")
Keyboard.Press key("{<space>}")
Macro.Pause("100")
end
function("fish")
begin
begin loop()
if Color.Can be located on screen (RGB)("106", "134", "250", "5")
begin
Color.Find coordinate of first occurrence (RGB)("106", "134", "250", "5", "x", "y")
begin loop()
Variable.Add (Math)("x", "{Displacement}")
if Color.Near coordinate is within (RGB range)("209", "238", "195", "1", "{x}", "{y}", "35")
begin
Macro.Break from loop("no")
end
end
Macro.Break from loop("no")
end
end
end
function