Page 1 of 1

Keyboard focus

Posted: 2008-07-19T07:53:09-07:00
by manthony121
I need to be able to quickly step thru a number of image files on a CD-ROM. I have written a Perl script to keep track of the directory and file names, and to read the keyboard a single character at a time. When I call the PerlMagick Display(), a window pops up with the first picture, but my script looses its connection to the keyboard. I cannot read the keyboard again unless I close the Display() window. How can I maintain control of the keyboard when the Display() window is open?

I am not very experienced with programming in the X-windows environment. In all the documentation for ImageMagick and PerlMagick, I can't find anything that talks about keyboard interactions. My system is an Ubunutu 7.04. Any advice would be appreciated.

Re: Keyboard focus

Posted: 2008-07-20T06:31:07-07:00
by manthony121
A little more detail: when the call to Display() is made, execution of the rest of the program does not continue until the window closes. I need a routine that will open a window, paint the picture, then return control to the caller. It seems that I might be able to change the existing Display() to behave that way, but I have yet to find where the source for it is. Any ideas?