|
#1
|
|||
|
|||
|
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.
|
|
#3
|
||||
|
||||
|
You can allways get the program to run itself with a command line to open up a new window
|
|
#4
|
||||
|
||||
|
Could you elaborate a bit more?
|
|
#5
|
||||
|
||||
|
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.) |
|
#6
|
||||
|
||||
|
Yeah it wouldnt be suitable for big projects but sometimes having that extra window is worth the 1-2 second wait while it opens.
|
|
#7
|
||||
|
||||
|
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); 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); 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
|
|
#8
|
|||
|
|||
|
its great to hear that this feature may (and hope) is coming to ams
![]() Quote:
Synchronizing Multiple AMS project is possible but far from simple. |
|
#9
|
||||
|
||||
|
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. |
|
#10
|
|||
|
|||
|
Have you taken a look at this example?
http://www.indigorose.com/forums/showthread.php?t=15551 |
|
#11
|
||||
|
||||
|
that looks like it will do the job thanx
|
|
#12
|
||||
|
||||
|
Can you only send text commands with this method or could you refference the movie object directly?
|
|
#13
|
|||
|
|||
|
can send only the text. But you can use the text you send as a condition to do whatever you want
|
|
#14
|
||||
|
||||
|
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?
|
|
#15
|
|||
|
|||
|
sure, all you need to do is pass the handle of the input object to the VB app.
|
![]() |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
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.










Linear Mode

