Setvirtualresolution(640,480)
ResetTimer()
text$="AGK,Example:Text"
words=CountStringTokens(text$,",:")
Repeat
Printc(text$+" has ")
Printc(words)
Print(" words (tokens)")
Sync()
Until Timer()>15
End
Help make AGK better by submitting an example for this command! (All examples are subject to approval)
Setvirtualresolution(640,480) ResetTimer() text$="AGK,Example:Text" words=CountStringTokens(text$,",:") Repeat Printc(text$+" has ") Printc(words) Print(" words (tokens)") Sync() Until Timer()>15 End