There is an option in "New Window" step that set window style to dialog. You can close it at the last of the script.
But, some script step need field to be there in active window layout, I'm not sure it is usable for your script.
Popup button works like dialog, user can't access objects not in the popup without closing it.
I typically put up a dialog box like this, or a progress bar showing the user how much of the script is left to run.
I've done this two ways, to address User19752's point:
1. Put the "Be patient" text on a layout that is based on the table occurrence of the table you're working on. You don't actually need fields on the layout to do a lot of work. New records, set fields, replace contents, delete records, can all be done on a blank layout (indeed, blank layouts are preferred for a lot of script work). Open that window as a new window, go to that layout and do the work while showing the "Be patient".
1.5. You could also do a sort of screen that 'covers up' the layout when the script is running. Create a slide panel that is as big as the layout you're on, make it semi-transparent gray, and put the text on that. Then HIDE it unless the script is running (Maybe start the script with a set variable as $$RunScript = 1. And hide the 'be patient' slide panel when $$RunScript ≠ 1.
2. Put the "Be patient" on, as User suggests, another window, a new one. Create the new window, go to your "be patient" layout, resize, place it where you want. Then go back to the previous window you need to work on. For example, If I have a student's record I'm viewing, and a script needs to run on it or related records, the first thing I'd do is name it to "Students". Then create the new window, name it to "Be Patient". Then SELECT the "Students" window and continue your work. Adding an additional step of freezing the window after creating the "Be Patient" you can do the work without the user seeing the other window.
I recently implemented the progress bars and like how it works. I can use this practically anywhere with the either of the two situations above.
thankyou very much
thankyou very much, do you happen to have an example script as to how to call progress bar
The link for www.excelisys.com provides a good way to implement the progress bar. Theirs is a bit tricky, but it certainly can be done (Its the one that I use).