Run a script every two seconds

Hi all

I'm trying to find a way to exectute the script below, without the use of a timeout object. Any ideas?

on getDataForNoface1 me

If repeatinfo = TRUE AND (noface = "user_face") AND (ycoord = 'far away') then
-Use far this option once at the beginning of presentation and 1-2 times (depending on the length of the presentation)
-during the presentation
Sprite (5). Hypertext = "\q [I am about to begin my presentation, you want to get closer?].
RepeatInfo = FALSE
on the other
If repeatinfo = FALSE AND (noface = "user_face") AND (ycoord ycoord of GOLD = 'normal' = 'close') then
-suspend the script above, when the user sees the character
Sprite (5). Hypertext = "\stop []".
RepeatInfo = TRUE
on the other
If repeatinfo = TRUE AND (noface = "no_user_face") AND (ycoord ycoord of GOLD = 'normal' = 'close' GOLD ycoord = 'far away') AND (xcoord = 'right') or xcoord = "left" then
-If the character cannot see the user, same scenario as far!
Sprite (5). Hypertext = "\q [master I can't see you more can get closer?].
RepeatInfo = FALSE

-write the code audio length
end if
end if
end if
end

Quote:
Posted by: wgb14
Can you provide a code example? Its impossible to understand what you say otherwise

Impossible?

Tags: Director

