Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Unable to save notepad file using descriptive prog.
#1
Not Solved Exclamation 
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>")
Reply


Messages In This Thread
Unable to save notepad file using descriptive prog. - by vimal singh - 12-20-2009, 12:33 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to update CSV File and need to Save same CSV File kotaramamohana 1 3,521 10-24-2015, 08:40 AM
Last Post: tigerliew
  Not able to click the save button in Save As window while downloading from SAP kathirvelnagaraj 0 2,466 08-25-2015, 07:37 PM
Last Post: kathirvelnagaraj
Sad Save data from pdf file to a word doc Amar 0 2,630 12-12-2013, 12:29 PM
Last Post: Amar
  Highlight the Found text in Word/notepad Sivakumar2186@gmail.com 2 3,722 10-21-2013, 06:31 PM
Last Post: BadrinarayananR
  Can any of the line in notepad file be appended/updated/modified via QTP(VBScript)? rookie_automator 1 2,557 08-22-2013, 07:13 AM
Last Post: basanth27

Forum Jump:


Users browsing this thread: 1 Guest(s)