Guest Sastin Posted August 17, 2004 Posted August 17, 2004 I am sure this is something really simple for the most of you but I seem to be stuck. I am using as a base (although I understand it now) one of the examples for notepad. I can get the script to save in the last place the user saved, but would like it saved to the D drive. Any help you folks can give me would be greatly appreciated. Run("notepad.exe") WinWaitActive("Untitled - Notepad") Send("For version 6.0.1") Sleep(500) Send("+{UP 2}") Sleep(500) Send("!f") Send("x") WinWaitActive("Notepad", "Yes") Send("y") Send("6.01.txt") #FileSaveDialog("6.01", "$d") Sleep(1000) Send("!s") WinWaitClose("Untitled - Notepad") I am thinking that it is something to do with filesavedialog but I cant seem to get it right. Thanks again.
this-is-me Posted August 17, 2004 Posted August 17, 2004 (edited) It works fine here, but you will need to specify the full directory to save to. Try this instead: Run("notepad.exe") WinWaitActive("Untitled - Notepad") Send("For version 6.0.1") Sleep(500) Send("+{UP 2}") Sleep(500) Send("!f") Send("x") WinWaitActive("Notepad", "Yes") Send("y") Send("D:\6.01.txt") #FileSaveDialog("6.01", "$d") Sleep(1000) Send("!s") WinWaitClose("Untitled - Notepad") and it will save to the D drive instead of in the last directory. Edited August 17, 2004 by this-is-me Who else would I be?
Guest Sastin Posted August 17, 2004 Posted August 17, 2004 Wow, that was so simple it was embarassing. Thank you for your help. :">
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now