america9 0 Newbie Poster

Hi,

I am trying to develop a windows batch file /vbscript, where the script automatically opens an .exe (like for ex: notepad.exe) and selects the file menu and scroll to a particular file menu subitem .

This is the code i have so far :

Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "notepad"
WScript.Sleep 500 ' Give Notepad some time to load
WshShell.SendKeys "%f"

Now, how would i proceed for selecting a sub menu item in File menu ( for ex : pagesetup) .

Any help would highly be appreciated.

-Thanks

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.