Search code examples
perlwindows-7gnuplotmsys

How to stop gnuplot from grabbing focus of active window? (Windows)


As a follow up to this question here. I am calling pgnuplot using batch operation from a perl script, i.e. perl generates a plotting script, then it invokes gnuplot with the generated script and the output is a postscript file.

This causes the system's active window to momentarily lose focus whenever pgnuplot is called. Hence it is difficult to use the computer when the perl script is running. Is there a way to stop this behavior?

I am using Win 7 64bit and MSYS to invoke perl.


Solution

  • I have found this to be a problem specific to gnuplot 4.2 on Windows 7. Updating to 4.4 solved the problem.