Run Program?

Anything related to Hollywood Designer goes in here
Post Reply
User avatar
1Mouse
Posts: 63
Joined: Sat Sep 11, 2010 9:27 pm

Run Program?

Post 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?
User avatar
airsoftsoftwair
Posts: 5425
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Run Program?

Post 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.
User avatar
1Mouse
Posts: 63
Joined: Sat Sep 11, 2010 9:27 pm

Re: Run Program?

Post by 1Mouse »

So it's not possible to press a button in one Designer presentation to close it and automatically open a second presentation?
p-OS
Posts: 167
Joined: Mon Nov 01, 2010 11:56 pm

Re: Run Program?

Post 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
User avatar
1Mouse
Posts: 63
Joined: Sat Sep 11, 2010 9:27 pm

Re: Run Program?

Post by 1Mouse »

Gave it a go and couldn't get it to work
User avatar
airsoftsoftwair
Posts: 5425
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Run Program?

Post by airsoftsoftwair »

Did you use an absolute path when calling Run()?
Post Reply