04-07-2015, 08:09 AM
(This post was last modified: 04-07-2015, 08:27 AM by Rustyclippers.)
(04-07-2015, 04:08 AM)Cichard Wrote: this one doesnt work it doesnt even select to start the race, it never hits a(left) to click ok. it just clicks cancel. Not sure why none of these remotely work. the only one i have found that works is rusty and it just comes in last place every time.
My script requires you to have the race npc targeted before you start it. It will accept the race properly on subsequent loops even though you zone back into the chocobo square without the npc selected. My script also is ment to be run with minion and skip dialogue enabled. People dont seem to mention those things with their scripts normally.
Hopefully you get it working. I ran into an issue were i started using an ahk script / tool to pull coords + colour into my clipboard. For an hour i was utterly confused why my scripts weren't working. Eventually i noticed the tool i was using was pulling RGB format instead of BGR
Code:
Loop
{
ImageSearch, FoundX, FoundY, 610, 263, 700, 284, C:\file\path.bmp
if ErrorLevel = 0
{
Sleep 100
Click %FoundX% %FoundY%
break
}
else
continue
}
http://www.autohotkey.com/docs/commands/ImageSearch.htm
You can also use image search. You take a screenshot and search for the image within a specified area. Certain situations like triggering an event off a word work better with image search. or situations were a pixel color is common and multiple things can trigger it.
The code above will actually click were the image is found. X variable "FoundX" and the Y variable are the coordinates of the top left of the screenshot image were it is found on the screen. As long as your screenshot image is smaller then the button .
all screenshot images are not created equally. Use lightshot and bmp images. I have had success with 32bit bmp images. other programs + other image types + other sizes gave me greif