04-01-2013, 12:23 AM
Hi Gintaras,
This is still not quite working as I expected. I created the .exe and added the image files as resources. Output confirmed they were added and the .exe created.
-- Files --
%userprofile%\images\lb.bmp
%USERPROFILE%\images\num0.bmp
..
%USERPROFILE%\images\num36.bmp
Created TRP.exe, 458 KB. Run Find
However when I run the .exe on another PC (from the one where the macros was created) it closes with an error. I think the issue is related to the following code
Function Hot
It scans all 37 images until a match is found, but it is looking for the images folder in the user profile directory, which will obviously not exist on other PCs. How can I change this so that is can scan the image files that were added as resources? Is it possible? Or do I need to create a setup program and include the image files separately?
Thanks kindly
Matt
This is still not quite working as I expected. I created the .exe and added the image files as resources. Output confirmed they were added and the .exe created.
-- Files --
%userprofile%\images\lb.bmp
%USERPROFILE%\images\num0.bmp
..
%USERPROFILE%\images\num36.bmp
Created TRP.exe, 458 KB. Run Find
However when I run the .exe on another PC (from the one where the macros was created) it closes with an error. I think the issue is related to the following code
Function Hot
for Count 0 37 ;;cycle through each saved image file
,,SetRect &r 551 59 605 94 ;;set the rectangle on the screen, relative to the active game window
,,if(scan(F"%USERPROFILE%\images\num{Count}.bmp" w r 0 100 )) ;;if a match is found between marquee number and .bmp continueIt scans all 37 images until a match is found, but it is looking for the images folder in the user profile directory, which will obviously not exist on other PCs. How can I change this so that is can scan the image files that were added as resources? Is it possible? Or do I need to create a setup program and include the image files separately?
Thanks kindly
Matt
