Hi,
i just stumble on this AHK and love the idea of it..i have 0 programing skill so its a bit dificult for me to write the code.
i need help with simple logic:
If area on my computer(mouse cursor) x, y is not green 0x36E182 > left click mouse > then if colour green 0x36E182 show > left click mouse > wait 2 sec > loop from start
anyone can help ?
Simple Loop with Colour
Re: Simple Loop with Colour
This is a bit confusing. If the color is not green, then how will it then be green immediately after that?
Re: Simple Loop with Colour
so its for fishing thing, i need to click some "area" on the screen to throw the fishing rod...and wait until the click same "area" to turn green to click again immediately
Re: Simple Loop with Colour
Possibly something like this.
Code: Select all
target := "0x82E136", on := False
F3::SetTimer, Check
Check:
MouseGetPos, x, y
PixelGetColor, color, x, y
ToolTip, %on% %color%
If (on ^ (color = target))
Return
Click
SoundBeep, 1000 + 500 * on
Sleep, 1750 * on
on := !on
Return
Who is online
Users browsing this forum: BrightWen and 32 guests