Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to spin words/text?
#1
Hi, I'd like to know which code I need to use to spin text? Let's say I need a different title each time I post an ad online, how can I use one random premade title for each ad that I'm making? Thanks in advance.
#2
Macro Macro2789
Code:
Copy      Help
str texts=
;text1
;text2
;text3

ARRAY(str) a=texts
int i
rep
,str s=a[i]
,i+1; if(i=a.len) i=0
,out s
,1

random
Macro Macro2790
Code:
Copy      Help
str texts=
;text1
;text2
;text3

ARRAY(str) a=texts
rep
,int i=RandomInt(0 a.len-1)
,str s=a[i]
,out s
,1
#3
Function Function4
Code:
Copy      Help
str ads=
;adtext1
;adtext2
;adtext3
;adtext4

ARRAY(str) myads=ads

for int'i 0 myads.len
,_i=RandomInt(0 3)
,out myads[_i]


Just a framework..
#4
ooops our Master was quicker than me.....
#5
Thank you Smile its working the only problem I have now is to get it working on websites or notepad/microsoft word (the title variation only appear inside my macro)


Forum Jump:


Users browsing this thread: 1 Guest(s)