Run Program?

Anything related to Hollywood Designer goes in here

Run Program?

Postby 1Mouse » Sun Jun 12, 2016 12:12 pm

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

Re: Run Program?

Postby airsoftsoftwair » Tue Jun 14, 2016 8:52 pm

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
airsoftsoftwair
 
Posts: 2242
Joined: Fri Feb 12, 2010 3:33 pm
Location: Germany

Re: Run Program?

Postby 1Mouse » Wed Jun 15, 2016 8:47 pm

So it's not possible to press a button in one Designer presentation to close it and automatically open a second presentation?
User avatar
1Mouse
 
Posts: 58
Joined: Sat Sep 11, 2010 9:27 pm

Re: Run Program?

Postby p-OS » Thu Jun 16, 2016 5:21 pm

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
p-OS
 
Posts: 79
Joined: Tue Nov 02, 2010 12:56 am

Re: Run Program?

Postby 1Mouse » Sat Jun 25, 2016 11:13 pm

Gave it a go and couldn't get it to work
User avatar
1Mouse
 
Posts: 58
Joined: Sat Sep 11, 2010 9:27 pm

Re: Run Program?

Postby airsoftsoftwair » Tue Jun 28, 2016 2:48 pm

Did you use an absolute path when calling Run()?
User avatar
airsoftsoftwair
 
Posts: 2242
Joined: Fri Feb 12, 2010 3:33 pm
Location: Germany


Return to General questions

Who is online

Users browsing this forum: No registered users and 2 guests