app.Notepad.MenuSelect("File->Save As")/*saveas dialog box opened and waiting for the filename*/

regards
Kumar

hello guys,

I have written a script to open notepad and added the text in script, after that i want to save the file in text format.

from pywinauto import application

app=application.Application()
app.start_('Notepad.exe')
app.Notepad.edit.TypeKeys('hello')

app.Notepad.MenuSelect("File->Open")
app.Notepad.MenuSelect("File->Save")/*saveas dialog box opened and waiting for the filename*/

Please guide me

Regards
kumar

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.