is there a callback for minimising a game window and can i get tgb to close another application
by Nick Owens · in Torque Game Builder · 08/14/2009 (7:07 am) · 0 replies
Hi I'm trying to create a game to be played in a 800x600 window (most of the time)but where there is an option to make a 'mini input screen' so that when the tgb window is minimised the player can continue to add some input.
Sooo.... I've created a small 'mini-game' window (150x200pxls) using vb .net. And have been trying to get the two applications 'talking'. Data is shared between the two applications in txt files.
I'm hitting a few technical problems though
1)I can use the shellexecute command to start the vb app from tgb BUT i don't know of a command to close the vb app when i switch back to the full size tgb window. Is there one?
2) I'm using the onWindowFocusChanged callback so that when the tgb window is minimised it calls the vb app - this works fine...BUT the tgb also loses focuses when the game is closed so it also fires up the vb app then (when it is not needed).
Is there a way to get a callback from the minimise button on the window bar of the tgb game?
thanks
Sooo.... I've created a small 'mini-game' window (150x200pxls) using vb .net. And have been trying to get the two applications 'talking'. Data is shared between the two applications in txt files.
I'm hitting a few technical problems though
1)I can use the shellexecute command to start the vb app from tgb BUT i don't know of a command to close the vb app when i switch back to the full size tgb window. Is there one?
2) I'm using the onWindowFocusChanged callback so that when the tgb window is minimised it calls the vb app - this works fine...BUT the tgb also loses focuses when the game is closed so it also fires up the vb app then (when it is not needed).
Is there a way to get a callback from the minimise button on the window bar of the tgb game?
thanks