Jump to content
Sign in to follow this  
Guest Sastin

Need Help With Something Simple

Recommended Posts

Guest Sastin

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.

Share this post


Link to post
Share on other sites

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 by this-is-me

Who else would I be?

Share this post


Link to post
Share on other sites
Guest Sastin

Wow, that was so simple it was embarassing. Thank you for your help. :">

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...