Similar Questions

  • AS2 how to make a button that moves every two seconds

    How can I make a button that moves every two seconds by itself in ActionScript2?

    For now, I have to use the command you (press), but what I really need, is the button in order to move randomly by itself every two seconds. For example:

    (insert the code here) {

    BC1._x = random (250)

    BC1._y = random (250)

    }

    Thank you!

    You can use the setInterval function repeated at specific time intervals.  Here is a link to a tutorial that explains how to use...

    http://www.republicofcode.com/Tutorials/Flash/setInterval/

  • Running a script every day

    How can I create a script that will generate a SSH connection both regular every day and run a script on the computer remote linux?  The script already exists on the remote computer, I just need to connect and run it with vCO.  Thank you!

    Right - click on the "run command SSH" workflow in the vCO Client

    Select "schedule Workflow.

    Enter your calendar information

    Provide details of your host, run command, authentication, etc. and submit

    Run the workflow once or twice manually first to confirm that you have the correct values for all entries

  • Then my mac run a script every 15 minutes?

    I have osx 10.7 and indesign CS5, and I use a script I run several times a day.  Would it be possible to have my mac run this script automatically - perhaps every 15 minutes?

    Hello

    Kevin shows the syntax to use AppleScript, sth. like:

    --open in Scripteditor, save as Programm with option stay open!
    
    on idle
        tell application "Adobe InDesign CS5"
            --usage: do script pathToyourScript scriptinglanguage
            do script "Mac Red-Grafik 3:Users:claessen:Desktop:FunnyScript.jsx" language javascript --applescript language
        end tell
        return 900
    end idle
    

    Shareware for scheduled tasks: hazel

    OSX BuiltIn LaunchD

    Hope it will help

    Hans-Gerd Classen

  • How to run this function every 5 seconds?

    I tried using setInterval() but I just can't do things... This is the function I want to run every 5 seconds:

    function next_(event:MouseEvent):void{
         var sliderPos = sliderMC.x;
         if(sliderPos != -696){
              if(sliderPos == 0 || sliderPos == -232 || sliderPos == -464){
                   sliderTween = new Tween(sliderMC,'x',Strong.easeOut,sliderPos,sliderPos-232,10,false);
              }
         }else{
              sliderTween = new Tween(sliderMC,'x',Strong.easeOut,sliderPos,0,15,false);
         }
         
    }
    

    try to change TIMER_COMPLETE just the TIMER, for the type of the event when the listener is added.

    timer.addEventListener(Timer.TIMER, timerNext);
    
  • Run a task every two weeks

    I have a task that must be executed every two weeks (14 days and 28 days, etc., after the date) to a date that is retrieved from a database. How can I do this?

    Schedule the job to run every day.
    Extract the date once then that is a constant.
    In the model, hard-coding this date contstant. Use if/else logic mod 14 diff date to determine whether or not an execution of the code.

  • Dbms_job, how to run a script every day at 06:00

    Hello

    I want to run a task every day at 06:00. To do this, I ran this script yesterday 26.

    DECLARE
    X NUMBER;
    BEGIN
    SYS. DBMS_JOB. Send
    (work = > X)
    , this = > ' start
    Tools.followup (1); Tools.purge (20);
    end; »
    , next_date = > to_date (May 27, 2009 06:00 ',' dd/mm/yyyy hh24:mi:ss')
    , interval = > TRUNC (SYSDATE + 1) + 6/24
    , no_parse = > FALSE
    );
    SYS. DBMS_OUTPUT. Put_line (' job number is: ' | to_char (x));
    COMMIT;
    END;
    /


    The problem is that, after the first execution next_date was 27 06:02!

    Is this a bug?

    Thanks in advance
    A.G.

    Are you sure of the definition of work? The DBMS_JOB. Call to SUBMIT, you have validated, for example, is incorrect, because the INTERVAL parameter takes a string, not a date.

    If your script is

      ,interval => 'TRUNC(sysdate+1)+6/24'
    

    who would ever resolve at 06:00. I would tend to believe that the actual definition of the specified simply task

      ,interval => 'sysdate+1'
    

    If it took 2 minutes to run, that would solve at 06:02.

    Justin

  • I want to compare live data that leaving a device series after every two seconds.

    Hello

    He is Mohammad. I am new user of labview.

    I'm working on an instrument of communication in series. In two seconds, I coded for a single data point of the instrument. My problem is I want to compare the current data point with the previous immediate. How can I compare each time that the current data point with the previous. Can someone help me please?

    With impatience.

    Mohammad

    If you graph these data:
    Replace the while loop with a loop For.

    So if wire you the data out of the loop, it will be automatically built into an array.

    This array can be passed to a chart in Microsoft graph if you want.

  • Grid Infra configuration failed when running root.sh on the second node

    Hello world.

    I am new guy on RAC environment. When you try to install Oracle RAC on the local environment, I had this problem:

    -J' have run root.sh successfully on a local first node

    -After that, the first node, there are 3 cards of virtual network created to SCAN listening addresses

    -After the success of action on the first node, I tried to run this script on the second node, but the error occurred:

    CRS-2676: Start of 'ora.DATA.dg' on 'dbnode2' succeeded
    PRCR-1079 : Failed to start resource ora.scan1.vip
    CRS-5017: The resource action "ora.scan1.vip start" encountered the following error:
    CRS-5005: IP Address: 192.168.50.124 is already in use in the network
    . For details refer to "(:CLSN00107:)" in "/u01/app/11.2.0/grid/log/dbnode2/agent/crsd/orarootagent_root/orarootagent_root.log".
    
    CRS-2674: Start of 'ora.scan1.vip' on 'dbnode2' failed
    CRS-2632: There are no more servers to try to place resource 'ora.scan1.vip' on that would satisfy its placement policy
    PRCR-1079 : Failed to start resource ora.scan2.vip
    CRS-5017: The resource action "ora.scan2.vip start" encountered the following error:
    CRS-5005: IP Address: 192.168.50.122 is already in use in the network
    . For details refer to "(:CLSN00107:)" in "/u01/app/11.2.0/grid/log/dbnode2/agent/crsd/orarootagent_root/orarootagent_root.log".
    
    CRS-2674: Start of 'ora.scan2.vip' on 'dbnode2' failed
    CRS-2632: There are no more servers to try to place resource 'ora.scan2.vip' on that would satisfy its placement policy
    PRCR-1079 : Failed to start resource ora.scan3.vip
    CRS-5017: The resource action "ora.scan3.vip start" encountered the following error:
    CRS-5005: IP Address: 192.168.50.123 is already in use in the network
    . For details refer to "(:CLSN00107:)" in "/u01/app/11.2.0/grid/log/dbnode2/agent/crsd/orarootagent_root/orarootagent_root.log".
    
    CRS-2674: Start of 'ora.scan3.vip' on 'dbnode2' failed
    CRS-2632: There are no more servers to try to place resource 'ora.scan3.vip' on that would satisfy its placement policy
    
    start scan ... failed
    FirstNode configuration failed at /u01/app/11.2.0/grid/crs/install/crsconfig_lib.pm line 9379.
    /u01/app/11.2.0/grid/perl/bin/perl -I/u01/app/11.2.0/grid/perl/lib -I/u01/app/11.2.0/grid/crs/install /u01/app/11.2.0/grid/crs/install/rootcrs.pl execution failed
    
    

    I tried again with several times (with left-hand) but the problem was still there. Can you explain to me?

    -Why, after running root.sh on the first node, all IP SCANNER interfaces was created on this node? This is the reason why root.sh fails on the second node.

    -How to solve?

    I use the server for address scan local DNS resolves to 3 IPs, and I can run script runcluvfy.sh with success on both nodes.

    I thank in advance

    PS:

    I use two virtual machines in vmware. After running root.sh on the first node, I checked and found this funny information:

    [oracle@dbnode1 sshsetup] $ / sbin/ifconfig

    eth0 Link encap HWaddr 00: 0C: 29:BC:43:1 B

    INET addr:192.168.50.66 Bcast:192.168.50.255 mask: 255.255.255.0

    ADR inet6: fe80::20c:29ff:febc:431 b / 64 Scope: link

    RUNNING BROADCAST MULTICAST MTU:1500 metric: 1

    Dropped packets: 249814 RX errors: 0:0 overruns: 0 frame: 0

    Dropped packets: 2956882 TX errors: 0:0 overruns: 0 carrier: 0

    collisions: 0 txqueuelen:1000

    RX bytes: 24913472 (23.7 MiB) TX bytes: 4369984705 (4.0 GiB)

    eth0: 1 link encap HWaddr 00: 0C: 29:BC:43:1 B

    INET addr:192.168.50.120 Bcast:192.168.50.255 mask: 255.255.255.0

    RUNNING BROADCAST MULTICAST MTU:1500 metric: 1

    eth0:2 Link encap HWaddr 00: 0C: 29:BC:43:1 B

    INET addr:192.168.50.122 Bcast:192.168.50.255 mask: 255.255.255.0

    RUNNING BROADCAST MULTICAST MTU:1500 metric: 1

    eth0:3 Link encap HWaddr 00: 0C: 29:BC:43:1 B

    INET addr:192.168.50.123 Bcast:192.168.50.255 mask: 255.255.255.0

    RUNNING BROADCAST MULTICAST MTU:1500 metric: 1

    eth0:4 Link encap HWaddr 00: 0C: 29:BC:43:1 B

    INET addr:192.168.50.124 Bcast:192.168.50.255 mask: 255.255.255.0

    RUNNING BROADCAST MULTICAST MTU:1500 metric: 1

    eth1 Link encap HWaddr 00: 0C: 29:BC:43:25

    INET addr:192.168.29.10 Bcast:192.168.29.255 mask: 255.255.255.0

    ADR inet6: fe80::20c:29ff:febc:4325 / 64 Scope: link

    RUNNING BROADCAST MULTICAST MTU:1500 metric: 1

    Fall of RX packets: 471 errors: 0:0 overruns: 0 frame: 0

    Dropped packets: 664 TX errors: 0:0 overruns: 0 carrier: 0

    collisions: 0 txqueuelen:1000

    RX bytes: 82216 (80.2 KiB) TX bytes: 107920 (105.3 KiB)

    eth1:1 Link encap HWaddr 00: 0C: 29:BC:43:25

    INET addr:169.254.75.201 Bcast:169.254.255.255 mask: 255.255.0.0

    RUNNING BROADCAST MULTICAST MTU:1500 metric: 1

    Lo encap:Local Loopback link

    INET addr:127.0.0.1 mask: 255.0.0.0

    ADR inet6:: 1/128 Scope: host

    RACE of LOOPING 16436 Metric: 1

    Fall of RX packets: 10626 errors: 0:0 overruns: 0 frame: 0

    Dropped packets: 10626 TX errors: 0:0 overruns: 0 carrier: 0

    collisions: 0 txqueuelen:0

    RX bytes: 7942626 (7.5 MiB) TX bytes: 7942626 (7.5 MiB)

    I think it's because of the failure on node 2

    UPDATE:

    That thing is normal, I ignored it and the installation can continue normally. Thank you all for your help.

  • Lock screen and mouse L850 satellite every 2 seconds

    I think I have a hardware problem with the Satellite PSKDLA - 0C800R L850.

    It is a laptop I bougth to my wife but he has ended up with my stepson of Uni studies. While he had it the hard drive is not one of his friends replaced. twelve months later, he advised it was gone blackscreen and G'nort would turn out.

    I finally got hold of it again and managed to drain the power remaining and replaced the CMOS battery remove a strip of RAM and it starts fine. I've proved a faulty stick so that left aside. Then I realized that there was a problem with the screen and the mouse

    . The screen would brighten up (wash out) then Flash and stabilize. First thought was video chip or the driver.
    At the same time would lock the mouse. When the screen clears the mouse would again.
    Happening every three or four seconds but now every two seconds. It is more difficult to do something.

    Have reloaded many drivers, but I think it is material, but not sure if it needs a motherboard or processor.
    Can you advise?

    I forgot to mention that the image of the screen is slightly down from senior management.
    Tere is a few millimeters of black with a white line on the top edge of the image.
    This white line seems to come on and off with the locked mouse synchronization and the screen. This is another indication of the problem or the backlight?

    Hi, have you checked the thermal paste between the CPU and the heatsink?
    CPU fan blows hot air outdoors?

  • system crashes every 2 seconds

    Hello people!

    I have a laptop G62 with the 64 bit version of windows 7, I have almost 4 years

    About 3 days ago, I ran a few youtube videos, the system started to freeze (video + sound) every 2 seconds!

    I turned it off and went to bed, the next morning, I turned it, went to the home page! and he showed me the desktop but nothing opens, not applications without the browser, when I opened the Task Manager, it showed the programs that I clicked with a * 32 at the end!

    in about 5 min later explorer.exe crashes and I had to stop it.

    what I tried:

    memory test: test the HARD disc, freezes in almost 50%

    factory reset: the partition is not found

    Scan of the system with antivirus: freezes in the Middle!

    software to clean registry

    logged in to windows, normal start, after 6-8 minutes it starts to freez every 2 seconds, and every two seconds, I hear a noise in the HARD disk like crack! and it happens every 2 seconds

    my activities:
    performance of Flight simulator X
    turn 3d flash games
    movies and videos youtube

    system:

    Intel Core i3 2.40 GHZ (4CPUs)
    Home Edition of Windows 7 64 bit

    Note: I have been using safe mode with network for over 2 weeks now, is not freez in this mode!
    I do not have the CD repaired

    Sounds like the hard drive is failing fast and will need to be replaced. If you are still in warranty HP will send a replacement. If this is not the case, a laptop SATA hard detail can be used. Just be sure to get one of at least equal quality of the original in order to use recovery disks to install Windows & programs. It may be big, but not small ability more. For example if you have a 500 GB hard drive you can use a 750 GB hard drive, but not a 320 GB hard drive.

  • Configuration automatic please wait blinks on the screen every few seconds, why?

    Whenever I start my computer a small window with the text "Auto Config please wait" flashes in the center of the screen every two seconds. This continues for a few minutes. After that he produced intermittently, but each time that it the screen dims and for a few seconds, I am unable to do anything either, no key or mouse fills it. Any suggestions? I scanned and repair errors and defragmented

    Hi YvetteBarnes,

    1. did you of recent changes on the computer?

    2. What is the version of Windows installed on the computer?

    3. What is the number of brand and model of the computer graphics card?

    The error message occurs generally if there is a problem with the monitor adapter or graphics on the computer.

    Method 1

    I suggest that you change the resolution of the screen on the computer and check if the problem persists.

    Change your screen resolution

    http://Windows.Microsoft.com/en-us/Windows7/change-your-screen-resolution

    Method 2

    If the previous step fails, then you need to update drivers graphics card on the computer manually by visiting the card manufacturer's Web site and check if it works.

    Updated a hardware driver that is not working properly

    http://Windows.Microsoft.com/en-us/Windows7/update-a-driver-for-hardware-that-isn ' t-work correctly

    If the problem persists, then connect another monitor to the computer and check if it works.

    I hope this helps!

    Halima S - Microsoft technical support.

  • My computer is running "Windows XP stop critique.wav" sound every 10 seconds.

    My computer is running "Windows XP stop critique.wav" sound every 10 seconds for the last 8 days.  Window XP SP3.  I spent 1-1/2 hours will dell workstation support and 1-1/2 hours with my computer work (shot as a favor to my personal computer) and they find nothing, MacAfee installed, updated several full scan virus.  A ran Malwarebyte s multiple crawls - nothing.  Kaspersky lab - nothing.  Computer work ran a vrius start-up detector and nothing.  No error log is generated.  And two technicians stop various folders in the Task Manager and NOTHING he did stop.  I was sent a disc of reinstalling XP SP3 Dell and I did a repair XP complete with no fix. Technician COMPUTER checked a bunch of stuff and thought it was "related to a driver."  Regardless of what is the cause, how do I find the problem and fix it.   Thank you

    @GarySibley:

    Thanks for the comments, and I'm happy that you found.  Although I'm not surprised that an msiInstaller error could have caused a "critical stop" but I never thought that he would deliver the error never seconds.

    @JudsonWelcher:

    I suggest you also check your event viewer to find errors msiinstaller.  I've seen other posts where a sound "critical stop" appears to be linked to these errors (but like I said above, not continuous repetitions of the error).

    There is no easy way that I know to track this sort of thing.  Before you start the method of 'Clean boot' or start using the process monitor, open the sound control panel applet and scroll down to check that Windows XP stop critique.wav has not been assigned to certain events in addition (or instead of) a real stop critical Windows.

    Help with Process Monitor, go here--> http://forum.sysinternals.com/process-monitor_forum19.html

    To check your Java installation, go to http://java.com/en/download/testjava.jsp

  • When using Sky go and try to watch movies or programs how do I get to run continuously without interruption and catch every few seconds.

    Go to sky

    When using Sky go and try to watch movies or programs how do I get to run continuously without interruption and catch every few seconds.

    The usual cause of this is that your broadband connection is not fast enough or you have multiple computers, try to use it at the same time.

    This allows to check your speed broadband http://www.bbc.co.uk/iplayer/diagnostics#results

    If the broadband speed does not seem to be the problem, please contact Sky

    http://helpforum.sky.com/T5/using-Sky-go/BD-p/skygo_using

  • Create jobs that runs a powercli script every day at 20:00

    Hi all

    I'm looking for a way to add a powercli script to cron or schduler so that it runs every day at 20:00 say... I found average windows wrt link below

    http://social.msdn.Microsoft.com/forums/SharePoint/en-us/e63d0776-b4aa-4ab6-885c-a41fd0c83a7c/create-job-that-runs-a-PowerShell-script-every-day?Forum=sharepointgeneralprevious

    Is there better way that this can be done for powercli as well?

    Thank you

    AFAIK, except if you have a few programming specifialised run SW, Windows Scheduler did a good job.

    BTW, Alan has also made a post on this, see running a scheduled task PowerCLI

Maybe you are looking for