12-20-2009, 12:33 PM
Code:
systemUtil.Run "Notepad.exe"
Window("text:=Untitled - Notepad").WinEditor("object class:=Edit").Type "hi this is my first script"
Window("text:=Untitled - Notepad").WinMenu("menuobjtype:=2").Select ("<Item 1>;<Item 3>")
Window("text:=Untitled - Notepad").Dialog("regexpwndtitle:=Save As").WinEdit("Class Name:=WinEdit","enabled:=True","object class:=Edit","text:=*.txt"). Set "C:\Users\pratima\Desktop\first_script.txt"
'Unable to set the file name..please help me
Window("text:=Untitled - Notepad").Dialog("text:=Save As").WinButton("nativeclass:=Button","text:=&Save").Click
Window("text:=first_script").WinMenu("menuobjtype:=2").Select ("<Item 1>;<Item 7>")