Starting a movie after another movie is finished
hello
i have a series of movie clips that I want to play
sequentially. For some I would like them to play one right after
another and others that have a pause in between. I have the first
part worked out but it is sloppy and there is code all over the
place. is there a set, clean way to accomplish this?
peace
Yeah that's what I have been doing. I guess I should have
been clearer. Is there anyway to consolidate the code so that it
stays on the _root timeline?
I have also used this method, shown in the attached code. I
have tried to do other things with that code but it hasn't worked.
Can anything else be done w/ the attached code or is that the most
it can do?
Similar Messages
-
When I try and open Microsoft Word 2011 documents on my IMAC they start opening one after another at a rapid speed and I can't stop it. I reboot and same thing happens. The documents open in rapid succession on their own and don't stop until I force close or after maybe 100 or more open I start getting the following message for each document attemting to open "This document could not be registered. It will not be possible to create links from other documents to this document" and then in paretheses the name of the document. After I click okay another trys to open. Any suggestions?
If you had multiple documents open and quit the app without closing all of the docs first, it will open them again when you launch the app. Open Word, and then close all the documents, you may be asked to save the document, if the document was already saved but you made changes to it before you quit the app, you may need to save the changes first, shorcut ( command and s keys). After you close all of the documents then quit the app and restart the computer. See if this works.
-
Hello, my engineer (Japanese) is trying to start AdobeMediaServer but he got stuck after getting "Waiting for another script to finish..." message. Any idea how to resolve this situation?
[root@NA1SIBZDH02 /opt/adobe/ams]# ./server start
NPTL 2.5
chmod: changing permissions of `./tmp/': 読み込み専用ファイルシステムです
Waiting for another script to finish...
[root@NA1SIBZDH02 /opt/adobe/ams]#
[root@NA1SIBZDH02 /opt/adobe/ams]#
[root@NA1SIBZDH02 /opt/adobe/ams]# ls -l
合計 52324
drwxr-xr-x 15 ams ams 4096 9月 11 17:54 Apache2.2
-rwxr-xr-x 1 root root 1061035 9月 11 17:54 License.htm
-rwxr-xr-x 1 root root 43374 9月 11 17:54 License.txt
-rwxr-xr-x 1 root root 58827 9月 11 17:54 ReleaseNotes.htm
-rwxr-xr-x 1 root root 5715 9月 11 17:54 adminserver
-rwxr-xr-x 1 root root 871 9月 11 17:54 adobe-lq.png
-rwxr-xr-x 1 root root 2912 9月 11 17:54 ams_icon.png
-rwxr-xr-x 1 root root 3220552 9月 11 17:54 amsadmin
-rw-r--r-- 1 root root 6 9月 11 17:54 amsadmin.pid
-rwxr-xr-x 1 root root 11187664 9月 11 17:54 amscore
-rwxr-xr-x 1 root root 4331472 9月 11 17:54 amsedge
-rwxr-xr-x 1 root root 3070840 9月 11 17:54 amsmaster
-rw-r--r-- 1 root root 6 9月 11 17:54 amsmaster.pid
-rwxr-xr-x 1 root root 5242 9月 11 17:54 amsmgr
drwxrwxrwx 6 ams ams 4096 9月 11 17:54 applications
-rwxr-xr-x 1 root root 960 9月 11 17:54 cleanup
drwxr-x--- 3 ams ams 4096 9月 11 17:54 conf
drwxr-xr-x 5 ams ams 4096 9月 11 17:54 creds
drwxr-xr-x 3 root root 4096 9月 11 17:54 documentation
-rwxr-xr-x 1 root root 16368842 9月 11 17:54 libadbe_dme.so
-rwxr-xr-x 1 root root 336065 9月 11 17:54 libadbe_flv.so
-rwxr-xr-x 1 root root 59248 9月 11 17:54 libasneu.so.1
-rwxr-xr-x 1 root root 71263 9月 11 17:54 libcares.so
-rwxr-xr-x 1 root root 71263 9月 11 17:54 libcares.so.2
-rwxr-xr-x 1 root root 71263 9月 11 17:54 libcares.so.2.0.0
-rwxr-xr-x 1 root root 1968482 9月 11 17:54 libcrypto.so.1.0.0
-rwxr-xr-x 1 root root 162403 9月 11 17:54 libexpat.so.1
-rwxr-xr-x 1 root root 3497472 9月 11 17:54 libfmsccme.so
-rwxr-xr-x 1 root root 6992879 9月 11 17:54 libhds.so
-rwxr-xr-x 1 root root 403767 9月 11 17:54 libssl.so.1.0.0
drwxr-xr-x 2 root root 4096 9月 11 17:54 licenses
drwxrwxrwx 2 root root 4096 9月 11 17:54 logs
drwxr-xr-x 5 root root 4096 9月 11 17:54 modules
drwxr-xr-x 6 root root 4096 9月 11 17:54 samples
drwxr-xr-x 3 root root 4096 9月 11 17:54 scriptlib
-rwxr-xr-x 1 root root 7494 9月 11 17:54 server
-rwxr-xr-x 1 root root 300864 9月 11 17:54 shmrd
-rwxr-xr-x 1 root root 36206 9月 11 17:54 tcSrvMsg
drwxrwxrwx 2 root root 4096 9月 11 17:54 tmp
drwxr-xr-x 9 root root 4096 9月 11 17:54 tools
-rwxr-xr-x 1 root root 2411 9月 11 17:54 uninstallAMS
drwxr-xr-x 8 ams ams 4096 9月 11 17:54 webroot
[root@NA1SIBZDH02 /opt/adobe/ams]#
[root@NA1SIBZDH02 /opt/adobe/ams]#
ーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーA possible cause is security software (firewall) that blocks or restricts Firefox or the plugin-container process without informing you, possibly after detecting changes (update) to the Firefox program.<br />
Remove all rules for Firefox from the permissions list in the firewall and let your firewall ask again for permission to get full unrestricted access to internet for Firefox and the plugin-container process and the updater process.
See:
* https://support.mozilla.com/kb/Server+not+found
* https://support.mozilla.com/kb/Firewalls -
Start one job after another complets using PL/SQL procedure and DBMS_JOB
All,
I am attempting to refresh a materialized view using DBMS_JOB and having a PL/SQL program loop through each materialized view name that resides in a table I created. We do the table because they have to be refreshed in a specific order and I utilize the ORDER_OF_REFRESH column to dictate which MV comes first, second, third, etc.
Now - I have this working to the extent that it kicks off 4 materialized views (currently set the procedure to only do 4 MVs for testing purposes) but I would ultimately like the procedure to create a new DBMS_JOB that calls DBMS_MVIEW.REFRESH of the next view in line ONLY after the preceeding materialized view DBMS_JOB completes.
The purpose of all of this is to do a few things. One - if I simply create a procedure with the DBMS_MVIEW.REFRESH call to each materialized view in order - that works but if one fails, the job starts over again and will up to 16 times - BIG PROBLEM. Secondly, we want the job that will call this procedure to fail if it encounters 2 failures on any one materialized view (because some MVs may be dependant upon that data and cannot use old stale data).
This may not be the "best" approach but I am trying to make the job self-sufficient in that it knows when to fail or not, and doesn't kick off the materialized views jobs all at once (remember - they need to start one after the other - in order).
As you can see near the bottom, my logic doesn't work quite right. It kicks off all four jobs at once with the date of the whatever LAST_REFRESH is in my cursor (which ultimately is from the prior day. What I would like to happen is this:
1.) 1st MV kicks off as DBMS_JOB and completes
2.) 2nd MV kicks off with a start time of 3 seconds after the completion of 1st MV (based off LAST_REFRESH) date.
3.) This conitnues until all MVs are refresh or until 2 failures are encountered, in which no more jobs are scheduled.
- Obviously I am having a little bit of trouble with #2 and #3 - any help is appreciated.
CREATE OR REPLACE PROCEDURE Next_Job_Refresh_Test2 IS
V_FAILURES NUMBER;
V_JOB_NO NUMBER;
V_START_DATE DATE := SYSDATE;
V_NEXT_DATE DATE;
V_NAME VARCHAR2(30);
V_DELIMITER VARCHAR2(1);
CURSOR MV_LIST IS SELECT DISTINCT A.ORDER_OF_REFRESH,
A.MV_OBJECT_NAME
FROM CATEBS.DISCO_MV_REFRESH_ORDER A
WHERE A.ORDER_OF_REFRESH < 5
ORDER BY A.ORDER_OF_REFRESH ASC;
CURSOR MV_ORDER IS SELECT B.ORDER_OF_REFRESH,
B.MV_OBJECT_NAME,
A.LAST_REFRESH
FROM USER_SNAPSHOTS A,
DISCO_MV_REFRESH_ORDER B
WHERE A.NAME = B.MV_OBJECT_NAME
ORDER BY B.ORDER_OF_REFRESH ASC;
BEGIN
FOR I IN MV_LIST
LOOP
IF I.ORDER_OF_REFRESH = 1
THEN V_START_DATE := SYSDATE + (30/86400); -- Start job one minute after execution time
ELSE V_START_DATE := V_NEXT_DATE;
END IF;
V_FAILURES := 0;
V_JOB_NO := 0;
V_NAME := I.MV_OBJECT_NAME;
V_DELIMITER := '''';
DBMS_JOB.SUBMIT(V_JOB_NO,'DBMS_MVIEW.REFRESH(' || V_DELIMITER || V_NAME || V_DELIMITER || ');',V_START_DATE,NULL);
SELECT JOB, FAILURES INTO V_JOB_NO, V_FAILURES
FROM USER_JOBS
WHERE WHAT LIKE '%' || V_NAME || '%'
AND SCHEMA_USER = 'CATEBS';
IF V_FAILURES = 3
THEN DBMS_JOB.BROKEN(V_JOB_NO,TRUE,NULL); EXIT;
END IF;
FOR O IN MV_ORDER
LOOP
IF I.ORDER_OF_REFRESH > 2
THEN V_NEXT_DATE:= (O.LAST_REFRESH + (3/86400)); -- Start next materialized view 3 seconds after completion of prior refresh
END IF;
END LOOP;
END LOOP;
EXCEPTION
WHEN NO_DATA_FOUND
THEN
IF MV_LIST%ISOPEN
THEN CLOSE MV_LIST;
END IF;
NULL;
END Next_Job_Refresh_Test2;
---------------------------------------------------------------------------------------------------------------------Justin,
I think I am getting closer. I have a procedure shown just below this that updates my custom table with information from USER_SNAPSHOTS to reflect the time and status of the refresh completion:
CREATE OR REPLACE PROCEDURE Upd_Disco_Mv_Refresh_Order_Tbl IS
V_STATUS VARCHAR2(7);
V_LAST_REFRESH DATE;
V_MV_NAME VARCHAR2(30);
CURSOR MV_LIST IS SELECT DISTINCT NAME, LAST_REFRESH, STATUS
FROM USER_SNAPSHOTS
WHERE OWNER = 'CATEBS';
BEGIN
FOR I IN MV_LIST
LOOP
V_STATUS := I.STATUS;
V_LAST_REFRESH := I.LAST_REFRESH;
V_MV_NAME := I.NAME;
UPDATE DISCO_MV_REFRESH_ORDER A SET A.LAST_REFRESH = V_LAST_REFRESH
WHERE A.MV_OBJECT_NAME = V_MV_NAME;
COMMIT;
UPDATE DISCO_MV_REFRESH_ORDER A SET A.REFRESH_STATUS = V_STATUS
WHERE A.MV_OBJECT_NAME = V_MV_NAME;
COMMIT;
END LOOP;
END Upd_Disco_Mv_Refresh_Order_Tbl;
Next, I have a "new" procedure that does the job creation and refresh show just below this which, when starting the loop, sets the LAST_REFRESH date in my table to NULL and the STATUS = 'INVALID'. Then if the order of refresh = 1 then it uses SYSDATE to submit the job and start right away, else if it's not the first job, it uses V_NEXT_DATE. Now, V_NEXT_DATE is equal to the LAST_REFRESH date from my table when the view has completed and the V_PREV_STATUS = 'VALID'. I think tack on 2 seconds to that to begin my next job.... See code below:
CREATE OR REPLACE PROCEDURE Disco_Mv_Refresh IS
V_FAILURES NUMBER;
V_JOB_NO NUMBER;
V_START_DATE DATE := SYSDATE;
V_NEXT_DATE DATE;
V_NAME VARCHAR2(30);
V_PREV_STATUS VARCHAR2(7);
CURSOR MV_LIST IS SELECT DISTINCT A.ORDER_OF_REFRESH,
A.MV_OBJECT_NAME,
A.LAST_REFRESH,
A.REFRESH_STATUS
FROM CATEBS.DISCO_MV_REFRESH_ORDER A
WHERE A.ORDER_OF_REFRESH <= 5
ORDER BY A.ORDER_OF_REFRESH ASC;
BEGIN
FOR I IN MV_LIST
LOOP
V_NAME := I.MV_OBJECT_NAME;
V_FAILURES := 0;
UPDATE DISCO_MV_REFRESH_ORDER SET LAST_REFRESH = NULL WHERE MV_OBJECT_NAME = V_NAME;
UPDATE DISCO_MV_REFRESH_ORDER SET REFRESH_STATUS = 'INVALID' WHERE MV_OBJECT_NAME = V_NAME;
IF I.ORDER_OF_REFRESH = 1
THEN V_START_DATE := SYSDATE;
ELSE V_START_DATE := V_NEXT_DATE;
END IF;
DBMS_JOB.SUBMIT(V_JOB_NO,'DBMS_MVIEW.REFRESH(' || '''' || V_NAME || '''' || '); BEGIN UPD_DISCO_MV_REFRESH_ORDER_TBL; END;',V_START_DATE,NULL);
SELECT A.REFRESH_STATUS, A.LAST_REFRESH INTO V_PREV_STATUS, V_NEXT_DATE
FROM DISCO_MV_REFRESH_ORDER A
WHERE (I.ORDER_OF_REFRESH - 1) = A.ORDER_OF_REFRESH;
IF I.ORDER_OF_REFRESH > 1 AND V_PREV_STATUS = 'VALID'
THEN V_NEXT_DATE := V_NEXT_DATE + (2/86400);
ELSE V_NEXT_DATE := NULL;
END IF;
END LOOP;
EXCEPTION
WHEN NO_DATA_FOUND
THEN
IF MV_LIST%ISOPEN
THEN CLOSE MV_LIST;
END IF;
NULL;
END Disco_Mv_Refresh;
My problem is that it doesn't appear to be looping to the next job. It worked succesfully on the first job but not the subsequent jobs (or materialized views in this case).... Any ideas? -
[SOLVED]start a service *AFTER another one has executed completely
How can i make "test.service" to start after "customstartup.service" has been fully executed?
As you can see, even if test.service Requires customstartup and customstartup.service is "oneshot", test.service is started while customstartup is still starting!
The following is in a linux container:
[root@archiso ~]# cat /etc/systemd/system/customstartup.service
[Unit]
Description=customstartup
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/bin/sleep 100
[Install]
WantedBy=multi-user.target
[root@archiso ~]# cat /etc/systemd/system/test.service
[Unit]
Description=test
Requires=customstartup.service
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/bin/sh -c "echo hi all"
[Install]
WantedBy=multi-user.target
# systemctl status customstartup
● customstartup.service - customstartup
Loaded: loaded (/etc/systemd/system/customstartup.service; enabled)
Active: activating (start) since gio 2014-07-03 16:30:10 CEST; 12s ago
Main PID: 32 (sleep)
CGroup: /machine.slice/machine-root\x2dimage.scope/system.slice/customstartup.service
└─32 /usr/bin/sleep 100
[root@archiso ~]# systemctl status test
● test.service - test
Loaded: loaded (/etc/systemd/system/test.service; enabled)
Active: active (exited) since gio 2014-07-03 16:30:10 CEST; 23s ago
Process: 26 ExecStart=/usr/bin/sh -c echo hi all (code=exited, status=0/SUCCESS)
Main PID: 26 (code=exited, status=0/SUCCESS)
CGroup: /machine.slice/machine-root\x2dimage.scope/system.slice/test.service
lug 03 16:30:10 archiso sh[26]: hi all
lug 03 16:30:10 archiso systemd[1]: Started test.
Any hints? Is there a way to enforce the wait?
Thanks.
Last edited by kokoko3k (2014-07-03 15:59:37)From systemd.unit:
Requires=
Configures requirement dependencies on other units. If this unit gets activated, the
units listed here will be activated as well. If one of the other units gets
deactivated or its activation fails, this unit will be deactivated. This option may be
specified more than once or multiple space-separated units may be specified in one
option in which case requirement dependencies for all listed names will be created.
Note that requirement dependencies do not influence the order in which services are
started or stopped. This has to be configured independently with the After= or Before=
options. If a unit foo.service requires a unit bar.service as configured with
Requires= and no ordering is configured with After= or Before=, then both units will
be started simultaneously and without any delay between them if foo.service is
activated. Often it is a better choice to use Wants= instead of Requires= in order to
achieve a system that is more robust when dealing with failing services. -
Why after I rented a movie and finish watching it and wanna watch it again with in the 24 hours, have to pay another rent fee to watch it? When I already paid the the fee to rent it for 24 hours?
Start the video and slide all the way to the beginning. If the video isn't in your Movie app, then the rental expired.
-
Embed question - play one movie after another
I am trying to figure out how to play a short 10 second clip before each movie on my website. The clip may be a short ad or a promo and will depend upon the content of the main video. What is the code that enables you to play one move after another in a web page. I don't want to edit the two clips to become one cos over time the ads and promos will change. In Realplayer I remember using SMIL but how is it done in QT. I will eventually write code to write out the Embed tag but now i am just experimenting. Here is what my drupal site puts out
<!-- start main content -->
<!-- begin content -->
<!--[if !IE]> <-->
<object type="video/quicktime" width="483" height="381"
data="http://www.1234567.com/files/videos/Mpeg4TestSnapX-480x360.mp4">
<!--> <![endif]-->
<!--[if IE]>
<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" width="483" height="381" scale="tofit" >
<![endif]-->
<param name="src" value="http://www.1234567.com/files/videos/Mpeg4TestSnapX-480x360.mp4" />
<param name="AUTOPLAY" value="true" />
<param name="KIOSKMODE" value="false" />
Your browser is not able to display this multimedia content.
</object>
Problems viewing videos?
Download latest Quicktime PlayerEmbed the initial movie clip as normal, but give it an HREF property.
Set the source for the HREF to be the next movie, set autohref=true, and set target="myself". It's the same technique you use to build a poster movie but (a) instead of having the poster movie open QT Player, you have its target open in its own frame and (b) instead of waiting for a user to click the poster, you have the poster movie "click itself".
Code that I used a very long time ago to display a "Loading..." graphic as a movie loaded (waste of effort, actually, as the movie is fast start and loads very fast):
<embed
src="loading.mov"
height="208"
width="256"
autohref="true"
href="Worm.mov"
target="Myself">
</embed>
(of course this was before I learned about OBJECT and the need to use OBJECT to activate the ActiveX control in IE. Also, it's worth noting that the javascript hack isn't strictly necessary for IE users, but without it, IE users will get a security dialog before they get the movie.)
The code above can be found on:
http://capital2.capital.edu/admin-staff/dalthoff/adventures/worm.html
--Dave Althoff, Jr. -
Calling 3 different movies by one click, One after another.
Hi,
I have 9 small movies. I want to make a combo box and,
provide 3 options to choose from. But each option should call 3
movies ONE AFTER ANOTHER WITHOUT USER INTERFERENCE. I want movies
to stream one by one to save bandwidth and delay. Following is the
option for calling one movie by choosing one option but I want to
start 2nd and 3rd movie without user interference. How do I do
that?
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="absolute">
<mx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
[Bindable] private var swfDP:ArrayCollection = new
ArrayCollection([
{label:"Choose a Movie", data:""},
{label:"Movie1", data:"myMovie.swf"},
{label:"Movie2", data:"myMovie2.swf"},
{label:"Movie3", data:"myMovie3.swf"}]);
private function onComboChange(event:Event):void {
// => Check to see if swf location exists, if it does then
load the new swf.
(event.currentTarget.selectedItem.data != "") ?
loader.load(event.currentTarget.selectedItem.data) : "";
]]>
</mx:Script>
<mx:ComboBox dataProvider="{swfDP}"
change="onComboChange(event)" />
<mx:SWFLoader id="loader" width="800" height="600" x="200"
y="50" />
</mx:Application>Hi,
I have 9 small movies. I want to make a combo box and,
provide 3 options to choose from. But each option should call 3
movies ONE AFTER ANOTHER WITHOUT USER INTERFERENCE. I want movies
to stream one by one to save bandwidth and delay. Following is the
option for calling one movie by choosing one option but I want to
start 2nd and 3rd movie without user interference. How do I do
that?
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="absolute">
<mx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
[Bindable] private var swfDP:ArrayCollection = new
ArrayCollection([
{label:"Choose a Movie", data:""},
{label:"Movie1", data:"myMovie.swf"},
{label:"Movie2", data:"myMovie2.swf"},
{label:"Movie3", data:"myMovie3.swf"}]);
private function onComboChange(event:Event):void {
// => Check to see if swf location exists, if it does then
load the new swf.
(event.currentTarget.selectedItem.data != "") ?
loader.load(event.currentTarget.selectedItem.data) : "";
]]>
</mx:Script>
<mx:ComboBox dataProvider="{swfDP}"
change="onComboChange(event)" />
<mx:SWFLoader id="loader" width="800" height="600" x="200"
y="50" />
</mx:Application> -
Automatic transition AFTER QT movie is finished?
I'm showing a 5 minute QT movie on one slide and trying to make it automatically transition to the next slide AFTER the QT movie is finished. How do I do this since the 'delay' only goes up to 60seconds? Thanks.
If I understand this problem correctly, this is what I've done to accomplish the automatic transition after the end of a quicktime movie has played in Keynote 2. First I get info about the movie (command-i) which tells me very accurately the duration of the movie.
Second, after insertion of the movie into a custom frame in the presentation, I go to the inspector and the transition window for the slide and in the lower right hand window set the time of the delay for the transition to the duration time for the movie. By the way, highlight the box and type whatever delay time you require into the box. I've had no problems with this technique, and have set times of over five minutes by typing in the number of seconds required to cover the movie.
Third, choose automatically from the drop down menu for start of transition.
Fourth, play the movie and adjust the time if you are little long or short because of other transitions which may accompany the slide. -
After upgrading to version 11.0.4.4 I get a "Itunes has stopped working" message when I try to start a movie on my PC. I have updated Quick time and previous version of Itunes worked great.
One thing is for sure, and that is if the only page i visit is the Google homepage (not logged in) or this site (mozilla forum), the problem does not occur, ever. I can't make it happen.
If i visit yahoo.com (not logged in) (or ighome.com, logged in), as examples, it happens every time. -
Playing movies in Front Row one after another automatically?
I have a number of short video clips that I can watch with Front Row. However, every time a clip ends, I have to go and click “play” on the next clip and this is annoying. I am wondering if there is a way to make movies play one after another without stopping. Thanks for the help!
David,
Thanks for the help. I'm still thinking there must be SOME way to pull this off. It seems like Mac's can do just about anything if you take the time to figure it out. Why wouldn't the people who designed Front Row not add this feature? It doesn't make any sense. There has to be a way. Anybody else have any ideas? -
How can I make my movies to play one after another automatically?
I couldn't find the settings to play all my movies one after another.
Any idea?Given the number of threads bemoaning the lack of such features (mostly for music videos) and countless enhancement requests sent here:
http://www.apple.com/feedback/appletv.html
..and the lack of the facility being added in over a year make me think it's unlikely to ever happen but I'd love ot be proved wrong!
AC -
Movies play one after another automatically?
In IDVD 8...can individual movies automatically play one after another without having to return to the menu to reselect the next movie and clicking on it?
I have 7- 3 min. movies I want to play together ...one after another...automatically in idvd08.If I had $5 for every time that has been asked...
It can NOT be done in iDVD. It can be done in DVD Studio Pro. -
Hiding the Mouse on Start of Movie
Hello All,
I have a flash program that runs on a PC that is connected to a TV. In case it helps at all, the PC is running OpenSuSE 12.1/KDE 4.
The PC is acting as a kiosk like device where no user is actually sitting at the PC doing stuff. If we ever need to do anything with it
we do it remotley using something like VNC or Remote Desktop or SSH, etc....
So what happens is when the PC is powered on it boots up and automatically logs in the default user. Then I set Firefox to start
automatically on boot and I set it's Homepage to the URL where the swf file lives (*which is located on another Server). Also, Firefox
automatically goes into Fullscreen mode mode using the Firefox Plugin "Full Fulscreen".
The issue is that, after the PC boots up and Firefox starts and the Flash movie begins playing, I can see the Mouse pointer sitting in the
middle of the screen which does NOT go away. So I found some code online that will hide the mouse after 'n' seconds. But the problem
is that when the Flash movie starts the mouse will NOT disappear after 'n' seconds. It is possible to get it to disappear, but in order to do
so I would have to tap the mouse so that it moves even the slightest, then after it stops moving it then disappears after 'n' seconds...
Since there really isn't any person who starts the movie manually, or since no one sitting in front of it with a mouse in their hand this won't
do what I wanted it to do....
Here is what I have so far in order to hide the mouse:
// Added this line after testing the code below. But still didn't hide the pointer when the movie was started
//Mouse.hide(); // Hide the mouse automatically when started (*no time limit for this one)
var timeLimit:int = 3; // Integer to hold what the Time Limit will be
// Add the EventListener for when the Mouse is moved:
stage.addEventListener(MouseEvent.MOUSE_MOVE, onMove);
// Create a Timer Object and multiply timeLimit by 1000 to get seconds:
var timer:Timer = new Timer(timeLimit * 1000);
// Add the EventListener for the Timer:
timer.addEventListener(TimerEvent.TIMER, onInactiveMouse);
// Function "onMove()":
// *This will show the Mouse, stop the timer, then restart the timer...
function onMove(event:MouseEvent):void {
trace("In onMove() --- Showing the Mouse Now...");
Mouse.show();
timer.stop();
timer.start();
// Function "onInactiveMouse()":
// *This will hide the Mouse when the TimeLimit has been reached...
function onInactiveMouse(event:TimerEvent):void {
trace("In onInactiveMouse() --- Hiding the Mouse Now...");
Mouse.hide();
So I guess my question is, is there a way to hide the mouse without a Human having to intervene and move the mouse pointer?
Also, I don't know if it was just some weird thing that happens, but say the movie is up and I move the mouse so it then disappears after n seconds.
Then the Frame changes and under where the mouse is hiding a TextField appears (*NOT an input TextField, just a Dynamic Text) suddenly the mouse
reappears, but it appears as the text selection pointer (*i.e. the one that looks like an Upper-Case "i"). And it won't disappear unless I move the pointer
again, Strange..! I guess I could fix this by changing all my TextFields to be NOT selectable, but I was just curious if anyone else had experienced this?
Anyway, any thoughts/suggestions would be greatly appreciated!
Thanks in Advance,
MattI decided which way I'm going to go with this and it seems to be doing the trick
I'm using this C/C++ program I found online, which I eneded up tweeking a little bit since it was a pretty old code so some things were
a bit out dated like the libraries, and a few other things. It uses the "X11" library in order to access elements of the screen including input
devices like the mouse and keyboard.
You simply execute the command on the CLI and pass it an X and Y Coordinate. Then once executed it will simply move the mouse to those
coordniates specified, and apparently emulate a Right-Click from the mouse. I'm not exactly sure if it will actually do the right-click, but for my
purposes just moving the mouse ever so slightly will be enough to bring the Flash Movie inside Firefox into focus.
I then created a simple Shell Script which will run on boot up and will sit in a loop checking if Firefox is running, if it is found running, then it waits
about 10 seconds or so, then executes the "clickMouse" program and moves the mouse to the specified coordinates. I tested it once or twice
and it seems to be doing the trick.
Here is the uncompilied code for the C program:
*Once compilied you execute the program and pass it an X and Y Coordinate like this --> "./clickMouse 1000 500"
#include <X11/Xlib.h>
#include<stdio.h>
#include<unistd.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
void mouseClick(int button)
Display *display = XOpenDisplay(NULL);
XEvent event;
if(display == NULL)
fprintf(stderr, "Errore nell'apertura del Display !!!\n");
exit(EXIT_FAILURE);
memset(&event, 0x00, sizeof(event));
event.type = ButtonPress;
event.xbutton.button = button;
event.xbutton.same_screen = True;
XQueryPointer(display, RootWindow(display, DefaultScreen(display)), &event.xbutton.root, &event.xbutton.window, &event.xbutton.x_root, &event.xbutton.y_root, &event.xbutton.x, &event.xbutton.y, &event.xbutton.state);
event.xbutton.subwindow = event.xbutton.window;
while(event.xbutton.subwindow)
event.xbutton.window = event.xbutton.subwindow;
XQueryPointer(display, event.xbutton.window, &event.xbutton.root, &event.xbutton.subwindow, &event.xbutton.x_root, &event.xbutton.y_root, &event.xbutton.x, &event.xbutton.y, &event.xbutton.state);
if(XSendEvent(display, PointerWindow, True, 0xfff, &event) == 0) fprintf(stderr, "Error\n");
XFlush(display);
usleep(100000);
event.type = ButtonRelease;
event.xbutton.state = 0x100;
if(XSendEvent(display, PointerWindow, True, 0xfff, &event) == 0) fprintf(stderr, "Error\n");
XFlush(display);
XCloseDisplay(display);
int main(int argc,char * argv[])
int i=0;
int x , y;
x=atoi(argv[1]);
y=atoi(argv[2]);
Display *display = XOpenDisplay(0)
Window root = DefaultRootWindow(display);
XWarpPointer(display, None, root, 0, 0, 0, 0, x, y);
mouseClick(Button1);
XFlush(display);
XCloseDisplay(display);
return 0;
I'm not too proficient in C, a little bit more in C++, so I didn't realy change much from the original code except add a "main()" section to this one in order
to execute the "mouseClick()" function.
F.Y.I.
I kept the Actionscript code for the Mouse.hide() stuff, so this C program works with the Mouse.hide() code...
Thanks Again,
Matt -
Start background Job when another is finished (NOT with the JobSteps)
Hi guys,
i need your help.
I've already searched here in forum, but i wasn't able to find a good solution.
I have this problem.
I have a program that create a background job with the FM FM JOB_OPEN.. SUBMIT report with parameters .. JOB_CLOSE.
I want that if i run this report again (20 secs after for example) it does:
- Check if there is an already running Job with the same name (means with state 'R') (This task is simply, with a select on TBTO table)
- If it's found, it have to create a new job with the same name that starts automatically AFTER the first running job is finished (don't care about the end-state of the first job).
I've already tried with pred_jobcount & PRED_JOBNAME parameters of the JOB_CLOSE FM but it doesen't works!
The JOB_CLOSE, creates a job in Planned state. But when the first Job is finished, the second job(Planned) doesen't start automatically.
In this scenario, i CANNOT use endless loops (wait until the first job is finished and then submit the second) Job-steps (one job that contains multiple steps) events (i have to start only one job after the predecessor is finished), because this report could be run many times and each job should be collected like a "stack" (only when the first job is finshed the second "registered" should be started and so on, until the aren't more planned jobs).
<REMOVED BY MODERATOR>
Thx a lot for your help.
Andrea
Edited by: Alvaro Tejada Galindo on Jun 12, 2008 12:19 PMHi Veda
i can tell u but ... some reward points are very appreciated ....
I'm joking (of course)
Here the question:
I have a program (called A) that submit a new program (called B) with the JOB_OPEN .. submit JOB_CLOSE. The program B should start only if another program B (called before for example) is finished.
Here the solution.
I add a parameter (with no-display clausole) to the program B. In this parameter i pass to the program, the job number returned by the JOB_OPEN function.
When i create the JOB with the function, the "jobname" parameter is set with value 'G_DELIVERY' (Here u can change the name of the job as u want : this is the jobname that u see in SM37 transaction).
In the start-of-selection of program B i put a "waiting" procedure like this :
First i save a timestamp of system-date and system-time (called for example r_date and r_time)
select from table TBTCO all the jobs called "G_DELIVERY" with jobnumber <> from the jobnumber parameter (that means exclude itselfs) with status running ('R') -> that have startdate /starttime less than the r_date and r_time <- (this is the key of the selection that solve the problem).
if it is found (means there is another running job started before this one).
wait up to 60 seconds. "for example
repeat the selection.
endif.
When the job called before ends, this one programs exits from the loop and continues. If u submit more programs "B", they'll works like a stack.
I should say to u just one thing.... I solved my problem in another way (because i've changed the logic so this problem was no more) so i didn't implemented that logic, but it should works very good.
Try it and tell me!
Bye
Andrea
Maybe you are looking for
-
Problem downloading video for my new 30 gb iPod
I tried downloading a video for brand new iPod and whenver it i try to downlooad i get a error . It says the disk that i'm using is full. Windows XP
-
Oracle 10.2.0.3 Full Client for Windows 2003 32bit
Hello, I know this is a stupid question, but I cannot seem to find the download for the full client for 10.2.0.3 for Windows 2003 32bit server. I have found the instant client, but not the full client. Thanks in advance. Brian
-
How to compile the9i form on RH EL5 64-bit with 11g Forms Services install
Hi, I have a form developed with forms 9i. I need to compile it on RH EL5.4 to get the fmx file that I need for Forms Services 11g that I just installed. I looked on the box but there are no fgen*.sh files. Did I miss some component during the instal
-
A little help planning a music video
I could use some advice... For a while now, every time I meet a musician I casually hand him/her my card and say something along the lines of "if you ever want to try your hand at making a music video to help get your music out there, I am looking to
-
I have had photos , photos albums, or folders deleted in the past, and I have somehow recaptured them by a way that is unknown or clear to me. Anyway I imported them to the library and it is now in the the library folder recent last 12 months import