LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: coasternuts on July 20, 2005, 11:54:20

Title: Lost Focus! Help.
Post by: coasternuts on July 20, 2005, 11:54:20
I'm a newbie to LWJGL and my application runs Runtime.exec().  The process I run gains focus but I never get it back even though my application is running.  

Is there anything I can do?  I am willing to run another application that grabs/manipulaties/restores focus to other applications.
Title: Lost Focus! Help.
Post by: oNyx on July 20, 2005, 12:07:08
>my application runs Runtime.exec()

Why?
Title: Lost Focus! Help.
Post by: coasternuts on July 20, 2005, 14:46:47
Why?  Why not.  :D

I am writing a game front-end to other application(s).  Yes I am aware of others, but I'm adding my personal touch using OGL, but as usual, there are obvious problems with not so obvious solutions.
Title: Lost Focus! Help.
Post by: coasternuts on August 02, 2005, 02:38:31
Just to update anyone who cares.  I wrote a Windows specific .DLL and a JNI wrapper to grab the focus after returning from exec().  It works great!

Now I seem to be having another problem that appears to be LWJGL specific... but that's for a new topic.
Title: Lost Focus! Help.
Post by: Matzon on August 02, 2005, 05:34:56
one does wonder if lwjgl should have a grab focus functionality - since there may be a pleathora of reasons for having that...
Title: Lost Focus! Help.
Post by: spasi on August 02, 2005, 08:32:32
+1
Title: Lost Focus! Help.
Post by: princec on August 02, 2005, 18:36:28
Ok then, let's add it.

Cas :)
Title: Lost Focus! Help.
Post by: elias4444 on August 02, 2005, 18:40:15
I agree.  :D