Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help Adding An Incrementing number to an entry
#1
I use this program to autorespond on messageboards when im away I would like to add a number to the end of the input that goes up by one each time it autoposts.

For instance

Im Away 1

next post

Im Away 2

next post

Im Away 3

and so on...

I can get it to display the numbers yet I cannot get it to increment them properly
#2
If the macro runs multiple times

Code:
Copy      Help
int+ g_away
g_away+1
str s.format("Im away %i" g_away)
outp s

To reset the global variable, use this macro:
Code:
Copy      Help
int+ g_away=0


If the macro runs continuously

Code:
Copy      Help
int away
rep
,away+1
,str s.format("Im away %i" away)
,outp s


Forum Jump:


Users browsing this thread: 1 Guest(s)