Indigo Rose Software

Go Back   Indigo Rose Software Forums > AutoPlay Media Studio 7.5 > AutoPlay Media Studio 7.5 Examples

Reply
 
Thread Tools Display Modes
  #1  
Old 03-25-2006
Worm Worm is offline
Indigo Rose Customer
 
Join Date: Jul 2002
Location: USA
Posts: 3,937
EXAMPLE: Sharing Data between Two Apps without writing to Registry or HD

This is a small example that uses SendMessage to share data between two AMS apps. Build the VideoRemote2.APZ and copy it to the DOCs folder of VideoRemote1 to run the example.

VideoRemote1 start VideoRemote2 with a commandline parameter of an input box that will be used to receive the commands. When VideoRemote2 starts, the first thing it does is send VideoRemote1 the handle of the Input that it will use for commands. From that point, the apps send messages back and forth via the Input boxes by placing text in the Input, then firing the keypress event in the Input.

This example uses a second AMS app to control the playback of a video. If either window is closed, the other will close down too.
Attached Files
File Type: apz VideoRemote1.apz (9.8 KB, 457 views)
File Type: apz VideoRemote2.apz (19.6 KB, 392 views)
Reply With Quote
  #2  
Old 03-25-2006
yosik's Avatar
yosik yosik is offline
Indigo Rose Customer
 
Join Date: Jun 2002
Location: Israel
Posts: 1,863
I like that!
Thanks Worm. I already know where I am going to use that implementation.

Yossi
Reply With Quote
  #3  
Old 03-25-2006
Intrigued's Avatar
Intrigued Intrigued is offline
Indigo Rose Customer
 
Join Date: Dec 2003
Location: Location! Location!
Posts: 6,059
Worm'inator at it again. This will come in handy, no doubt!
__________________
Intrigued
www.amsuser.com
Reply With Quote
  #4  
Old 03-26-2006
Josué Alba's Avatar
Josué Alba Josué Alba is offline
Forum Member
 
Join Date: Mar 2005
Posts: 134
Worm, don't you get tired of being just OUTSTANDING?

Great example btw
Reply With Quote
  #5  
Old 03-26-2006
Intrigued's Avatar
Intrigued Intrigued is offline
Indigo Rose Customer
 
Join Date: Dec 2003
Location: Location! Location!
Posts: 6,059
This does not seem to work Worm. I have even added in the video to the Docs folder (which then does play in that application) and I have even tried to F7 (Build) to .exe (instead of just Previewing (F5) such).

Ideas?
__________________
Intrigued
www.amsuser.com
Reply With Quote
  #6  
Old 03-26-2006
Worm Worm is offline
Indigo Rose Customer
 
Join Date: Jul 2002
Location: USA
Posts: 3,937
There are two parts to the app. You need to build VideoRemote2 to a folder, then copy that to the Docs folder of VideoRemote1.

When VideoRemote1 fires up, it calls the autorun.exe in the Docs folds (VideoRemote2). I could upload the app with the build inside because of files size. I'd rather have the projects in full on the forum rather than a link to my site. I'm not good at remembering what to keep or delete on my site
Reply With Quote
  #7  
Old 03-26-2006
Intrigued's Avatar
Intrigued Intrigued is offline
Indigo Rose Customer
 
Join Date: Dec 2003
Location: Location! Location!
Posts: 6,059
Ah! I thought each project was to be built to an .exe and then they would commuicate.

I'll have to try this later, thanks Worm.
__________________
Intrigued
www.amsuser.com
Reply With Quote
  #8  
Old 03-26-2006
Worm Worm is offline
Indigo Rose Customer
 
Join Date: Jul 2002
Location: USA
Posts: 3,937
That could still work, but somehow you have to let each app know what the WindowHandle of the Input your going to use for communications is. I chose to use a commandline parameter as the control panel directly relates to the video.

That being said, you could either write the handle out to a file or the registry to be read in by each app. From that point on, you could communicate directly between the two.

