Hello
This is a very small but annoying problem in the long run : I use a macro with dialog box ; if I repeat this macro too fast then appears :
X A component named Dialog1 already exists
and there I am forced to stop the process msched.exe then relaunch macroscheduler
Thanks
Thanks JRL "add these 3 lines on top"
IfWindowOpen>.. ..[caption]
Exit>0
EndIf
I did it and I waited a few weeks because it was a fugitive failure
A component named Dialog1 already exists [Resolved]
Moderators: Dorian (MJT support), JRL
A component named Dialog1 already exists [Resolved]
Last edited by ABIVEN on Wed Dec 29, 2021 8:13 am, edited 1 time in total.
Re: A component named Dialog1 already exists
Make sure your Dialog1 has a name (Caption = 'This is my Dialog')
Put these three lines at the top of your script:
Put these three lines at the top of your script:
Code: Select all
IfWindowOpen>This is my Dialog*
Exit>0
EndIf
- Grovkillen
- Automation Wizard
- Posts: 1131
- Joined: Fri Aug 10, 2012 2:38 pm
- Location: Bräcke, Sweden
- Contact:
Re: A component named Dialog1 already exists
Or add a simple close window command if you are just worried about the window already being opened. The advice above is taking care of multiple instances of the process, but the topic was on multiple dialogs being opened.