Recognise identical windows

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
criss

Recognise identical windows

Post by criss » Mon Dec 09, 2002 1:57 pm

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
.
.

Ernest

Post by Ernest » Mon Dec 09, 2002 5:58 pm

Hi,
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
...
Rgds,
Ernest

Criss

Post by Criss » Tue Dec 10, 2002 6:52 am

Thank you, works fine!

Best regards
Criss

Ernest

Post by Ernest » Tue Dec 10, 2002 8:03 am

Marcus,
is there a chance to get a MSched command like WindowSetTitle>NewTitle,OldTitle ?

Would be highly appreciated. :)

Rgds,
Ernest

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts