Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Copy content's of one macro to the other and compile to exe
#1
For example:
Code:
Copy      Help
if(scan("5 ITEM.bmp" 0 r 1 70))

Now the item's macro keeps checking will change, as he goes from item 1 to item 2 item 3 and so on. Is it somehow posible to make a variable containing the name of the bmp, in this case 5 ITEM.bmp. And put that instead of the actual name so it's like this:
Code:
Copy      Help
str Item.getfile("C:\Items\CurentItem.txt")
if(scan("item" 0 r 1 70))
...

where CurentItem.txt contains the name of the bmp: 5 ITEM.bmp, than variable "item" takes it. In the next loop it will contain 6 ITEM.bmp for example ect.

This would be extremly usefull as i wouldnt have to rewrite the entire macro and functions for every diferent item he needs to check. This way code stays the same and when the loop starts he will just change the name of the item bmp in CurentItem.txt and use it trought the macro..
I hope managed to describe where im going wiith this. If i need to explain more please let me know.
Thank you for your help.

Update: I managed to do similar thing using image macros bmp's and to change the contents of the "item" using the code
Code:
Copy      Help
_s.getmacro("ITEM5.bmp"); _s.setmacro("ITEM.bmp")


Messages In This Thread

Forum Jump:


Users browsing this thread: 10 Guest(s)