Page 1 of 1

Run Program?

Posted: Sun Jun 12, 2016 12:12 pm
by 1Mouse
I have a running program and wish for it to close and a new program to open when a button is pressed.

I know of the Run Program action which would open the second program but how do I go about closing the first program?

Re: Run Program?

Posted: Tue Jun 14, 2016 8:52 pm
by airsoftsoftwair
That's not generally possible. If the program you want to close supports ARexx, you could send a close message to its ARexx port to make it shut down.

Re: Run Program?

Posted: Wed Jun 15, 2016 8:47 pm
by 1Mouse
So it's not possible to press a button in one Designer presentation to close it and automatically open a second presentation?

Re: Run Program?

Posted: Thu Jun 16, 2016 5:21 pm
by p-OS
What exactly do you want to do ?

Imagine you have two Presentations, let's call them Pres1 and Pres2.

Pres 1 has a Button. When you klick on it , Pres2 shall be started, and Pres11 should exit?

If you want to stop Pres1 before Pres2 starts, this is not possible that easily.

If it is ok for you, that Pres2 already begins to start while Pres1 is just shutting down, then it's easy:

Create Pres2. Save it as an executable.
Create Pres1. Add a button. In the context menue of your object choose event "when mouse button is released". ad an action of type "Run Code". As code put the following in the Editor:

Code: Select all

Run("Pres2")
End

Re: Run Program?

Posted: Sat Jun 25, 2016 11:13 pm
by 1Mouse
Gave it a go and couldn't get it to work

Re: Run Program?

Posted: Tue Jun 28, 2016 2:48 pm
by airsoftsoftwair
Did you use an absolute path when calling Run()?