pegmanm Posted February 1, 2008 Share Posted February 1, 2008 I'm a little stumped and I'm sure this is going to be easy so please bear with me. The end result of all this is to save a file within an application with the file name of todays date. So to test I have the two scripts below. I'm seeing confusing results as follows. $yDay = @YDAY MsgBox(0, "Hello", "{" & $yDay & "}") ; Correctly gives me todays day(032) in the MsgBox However $yDay = @YDAY Run("notepad.exe") WinWaitActive("Untitled - Notepad") ;WinWaitActive("Save As") Send("{" & $yDay & "}") Correctly Opens Notepad but only types 0 into the window. Why would the Send here drop the last two chars.? If that is what is actually happening and I'm not getting 0 for another reason. Regards and thanks for all your help Martin P Link to comment Share on other sites More sharing options...
Innovative Posted February 1, 2008 Share Posted February 1, 2008 Thanks for the double post.. But as i said in the other post.. This should be ok $yDay = @YDAY Run("notepad.exe") WinWaitActive("Untitled - Notepad") ;WinWaitActive("Save As") Send("" & $yDay & "") Link to comment Share on other sites More sharing options...
pegmanm Posted February 1, 2008 Author Share Posted February 1, 2008 That's Great Thanks. Sorry about the double post I got a Server 500 Error while posting and a refresh of my browser must have re-posted. Apologies again and thanks for your help. Martin P Thanks for the double post.. But as i said in the other post.. This should be ok $yDay = @YDAY Run("notepad.exe") WinWaitActive("Untitled - Notepad") ;WinWaitActive("Save As") Send("" & $yDay & "") Link to comment Share on other sites More sharing options...
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