|
#1
|
|||
|
|||
|
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. |
|
#2
|
||||
|
||||
|
I like that!
Thanks Worm. I already know where I am going to use that implementation. Yossi |
|
#3
|
||||
|
||||
|
Worm'inator at it again. This will come in handy, no doubt!
|
|
#4
|
||||
|
||||
|
Worm, don't you get tired of being just OUTSTANDING?
Great example btw |
|
#5
|
||||
|
||||
|
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? |
|
#6
|
|||
|
|||
|
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
|
|
#7
|
||||
|
||||
|
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. |
|
#8
|
|||
|
|||
|
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. |
|
#9
|
|||
|
|||
|
Quote:
|
|
#10
|
|||
|
|||
|
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?
|
|
#11
|
||||
|
||||
|
Quote:
![]() 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.
|
|
#12
|
||||
|
||||
|
Quote:
if you need, i can make a quick sample. Chris |
![]() |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
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.








Linear Mode

