Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Two Windows With Same Name?
#1
Hi,

Basically I'm using Nero Burning Rom to automatically create some cd's and I want to create a macro to automatically close a dialogue that pops up after a sucessful burn and move on the the next job (cd).

My problem is, the dialogue has the same title ("Nero Burning ROM") as the main program, and the macro keeps closing the main program instead of just the dialogue.

I've searched thru the help and the fourms but can't seem to find a solution. Am I doing something wrong?

Thanks for any help.
#2
If the dialog and the main window have different class, include it too.

clo win("Dialog Name" "dialog class")

If you use window trigger, you can use class too. If your QM version is 2.1.4 or 5, window trigger can include window name, class, style, and text inside.
#3
Thanks for your reply Gintaras, I will give it a try.
#4
Oh, sorry, just one other question; does the class change each time the program starts, or does it always stay the same? thanks.
#5
Unlike window name, window class doesn't change.

However, although it is very rare case, some programs start each time with slightly different class. Then you can use * wildcards.
#6
Thanks Gintaras, I'm checking it out now.


Forum Jump:


Users browsing this thread: 1 Guest(s)