I have a text file "Letters.txt"
The letters.txt contains the following
Apple
Pineapple
Mango
Orange
I want a code that after a user inputs for example "App" in the search box it's able to search for all words having "App" in them
such as
Apple
Pineapple
and then randomly break the words into Two Letters and add to the ListBox
Example Break Pineapple to Pi, Ne, Pl, Le and separately add it to the ListBox with Time Delay
I have the code below which is able to randomly select the word from the Letters.txt
But it's left with the function break the words and add to the list box
- Code: Select all
.Declaring Variables
SetVar "[2Letters]" "[PubDir]Letters.txt"
.Loop through text file and randomly select a word
Loop "1" "[Lbk]" "[Loop1]"
Delay "500"
FileLen "[2Letters]" "[LetterSize]"
Random "[LetterSize]-1" "[Pos]"
FileRead "[2Letters]" "[Pos]+1" "[Word]"
..Here is where i now want to randomly break the words and add to the list box
EndIf
EndLoop
Please any help will be appreciated