Page 1 of 1
Open next menu in programm
Posted: 12 Oct 2021 13:17
by fisher82_55
hi. i want to open a notepad
push on file and new
please help to write bar file
what a code to push enter or tab .thanks
Re: Open next menu in programm
Posted: 13 Oct 2021 00:25
by aGerman
Batch code is unable to interact with graphical interfaces. So you cannot open menus or push buttons. For things like that choose another language like AutoIt and others.
You can, however, open a file in notepad.
Steffen
Re: Open next menu in programm
Posted: 13 Oct 2021 07:07
by ShadowThief
I've also never heard of any modern text editor that doesn't let you press CTRL+N to create a new file.
Re: Open next menu in programm
Posted: 13 Oct 2021 12:37
by fisher82_55
hi.thanks for your answer.
example
a want a open specific program into this program i have a more tabs/
i want to open a one of tabs.
in this tab i want will open a new window of something (nevermind what this do) just
example ( in excel ---> (open excel--->open data--->cluck on a filter )
you can help me with a bat commands/
Re: Open next menu in programm
Posted: 13 Oct 2021 12:53
by Squashman
fisher82_55 wrote: ↑13 Oct 2021 12:37
you can help me with a bat commands/
NO! You were just told that batch files cannot interact with graphical user interfaces.
Re: Open next menu in programm
Posted: 13 Oct 2021 12:55
by aGerman
Seems you didn't understand my clear statement. You can NOT move the mouse to a certain window/control/tab/menu item/... and click it using Batch. Batch can NOT interact with graphical interfaces. Only with command line interfaces.
Steffen
Re: Open next menu in programm
Posted: 13 Oct 2021 14:01
by atfon
There is this post that discusses how to use wscript send keys for this and wrap it in a batch script:
viewtopic.php?t=4758
Re: Open next menu in programm
Posted: 13 Oct 2021 14:57
by aGerman
This uses another scripting language. And not even VBS or JS will be able to emulate mouse clicks. You could, however, remote control MS Office applications using VBA in a VBScript. This would be rather off topic in this forum, and I'm only telling about it because the OP mentioned Excel as an example (while they actually asked about an unspecified "specific program" and "open a new window of something" where VBA is most likely no option anymore).
Steffen
Re: Open next menu in programm
Posted: 13 Oct 2021 16:23
by Aacini
I suggest you to carefully review
SendMessage.exe: Access to advanced Windows features thread and check if such an auxiliary program can help you to solve your problem...
Antonio
Re: Open next menu in programm
Posted: 15 Oct 2021 02:05
by jfl
If the goal is to open Notepad and push data into it in a scriptable way, you may try using my 2note.exe program.
To use it, send the text that you want to see in Notepad through a pipe.
For example:
or
Code: Select all
type myHugeLogFile.log | findstr /i error | 2note
2note.exe is part of my
System Tools Library.