PDA

View Full Version : Executable not staying in front



Bruce
03-12-2003, 05:37 PM
I applied the "File.Execute" to a button which starts another program called FlipAlbum. The FlipAlbum program stays in the back and doesn't come to the front.
Any ideas?

Corey
03-12-2003, 07:48 PM
I hope you're not insinuating we kidnap the creators of FlipAlbum and throw them in the lake with nothing but socks on... Or drive them out of town with pointy sticks... Are you??? Because if you are, muhaha! I'll bring the banjo music...

Corey Milner
Creative Director, Indigo Rose Software (http://www.indigorose.com)

eric_darling
03-12-2003, 08:13 PM
Try issuing a window.minimize command in your action list before you issue the file.execute command:
----------------------------------
<IR_ACTIONS_LIST>
<Action name="Minimize">
<Type>3</Type>
<Function>0</Function>
<DTIndentLevel>0</DTIndentLevel>
<Enabled>1</Enabled>
<ErrorHandling>
<UserNotificationMode>2</UserNotificationMode>
<CustomErrorMessage />
<OnErrorAction>0</OnErrorAction>
<JumpToLabel />
</ErrorHandling>
<HWnd>%MenuHWnd%</HWnd>
</Action>
</IR_ACTIONS_LIST>
------------------------------

'course if you wanted to be really slick, here's whatcha do.

1) Do like I said above first
2) Make sure your "Wait for program to finish..." box is checked in the file.execute command
3) Add a window.restore command last in line to bring your app back from minimized state

Worm
03-13-2003, 06:32 AM
If you want to hide your AMS project while the Flip Album is running you could use the same method I did here.

Tray Wait (http://www.indigorose.com/ubbthreads/showflat.php?Cat=&amp;Board=UBB2&amp;Number=17630&amp;page=1&amp;v iew=collapsed&amp;sb=5&amp;o=0&amp;fpart=)

instead of executing the traywait.exe, could do the same with the FlipAlbum.EXE. Your app would be hidden until they closed the Flip Album.

Bruce
03-13-2003, 11:37 AM
LOL Corey! What a crack up!!!!! LOL LMAO!

Thanks guys, I'll give it a try. (LOL)

Bruce
03-13-2003, 12:23 PM
Hey Eric-

I tried your idea and have a problem. AMS drops down, then wants to come back before the this garbage software can even start. Worm- How can I get AMS to come back from the tray?

Bruce
03-13-2003, 12:35 PM
I think the problem I'm having here is the "Wait for program to finish..." is not working... Hummm

eric_darling
03-17-2003, 10:36 AM
With my method, a program would need to quit the outside app to get the restore command to kick in. Try Worm's idea to see if that works better.

Worm
03-17-2003, 10:47 AM
If you use the traywait.exe that I have, simply right click it and choose restore. If you execute the FlipAlbum EXE, using the same method, once you close Flip Album, the AMS app should become visible again.