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
#2
Not Solved
try replacing this in your statements
Code:
Window("text:=Untitled - Notepad").Dialog("regexpwndtitle:=Save As").WinEdit("nativeclass:=Edit").Set "C:\Users\pratima\Desktop\first_script.txt"

Reply
#3
Not Solved
Thanks buddy.. it did work.. it just asked for additional property..

Once again .. thanks for your promp reply
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to update CSV File and need to Save same CSV File kotaramamohana 1 3,511 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,459 08-25-2015, 07:37 PM
Last Post: kathirvelnagaraj
Sad Save data from pdf file to a word doc Amar 0 2,623 12-12-2013, 12:29 PM
Last Post: Amar
  Highlight the Found text in Word/notepad Sivakumar2186@gmail.com 2 3,696 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,548 08-22-2013, 07:13 AM
Last Post: basanth27

Forum Jump:


Users browsing this thread: 2 Guest(s)