IF you need the other app to save a file, AND IF that location is across a LAN, you may hit timing delays, so you add something like a {SLEEP 500}, and probably, you're fine; the app finally resolves the path, and your command to save then executes.
BUT: IF you're trying to feed a full path and filename to that app in one string, you may hit another problem - the other app gets lost and confused.
So if {SLEEP xxx} didn't help, try this: break the path and filename into two separate commands.
Change this:
Code:
SendKeys "P:\01 New\MyFile.txt{ENTER}"
Code:
SendKeys "P:\01 New\{ENTER}" ' Step 1: first, force the change of directory Sleep 200 'take a quick breather SendKeys "MyFile.txt{ENTER}" ' Step2: now provide the filename
Leave a comment: