TypingAid icon indicating copy to clipboard operation
TypingAid copied to clipboard

Warn the user when the Wordlist file does not exist or is empty

Open ManiacDC opened this issue 10 years ago • 5 comments

@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...

ManiacDC avatar Oct 31 '14 12:10 ManiacDC

This drove my crazy until I realized it!

danielo515 avatar Feb 20 '15 10:02 danielo515

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.

ManiacDC avatar Feb 20 '15 13:02 ManiacDC

Then you should write in bigger letters than the wordslist.txt is mandatory and should be placed on the same folder as the script.

danielo515 avatar Feb 20 '15 22:02 danielo515

It's not actually mandatory... if it doesn't exist, the script should work fine - it will just only work for learned words.

ManiacDC avatar Feb 24 '15 18:02 ManiacDC

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: and then restart TypingAid. [/Sample Text]

Theclaws avatar Apr 12 '15 02:04 Theclaws