Quote:
Originally Posted by imedbox
Edit: Work perfect just change GSleep(5000) to Sleep(1000) ty, i put 10 iron ore lanch the bot..., mini problem, the count time freeze at the second successes transformation 50% and continue the count at 100%
|
If you are talking about the timer on the lower left of the Status Log, that is actually the timer for the alchemy stone and it was also getting updated via GSleep(). So it's not frozen but it will just not update the GUI (That's also the reason why the buttons won't work now, but the hotkeys still do)
I plan to add some more timers as visual guide, so you can see when sidefunctions like alchystone, workerfeed and buffood will happen.
Quote:
|
Originally Posted by CrayonCode
After trying to comprehend the fucking util.cpp from the link I posted for hours, I finally figured out where the fuck the stupid fucking autoit wrapper went wrong.
Code:
else if (!_strnicmp(cp, "Trans", 5))
{
cp += 5; // Now it's the character after the word.
// Isolate the color name/number for ColorNameToBGR():
The wrapper didn't add the 'Trans' to the string, so when reading the filename string it would read "*HEX filepath" instead of correctly reading "*TransHEX filepath". So the transparency would be handled as shadevariation instead.
And they used $transparency <> 0 instead of <> "" so a string would always result in FALSE for some reason. So my manual attempts to test $transparency = "TransHEX" instead of $transparency = "HEX" failed, because of that.
Also autoit shows HEX like 0x0000FF as decimals (255) so even with adding Trans the color would be misinterpreted.
I fixed it by changing
Code:
If $transparency <> 0 Then $findImage = "*" & $transparency & " " & $findImage
to
Code:
If $transparency <> "" Then $findImage = "*Trans" & $transparency & " " & $findImage
Thanks man you made me look harder at the problem. All those different Imagesearch.au3 out there have that damn bug and no one even noticed.
There are also some more default colors mentioned in the [Only registered and activated users can see links. Click Here To Register...] that can be called with "ColorName" instead of "0xHEX":
Code:
if (!_stricmp(aColorName, "Black")) return 0x000000; // These colors are all in BGR format, not RGB.
if (!_stricmp(aColorName, "Silver")) return 0xC0C0C0;
if (!_stricmp(aColorName, "Gray")) return 0x808080;
if (!_stricmp(aColorName, "White")) return 0xFFFFFF;
if (!_stricmp(aColorName, "Maroon")) return 0x000080;
if (!_stricmp(aColorName, "Red")) return 0x0000FF;
if (!_stricmp(aColorName, "Purple")) return 0x800080;
if (!_stricmp(aColorName, "Fuchsia"))return 0xFF00FF;
if (!_stricmp(aColorName, "Green")) return 0x008000;
if (!_stricmp(aColorName, "Lime")) return 0x00FF00;
if (!_stricmp(aColorName, "Olive")) return 0x008080;
if (!_stricmp(aColorName, "Yellow")) return 0x00FFFF;
if (!_stricmp(aColorName, "Navy")) return 0x800000;
if (!_stricmp(aColorName, "Blue")) return 0xFF0000;
if (!_stricmp(aColorName, "Teal")) return 0x808000;
if (!_stricmp(aColorName, "Aqua")) return 0xFFFF00;
if (!_stricmp(aColorName, "Default"))return CLR_DEFAULT;
//#define CLR_DEFAULT 0x808080
|
Thanks to ahmedwork for making me waste half a night :p