Hi,
there was already a question about this problem, but the proposed solution doesn't work in my case:
I would like to open and position eight DOS boxes automatically. The problem is, that the window title is always "c:\winnt\system32\cmd.exe". I have to position one DOS box at the coordinates 0,0, the next one at 0,300 and so on. In Visual Basic I've got a windows handle for recognising identical windows. How can I do that with Macro Scheduler?
Can anybody help me?
Best regards
Criss
Here is my script:
// first DOS box
Run Program>c:\winnt\system32\cmd.exe
WaitWindowOpen>c:\winnt\system32\cmd.exe
MoveWindow>c:\winnt\system32\cmd.exe,0,0
ResizeWindow>c:\winnt\system32\cmd.exe,500,300
.
.
// second DOS box
Run Program>c:\winnt\system32\cmd.exe
.
.
Recognise identical windows
Moderators: JRL, Dorian (MJT support)
Hi,
have a try with the nt command parameter: @title=
Rgds,
Ernest
have a try with the nt command parameter: @title=
Code: Select all
// first DOS box
Run Program>c:\winnt\system32\cmd.exe /k @title=DOS 1
...
// second DOS box
Run Program>c:\winnt\system32\cmd.exe /k @title=DOS 2
...
Ernest