Hi Bruce, I'm not sure where I should put the g_reenter=0 line because there are several quit commands in the script. Will this work, and if not, where should it go?
== Begin== ;maximizes to the proper height on portrait monitor if right monitor is in portrait. if (g_disabled) quit If(arg(1) ne 1) quit if (g_reenter) ;;no Do! win.beep(1000,500) g_reenter=1 wait for 50 if(not win.maxxed(arg(2))) quit ;check the virtual screen width. More than 2800 means no portrait If(win.getsystemmetrics(SM_CXVIRTUALSCREEN) gt 2800) quit If(win.left(arg(2)) gt 1599) win.size(arg(2), 1200, 1600) quit g_reenter=0 ==end== On 5/13/05, brucexs <[EMAIL PROTECTED]> wrote: > > > > > Spoke too soon. It did it again today, but it is happening much > less often. > > This is consistent with the error being due to re-entrancy since the > smaller wait would mean it would happen less often. > > Can you try the following experiment? > > 1. Create a startup scheduled event > global g_reenter=0 > > 2. Put the following just before your wait statement (it's > important this be after all the quits) > > if (g_reenter) ;;no Do! > win.beep(1000,500) > g_reenter=1 > > 3. Put following at end of script > g_reenter=0 > > 4. Change wait back to 50 ms > > If I am right, you will get a beep when PowerPro aborts. You may or > may not get beeps even though it does not abort. > > Can you let me know if you do get the beep before the abort and if > you do get it other times? > > -- Sue Chastain Attention: PowerPro's Web site has moved: http://www.ppro.org Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/power-pro/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
