(04-01-2015, 11:20 AM)edb6377 Wrote:(03-31-2015, 04:28 PM)Cichard Wrote: i cant get this to work could it be because im running multiple bots(though only 1 bot using the AHK script)
Likely due to the window name. There would then be more than FFXIV process. Might have to change the initial detection part of the process.
WinGet, programid, List, FINAL FANTASY
Basically says get a list of all windows that contain final fantasy and store the result in programid variable. (http://www.autohotkey.com/docs/commands/WinGet.htm)
So you could in theory change FINAL FANTASY to something like the CHAR NAME if you are using multiple windows to determine which one you want it to run on. This is likely why its not working where you want it to. Similar to minion. All PID's show up in a list.
(04-01-2015, 05:06 AM)duo424 Wrote: I can't figure out the Stamina portion of the script. Could someone inform me which color value is which?Code:if (color = 0x181410 or color=0x181410)
Also what location should I be looking for for the following:Code:PixelGetColor, color, 1102, 1052
For the stamina you look at coords where you want to stop pushing the W key.
For me it was the stamina bar at 15-20%. Once you get the coordinate right then you can watch and see when that % changes. I will say I don't end up finishing with 20%+ stamina so I don't really hit the OR and didn't try to figure it out. When my chocobo ends a race with more than 20% then I will worry about getting the 000000 color correct.
As for which color they shouldn't be the same. It should have been something like
if (color = 0x101418 or color=0x000000)
Hmm i used the purple balloon for color. and made sure when the window popped it matched what was in the tooltip. you could do as suggested and just use a wait instead but there is no reason it shouldn't work. Maybe I will add the COORD Indicator.
That is assuming you redid the window the right way. The keys just go to the active window but the pixels go to the named process window. You might just try with only one active first until you figure it out and then open additional windows after and see if you have the same problem.