TypingAid
TypingAid copied to clipboard
Warn the user when the Wordlist file does not exist or is empty
@ManiacDC: you could build in a few checks:
IfNotExist wordlist.txt
MsgBox Can not find a word list file (default: wordlist.txt) ; you could include follow up question do you want to create or select one?
and
If (ParseWords = "")
MsgBox Word list file seems to be empty...
This drove my crazy until I realized it!
I just need to think of a way to suppress this message - what if it's blank/missing intentionally?
In the SQL Version, I think I can just set a flag to suppress the warning once the user has chosen to ignore it, so I'll probably implement this at that point.
Then you should write in bigger letters than the wordslist.txt is mandatory and should be placed on the same folder as the script.
It's not actually mandatory... if it doesn't exist, the script should work fine - it will just only work for learned words.
Perhaps a better way to do this would be to pop-up a tooltip upon loading and state:
- Display text on the following conditions:
- SQL database does not exist yet
- Wordlist file cannot be found
- 'Learn new words as you type' setting is set to ON
[Sample Text] No initial wordlist.txt file found to create initial word database - words will be learned as you type.
If you have a word list that you want start your word database with, close TypingAid, place the file as wordlist.txt in the following folder: