I am trying a very simple code as it was listed with out total success.
Looking at the code listed below everything works as expected until the Send>filename command for the Save as window. The Send command never executes so the Save As window keeps the focus with out populating the file name or the Press Enter command.
I kept the code as basic as possible to test the function.
Any ideas?
Code: Select all
Let>filename=C:\sample.txt
Run>Notepad.exe
WaitWindowOpen>Untitled - Notepad
Let>firstline=This is the first line
Let>secondline=This is line two.
Let>thirdline=This is the third and final line.
Let>entiretext=%firstline%%CR%%secondline%%CR%%thirdline%
Send>entiretext
Press Alt
send fa
Release Alt
WaitWindowOpen>Save As
IfFileExists>filename
DeleteFile>filename
Endif
SetFocus>Save As
Send>filename
Press Enter