Active window

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt

lukevancleve
Posts: 18
Joined: Mon Apr 29, 2013 1:24 pm

Active window

Postby lukevancleve » Wed Aug 07, 2013 6:42 am

When I'm running lots of eviews jobs on a script, Eviews always makes itself the active window upon starting a new job while I'm doing something else. Is there any to disable this?

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13586
Joined: Tue Sep 16, 2008 5:38 pm

Re: Active window

Postby EViews Gareth » Wed Aug 07, 2013 6:44 am

That's somewhat surprising.

Do you know what sort of things in your program cause it to steal focus from other applications?

lukevancleve
Posts: 18
Joined: Mon Apr 29, 2013 1:24 pm

Re: Active window

Postby lukevancleve » Wed Aug 07, 2013 10:10 am

I mean if I have a script (perl example):

foreach $program (@long_list_of_programs) {
system( eviews.exe $program)
}

... the each time eviews is executed the the $program becoms the active window in windows. So if I have 1000 jobs on a script that each take 10 seconds it will make my desktop unusable. Is there a way to execute an eviews program in the background? ... or at lease not become the active window?

Thanks,

Luke

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13586
Joined: Tue Sep 16, 2008 5:38 pm

Re: Active window

Postby EViews Gareth » Wed Aug 07, 2013 10:30 am

Ah, I see.

I don't believe EViews has a method to launch itself (apart from during a COM call) minimized or hidden. We usually tell users to use Windows to launch EViews minimized (start /min if run from a command prompt, for example), if that's what they want to do. I have no idea if that's possible from within a perl script.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests