In Automatic Mouse and Keyboard, you can call the function RandomString to generate a random string. You can also call the function RandomNumber to select a random string from a string list.
Random String

You can download the sample from rand_str.amk.

Automatic Mouse and Keyboard now has a very useful function StringFormat. It can return a formatted string. You can get a specified format string with StringFormat easily.
String Format

You can download a sample from str_fmt.amk.

To load a txt file, you can call the function LoadTextFile. And then you can call the function SplitString to split the texts to lines. You can also call SplitString again to split a line to values. The following sample show you how to load a text file and split its content.
Load Text File

You can download the sample from LoadTextFile.zip
And you can learn more about the function SplitString from http://blog.robot-soft.com/how-to-split-string.

Sep 192014

You can call the function SplitString to split a string in Automatic Mouse and Keyboard.

Split String

The function SplitString split a string with specified key. It returns an array which contains the results.
Split String Sample

You can download the sample: SplitString.amk

© 2017 RobotSoft Suffusion theme by Sayontan Sinha