It's certainly not without its flaws... just offering a *different* way of doing things.
Reply With Quote
  #9  
Old 03-26-2006
Worm Worm is offline
Indigo Rose Customer
 
Join Date: Jul 2002
Location: USA
Posts: 3,937
Quote:
Originally Posted by Josué Alba
Worm, don't you get tired of being just OUTSTANDING?

Great example btw
I'm like a farmer, out standing in his field
Reply With Quote
  #10  
Old 03-29-2006
stches stches is offline
Forum Member
 
Join Date: Mar 2006
Posts: 6
Cheer All

Hello I'm a newbie APMS6 I'm builing my frist app The project is to have a 3 page app. Broswer/video/games. My problem is I want the user to be able to loaded a video from thier HD and have it play on all of the other pages in the project at the same time .So look at it like this 1 video playing on 3 video screens ( or video Objects ) at the same time (after reading this string I sure your the guys that can help. Because it sounds alot like the video remote Worm referd to). So once the video is loaded and the user goes to another page in the app I want them to be able to watch the video they loaded on the previous page.As it is now when the user loads the video and it plays ,if the user were to leave that page the video stops. Someone said maybe use a NOEXITScript on the video object of that page so when a button is clicked to go to another page the video dosent stop. Now that might have help if their would have included what a NOEXITSCRIPT is. another one was Make a templete of the video/loader page and have the other pages in the app inherit the properties of the video page?Will that work? Can you Helppppp?
Reply With Quote
  #11  
Old 03-29-2006
Corey's Avatar
Corey Corey is offline
Registered User
 
Join Date: Aug 2002
Posts: 9,746
Quote:
I'm like a farmer, out standing in his field
<PEANUT GALLERY>Groan.</PEANUT GALLERY>



Here's a couple good ones I heard last month or so.

1. A set of jumper cables walks into a bar. The bartender says, "Ok, I'll serve you. But don't start anything."
2. A pair of antennas got married. The wedding was a bit slow but the reception was great.

Reply With Quote
  #12  
Old 03-30-2006
stickck's Avatar
stickck stickck is offline
Forum Member
 
Join Date: Feb 2004
Location: Probably somewhere I shouldn't be
Posts: 614
Quote:
Originally Posted by stches
Hello I'm a newbie APMS6 I'm builing my frist app The project is to have a 3 page app. Broswer/video/games. My problem is I want the user to be able to loaded a video from thier HD and have it play on all of the other pages in the project at the same time .So look at it like this 1 video playing on 3 video screens ( or video Objects ) at the same time (after reading this string I sure your the guys that can help. Because it sounds alot like the video remote Worm referd to). So once the video is loaded and the user goes to another page in the app I want them to be able to watch the video they loaded on the previous page.As it is now when the user loads the video and it plays ,if the user were to leave that page the video stops. Someone said maybe use a NOEXITScript on the video object of that page so when a button is clicked to go to another page the video dosent stop. Now that might have help if their would have included what a NOEXITSCRIPT is. another one was Make a templete of the video/loader page and have the other pages in the app inherit the properties of the video page?Will that work? Can you Helppppp?
one way is to combine your 3 pages together into one and just use the SetVisible setting for each object to make it look like you changed pages. i did that with my Quiz project. just make functions that will simulate changing pages, that way you dont have to keep typing the same code over and over again. just leave the video object visible constantly.

if you need, i can make a quick sample.

Chris
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
Data Transfers between AMS Apps azmanar AutoPlay Media Studio 6.0 4 02-17-2006 10:06 AM
Setting Registry Value Data from User Input? John_Cone Setup Factory 7.0 Discussion 3 04-19-2005 10:46 AM
posting again - problems writing to the registry muffi78 AutoPlay Media Studio 4.0 4 08-13-2003 08:58 AM
Problems writing to the registry muffi78 AutoPlay Media Studio 4.0 0 07-28-2003 02:33 PM
can not import binary data from registry? mmtree Setup Factory 5.0 1 12-12-2000 10:29 AM


All times are GMT -6. The time now is 05:36 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