Hi all,
I test with the following programs:
exe1.bb:
exe2.bb:
Originally, I use api as mentioned and get MAV.
Now, I use execfile and MAV go away.
However, I encounter two problems:
1. After exe2 finish running,
it goes back to exe1 but exe1 was MINIMIZED!
2. When exe1 switch to exe2 or exe2 back to exe1,
the screen flash (because windows maximize and minimize)
and this switching could be seen.
Could we prevent these two problems?
edit:
I have tried "Real Maximize of B3D Window by KuRiX"
http://www.blitzbasic.com/codearcs/codearcs.php?code=1370
Adding the 4 statements after execfile("exe2.exe"), it
does not work.
Thanks in advance.
Sammy
:)
I test with the following programs:
exe1.bb:
Graphics3D 800,600 SetBuffer BackBuffer() camera=CreateCamera() light=CreateLight() RotateEntity light,90,0,0 ; Create red sphere sphere1=CreateSphere() PositionEntity sphere1,0,0,20 EntityColor sphere1,255,0,0 While Not KeyDown( 1 ) TurnEntity sphere1, 0,0.5,0.5 RenderWorld Flip Wend ExecFile("exe2.exe") ; Create green sphere sphere2=CreateSphere() PositionEntity sphere2,0,10,20 EntityColor sphere2,0,255,0 While Not KeyDown( 1 ) TurnEntity sphere1, 0,0.5,0.5 TurnEntity sphere2, 0,0.5,0.5 RenderWorld Flip Wend End
exe2.bb:
Graphics3D 800,600 SetBuffer BackBuffer() camera=CreateCamera() light=CreateLight() RotateEntity light,90,0,0 ; Create cube cube=CreateCube() PositionEntity cube,0,0,5 While Not KeyDown( 1 ) TurnEntity cube, 0,0.5,0.5 RenderWorld Flip Wend End
Originally, I use api as mentioned and get MAV.
Now, I use execfile and MAV go away.
However, I encounter two problems:
1. After exe2 finish running,
it goes back to exe1 but exe1 was MINIMIZED!
2. When exe1 switch to exe2 or exe2 back to exe1,
the screen flash (because windows maximize and minimize)
and this switching could be seen.
Could we prevent these two problems?
edit:
I have tried "Real Maximize of B3D Window by KuRiX"
http://www.blitzbasic.com/codearcs/codearcs.php?code=1370
Adding the 4 statements after execfile("exe2.exe"), it
does not work.
Thanks in advance.
Sammy
:)