>Not exactly sure what your are trying to do, >but WIN.SetFocus(arg(2)) isn't a correct call.
>Use: WIN.Show(arg(2)) >Best to only use WIN.SetFocus(h) with handles from h=WIN.GetFocus. Curious to know why you would say that. It seems to work. Arg(2) is the handle of the opening window. Why would that be bad? > > I'm using this script because, for some reason, > > Information windows and regsrvr32 dialog boxes will appear > > behind other windows, locking up various applications > > until I alt-tab to the hidden window. > The above maybe due to another HookWindowEvents or AutoRun error. > Add the following to the first line of your HookWindowEvents and > AutoRun commandlist and set GLOBAL gWindowEvents=,OFF, and > see if this condition still exists. I don't have another HookWindowEvent (I'm scared of it, so I stay away), and the only autorun commandlist is one what looks at the title of new windows and closes specific ones by caption. I disabled both, and the problem persists. Paul ------------------------ Yahoo! Groups Sponsor --------------------~--> Most low income households are not online. Help bridge the digital divide today! http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/JV_rlB/TM --------------------------------------------------------------------~-> 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/
