Indigo Rose Software
  #1  
Old 01-13-2008
goukilord10 goukilord10 is offline
Forum Member
 
Join Date: Mar 2005
Posts: 130
Child Windows

having the ability to create multipes windows for one project in AMS greatly simplifie the work , rather than having to code each window in a separete project.
Reply With Quote
  #2  
Old 01-14-2008
Darryl's Avatar
Darryl Darryl is offline
Indigo Rose Staff Member
 
Join Date: Jul 2001
Location: Indigo Rose Software
Posts: 1,602
Thank you, this one is currently in our suggestions database for consideration.
__________________
Darryl
Indigo Rose Corporation

Product Guides: AMS70 | SUF80 | TU30 | VP30 |MSIFACT |DeltaMAX
Reply With Quote
  #3  
Old 01-14-2008
clueless's Avatar
clueless clueless is offline
Forum Member
 
Join Date: Jun 2006
Location: UK SouthWest
Posts: 413
You can allways get the program to run itself with a command line to open up a new window
Reply With Quote
  #4  
Old 01-14-2008
FoxLeader's Avatar
FoxLeader FoxLeader is offline
Forum Member
 
Join Date: Nov 2006
Location: Quebec, Canada.
Posts: 432
Quote:
Originally Posted by clueless View Post
You can allways get the program to run itself with a command line to open up a new window
Could you elaborate a bit more?
Reply With Quote
  #5  
Old 01-14-2008
bule's Avatar
bule bule is offline
Indigo Rose Customer
 
Join Date: May 2005
Posts: 1,147
Quote:
Originally Posted by clueless View Post
You can allways get the program to run itself with a command line to open up a new window
Yes, but what about the loading time of the APMS runtime each time you open up this kind of a 'child window'?
__________________
Never know what life is gonna throw at you.
(Based on a true story.)
Reply With Quote
  #6  
Old 01-14-2008
clueless's Avatar
clueless clueless is offline
Forum Member
 
Join Date: Jun 2006
Location: UK SouthWest
Posts: 413
Yeah it wouldnt be suitable for big projects but sometimes having that extra window is worth the 1-2 second wait while it opens.
Reply With Quote
  #7  
Old 01-14-2008
clueless's Avatar
clueless clueless is offline
Forum Member
 
Join Date: Jun 2006
Location: UK SouthWest
Posts: 413
Once you work out the orig program location you can get the program to 'run' itself. When you run an AMS program (single exe) the programs location gets passed as the first command line argument. So this code will allways find it.
Code:
local ProgramLocation  = String.Replace(_CommandLineArgs[Table.Count(_CommandLineArgs)], "SFXSOURCE:", "", false);
(i havent got a clue what the SFXSOURCE is all about.lol).
Then if you wanted to open a second window with a picture in it for example you could write something like this;
Code:
local Apicture = "C:\\APic.bmp"
local ProgramLocation  = String.Replace(_CommandLineArgs[Table.Count(_CommandLineArgs)], "SFXSOURCE:", "", false);
File.Run(ProgramLocation, Apicture, "", SW_SHOWNORMAL, true);
Then you want to create a blank page at the start of your project and in the 'OnPreload' section in the page code have something like this;
Code:
local ComLineLength = Table.Count(_CommandLineArgs);
if ComLineLength == 1 then
  Page.Jump("NomalStart"); 
elseif if ComLineLength == 2 and File.DoesExist(_CommandLineArgs[1]) == true then
     DisplayPicture = _CommandLineArgs[1];
     Page.Jump("SpecialPage4DisplayingThePicture");   
     end
Reply With Quote
  #8  
Old 01-15-2008
goukilord10 goukilord10 is offline
Forum Member
 
Join Date: Mar 2005
Posts: 130
its great to hear that this feature may (and hope) is coming to ams

Quote:
Yeah it wouldnt be suitable for big projects but sometimes having that extra window is worth the 1-2 second wait while it opens.
not forgetting the problems if you need constantly passing information from one window to another.
Synchronizing Multiple AMS project is possible but far from simple.
Reply With Quote
  #9  
Old 01-16-2008
clueless's Avatar
clueless clueless is offline
Forum Member
 
Join Date: Jun 2006
Location: UK SouthWest
Posts: 413
Yeah i havent found any direct way of passing any info back to the main window. What i tend to do is when i call the child window with the File.Run() command i set it to wait until the program finish's. That way the main window is frozen until the child is shut down. Any info i want to pass back to the main window i dump into a text file that gets read when the main window gains control again. For a while i was using the registry until someone pointed out that not everyone has access.
This method of doing things is a work around and not an ideal sollution.But saying that, i do tend to use it quite a lot.
Reply With Quote
  #10  
Old 01-16-2008
Worm Worm is offline
Indigo Rose Customer
 
Join Date: Jul 2002
Location: USA
Posts: 3,937
Have you taken a look at this example?
http://www.indigorose.com/forums/showthread.php?t=15551
Reply With Quote
  #11  
Old 01-17-2008
clueless's Avatar
clueless clueless is offline
Forum Member
 
Join Date: Jun 2006
Location: UK SouthWest
Posts: 413
that looks like it will do the job thanx
Reply With Quote
  #12  
Old 01-17-2008
clueless's Avatar
clueless clueless is offline
Forum Member
 
Join Date: Jun 2006
Location: UK SouthWest
Posts: 413
Can you only send text commands with this method or could you refference the movie object directly?
Reply With Quote
  #13  
Old 01-17-2008
Worm Worm is offline
Indigo Rose Customer
 
Join Date: Jul 2002
Location: USA
Posts: 3,937
can send only the text. But you can use the text you send as a condition to do whatever you want
Reply With Quote
  #14  
Old 01-18-2008
clueless's Avatar
clueless clueless is offline
Forum Member
 
Join Date: Jun 2006
Location: UK SouthWest
Posts: 413
Would it be possible to send commands from a VisualBasic program back to AMS in this way if the input handle was passed to it when it was opened?
Reply With Quote
  #15  
Old 01-18-2008
Worm Worm is offline
Indigo Rose Customer
 
Join Date: Jul 2002
Location: USA
Posts: 3,937
sure, all you need to do is pass the handle of the input object to the VB app.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
NirCmd v1.85 - Freeware command-line tool bobbie AutoPlay Media Studio 6.0 1 02-19-2007 08:20 AM
INFO: JET and MDAC (Complete) Runtime Notes Desmond Setup Factory 6.0 Knowledge Base 0 11-28-2003 09:35 AM
INFO: JET 4.0 SP7-SP8 Runtime Notes Desmond Setup Factory 6.0 Knowledge Base 0 11-28-2003 09:34 AM
INFO: Setup Factory and the Windows Installer Support Setup Factory 6.0 Knowledge Base 0 10-22-2002 11:38 AM
HOWTO: Install Files to the Windows Directory Support Setup Factory 6.0 Knowledge Base 0 09-18-2002 03:33 PM


All times are GMT -6. The time now is 09:17 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright © 2000 - 2009 Indigo Rose Corporation. All rights reserved.
Indigo Rose Software