How would i implement that into a .vbs file like my example above?
You probably wouldn't unless you've gone mobile!
Consider which control has focus; then consider how many times you have to hit the tab key to give the control in question focus. Once the the control has focus, send the enter key (same as a mouse click in this context).
Microsoft might have had a great editor if they'd made notepad scriptable. Instead only the clunky sendkeys method seems to work. You can make menu choices with sendkeys by using alt+underline letter (atl-f for file or alt+e for edit etc) to grab the menu, or use the menu shortcuts to do things like save (ctl-s) or paste (ctl-v), etc.
Are you sure the
WshShell.AppActivate "wordola.txt" is correct? That does not appear to be the window title for notepad.