"Count Up" Timer (& Need to Display Different Time Denomination)

This is a tough one, so any help or suggestions with just
where to start looking would be fantastic!
I am an academic researcher using authorware for my
dissertation. In my experiment, I need to make my participants
experience a time delay. I want to display something on the screen
that shows the passage of time (i.e., "counts up") in days, even
though they are experiencing it in seconds. For example, while the
participant is experiencing the delay, I want to have the screen
display something like, "It has been 2 days since you have
contacted your partner". I would like to have the "2" change to a
"3" after 10 seconds, and then to a "4" after another 10 seconds,
etc. Eventually after several days have passed, they will move onto
a new screen. I have already used systemseconds to put a time delay
into a different authorware piece (i.e., so that participants could
only access something after a certain amount of time), so I know
how to do that. However, I am not even sure where to start with
displaying the "count up", particularly displaying it in such a way
that it doesn't actually show the number of seconds that have
passed, but a corresponding amount of time.
If this doesn't make sense or needs clarification please let
me know. I appreciate any and all advice!!
Thanks!!
Tamara

You can make a counter for 1/10ths of a second pretty easy.
Calc icon
StartTimer := SystemSeconds
DisplayIcon -
It's been {INT((SystemSeconds - StartTimer) / 10)} days since
you contacted
your partner.
Then you build an interaction with a time limit response that
triggers after
the amount of time you want. That response will trigger the
movement to the
new page.
Mike
"alleyshea" <[email protected]> wrote in
message
news:g46ged$rli$[email protected]..
> This is a tough one, so any help or suggestions with
just where to start
> looking would be fantastic!
>
> I am an academic researcher using authorware for my
dissertation. In my
> experiment, I need to make my participants experience a
time delay. I
want to
> display something on the screen that shows the passage
of time (i.e.,
"counts
> up") in days, even though they are experiencing it in
seconds. For
example,
> while the participant is experiencing the delay, I want
to have the screen
> display something like, "It has been 2 days since you
have contacted your
> partner". I would like to have the "2" change to a "3"
after 10 seconds,
and
> then to a "4" after another 10 seconds, etc. Eventually
after several
days
> have passed, they will move onto a new screen. I have
already used
> systemseconds to put a time delay into a different
authorware piece (i.e.,
so
> that participants could only access something after a
certain amount of
time),
> so I know how to do that. However, I am not even sure
where to start with
> displaying the "count up", particularly displaying it in
such a way that
it
> doesn't actually show the number of seconds that have
passed, but a
> corresponding amount of time.
>
> If this doesn't make sense or needs clarification please
let me know. I
> appreciate any and all advice!!
>
> Thanks!!
>
> Tamara
>

Similar Messages

  • Need to display different colors for Actuals and forecasting values in WAD

    Hi Gurus,
    My requirement in the report is, I need to display different colors for particular values like Actuals(say value type 10) and for forecasting values(say value type 20) , and data will uploaded from flat file.
    Scenario : If I upload the data for March Month, I receive actual values upto March(Jan to March month) and from April to Dec(Forecast values with value type 20),  Every month I will be getting file and similarly for subsequent months, i will get current month actual values and forwarding months forecasting values,
    Now , my requirement is, When ever i execute the Report, Say if i execute for April Month, Upto April( Jan to April for actual values should be displayed in one color) and from May to Dec ( forecast values should be displayed in different color).
    I had tried with following options like exceptions and could not display , as it runs based on key figure values where as my requiremnet is based on the CALMONTH , i need to show different colors for both actual and forecast values.
    Kindly, help me out from this,
    Thanks

    Hi,
    it is not necesseary that you need to do that in WAD , you can do the same in BEx platform, Since WAD is build above the bex reports. so automatially any changes done in Report will be replicated in WAD
    Go for Exceptions in Bex. Give some range for Actuals and Forcasting at the creation of the exception.
    if you do those changes in BEX automatically it will replicate in the WAD.
    for more information please read this link
    http://help.sap.com/saphelp_nw04/helpdata/en/68/253239bd1fa74ee10000000a114084/content.htm
    hope this will solve your problem.
    Santosh

  • Displaying different patterns on a label

    Hi,
    I want to display different patterns on a label component , like label with mesh or lable with lines passing diagonally. Is there any way to draw these patterns on a label
    Thanks

    We dont want to draw
    anything on label. we just need to display different
    desings on labels
    ...and the way to display different designs on the label is to draw on it. However, you should not override the paint method, you should override the paintComponent method (assuming that you are using Swing rather than AWT, which seems to be a fair assumption since you are posting this in the Swing forum).
    Here is a very simple example of one way of doing this. See how the paintComponent method is overridden to draw horizontal lines on the label. Maybe this can give you some ideas.
    import java.awt.Graphics;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.SwingUtilities;
    public class HorizontalLinesLabel extends JLabel {
        private static int GRID_SPACE = 7;
        public HorizontalLinesLabel(String s) {
            super(s);
        protected void paintComponent(Graphics g) {
            super.paintComponent(g);
            int h = getHeight();
            int w = getWidth();
            for( int y = GRID_SPACE; y < h; y += GRID_SPACE ) {
                g.drawLine(0, y, w, y);
    }

  • How to display different parts of an image

    hi,
    I need to display different parts of an image at specific situations.
    for example, a dice. there is only one image which includes different sides of the dice. and I wanna add
    to my panel one side if one comes, two side if two comes... I mean if one comes then we will display
    from 10 px to 80 px width and from 10 px to 80 px height of the dice image.
    is there any way to obtain this in java?
    thanks...

    import java.awt.*;
    import java.awt.font.*;
    import java.awt.geom.*;
    import java.awt.image.BufferedImage;
    import java.util.Random;
    import javax.swing.*;
    public class ImageClipping extends JPanel {
        BufferedImage image;
        Rectangle clip;
        final int ROWS = 3;
        final int COLS = 3;
        public ImageClipping() {
            // Make an image we can clip.
            Dimension d = getPreferredSize();
            int type = BufferedImage.TYPE_INT_RGB;
            image = new BufferedImage(d.width, d.height, type);
            Graphics2D g2 = image.createGraphics();
            g2.setBackground(getBackground());
            g2.clearRect(0, 0, d.width, d.height);
            Font font = g2.getFont().deriveFont(36f);
            g2.setFont(font);
            FontRenderContext frc = g2.getFontRenderContext();
            LineMetrics lm = font.getLineMetrics("0", frc);
            float sh = lm.getAscent() + lm.getDescent();
            int xInc = d.width/COLS;
            int yInc = d.height/ROWS;
            for(int j = 0; j < ROWS; j++) {
                for(int k = 0; k < COLS; k++) {
                    String s = String.valueOf(j*COLS + k+1);
                    float sw = (float)font.getStringBounds(s, frc).getWidth();
                    float sx = k*xInc + (xInc - sw)/2;
                    float sy = j*yInc + (yInc + sh)/2 - lm.getDescent();
                    g2.setPaint(Color.red);
                    g2.drawString(s, sx, sy);
                    g2.setPaint(Color.blue);
                    g2.drawRect(k*xInc, j*yInc, xInc-1, yInc-1);
            g2.dispose();
            clip = new Rectangle(xInc, yInc);
            // Inspect image.
            ImageIcon icon = new ImageIcon(image);
            JOptionPane.showMessageDialog(null, icon, "", -1);
        protected void paintComponent(Graphics g) {
            super.paintComponent(g);
            Graphics2D g2 = (Graphics2D)g;
            g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
                                RenderingHints.VALUE_ANTIALIAS_ON);
            Shape origClip = g2.getClip();
            //g2.setPaint(Color.red);
            //g2.draw(clip);
            // Draw clipped image at:
            int x = 100;
            int y = 100;
            // Mark location.
            g2.setPaint(Color.red);
            g2.fill(new Ellipse2D.Double(x-2,y-2,4,4));
            // Position the image.
            g2.translate(x-clip.x, y-clip.y);
            // Clip it and draw.
            g2.setClip(clip);
            g2.drawImage(image,0,0,this);
            // Reverse the changes to the graphics context.
            g2.setClip(origClip);
            g2.translate(clip.x-x, clip.y-y);
        public Dimension getPreferredSize() {
            return new Dimension(400,400);
        public static void main(String[] args) {
            ImageClipping test = new ImageClipping();
            JFrame f = new JFrame();
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.add(test);
            f.pack();
            f.setLocation(50,50);
            f.setVisible(true);
            test.start();
        private void start() {
            Thread thread = new Thread(runner);
            thread.setPriority(Thread.NORM_PRIORITY);
            thread.start();
        private Runnable runner = new Runnable() {
            Random seed = new Random();
            Dimension d = getPreferredSize();
            int xInc = d.width/COLS;
            int yInc = d.height/ROWS;
            public void run() {
                do {
                    try {
                        Thread.sleep(3000);
                    } catch(InterruptedException e) {
                        break;
                    int row = seed.nextInt(ROWS);
                    int col = seed.nextInt(COLS);
                    int x = col*xInc;
                    int y = row*yInc;
                    int n = row*COLS + col+1;
                    System.out.printf("row = %d  col = %d  n = %d%n",
                                       row, col, n);
                    clip.setLocation(x,y);
                    repaint();
                } while(isVisible());
    }

  • How to display different Time Statement forms in ITS service PZ04

    Hi all,
    I am working on a underlyinge R/3 4.7 system and are working with standalone ITS and ESS 50.4. I am posting this question to find out if any of you has experience with my problem.
    The business wishes to use the ITS transation PZ04 standard and wish to be able to display different Time Statement forms in the transaction through customized variants for the report(RPTEDT00) that the PZ04 transaction executes. In the IMG it is posted that one variant has to be created called HRESS_TEDT00 and this works, but restricts the PZ04 transaction to always be called with this variant and therebye the same Time Statement form every time.
    I then by debugging found that the underlying ABAP code processed from SAP standard has a variable VARIANT that is hardcode to = HRESS_TEDT00.
    The question is: Is there anyway to setup the PZ04 transaction so that it can be dynamic decided which variant should be used, f.ex. from persons subarea from infotype 0001?
    Looking forward to here if anybody can help.
    Regards,
    Allan Brauer

    hi allan,
    cud u plz help me how to sort out this problem actually in mu company the same scenario is here need to be display pe51 form instead of standard hrforms.....
    plz help me how will i replace this "hrforms with pe51"..

  • Imported swfs display different every time

    Hello -
    I have tried importing swfs, and each time it displays different when published. The first time, it resized and could be seen completely within the window. The second time, it did not resize so only the top left of the image could be seen. The third, time it sort of resized, but is still cut off on the bottom. I inserted the same swf file the same way each time, so I'm not sure what affects the way it displays when published. I'm using the trial version of Presenter version 7.0.7 Build 7746. The swfs were created in Captivate 5.0, and I'm using Office/PowerPoint 2010. Below are examples of what each looks like after the publish. Does anyone know how I can control how the swf will display once published?
    Thanks!
    Katherine

    Hello -
    I think it has to do with resizing the swf once it is imported. I resized it first by widening it so it went the entire width of the page - the second time I believe I did the same thing and got the larger image. Then I tried various ways of resizing and also not moving or resizing at all, and got these different results. It is not consistent, the same way of resizing did not result in the same output. Is it not possible to resize the imported swf - for example, resize so it takes up the entire slide? Below is a link to download the swf I'm using.
    http://mylearn.documentum.com/curriculumdevelopment/slide4.zip
    Thanks!
    Katherine

  • So I have been using my iPad for a few months now and I recently noticed that the time display next to the playlist name in the music  app that is supposed to display the total song count and time of a playlist is way off. I have a 25 song playlist that 2

    So I have been using my iPad for a few months now and I recently noticed that the time display next to the playlist name in the music  app that is supposed to display the total song count and time of a playlist is way off. I have a 25 song playlist that is around 2 hours on my computer appears as 2003 minutes on my iPad.  It's a smart playlist limited to 25 songs if that makes any difference. Is this happening to anyone else? Any help would be appreciated!

    Greetings,
    First make an iCal backup, File > Export > Archive.
    Remove the following to the trash and restart your computer:
    Home > Library > Caches
    Home > Library > Calendars > Calendar Cache, Cache, Cache 1, 2, 3, etc. (Do not remove Sync Cache or Theme Cache)
    Home > Library > Preferences > com.apple.ical (There may be more than one of these. Remove them all.)
    __NOTE: Removing these files will remove any shared (CalDAV) calendars you may have access to. You will have to re-add those calendars to iCal > Preferences > Accounts.
    Once the computer is back up and running open iCal and test.
    Hope that helps.

  • ICals on OS X & iOS display different time for same event

    I am in UTC+8 time zone. My boss is in UTC-5 time zone. I have set up sync service on my MBA and iPhone iCals with my company's MS Exchange Server.
    I have a weekly meeting invitation from my boss, my MBA iCal displays this meeting on 10:30pm which is wrong, while my iPhone and MS Server displays 9:30pm which is corret - the meeting takes places on 9:30pm my time.
    All my other iCal events are fine on both devices, only this weekly event displays different time. I have taken with MBA and iPhone to travel around the world over the past half year and switched time zones on them, but they are all set to adjust time zones automatically, and they are with most up-to-date system. Why does MBA iCal displays wrong time? Can I adjust it? This problem exisits on Lion and now also on M Lion.
    Thanks for everyone's attention and help in advance!

    Try using floating time zones. It helped for me.

  • I need a count "UP" timer for a client.

    I have kind of a strange request, but it's from a strange client so it's not surprising.
    The client needs a counting UP timer, not a count DOWN timer, so please don't refer me to that widget, I already used it.
    The original countdown timer has expired, so now she wants a timer that will count the days, hours, minutes & seconds SINCE that timer expired.
    Website splash page: http://www.theapocalypse.ca so you can see what I mean.
    Is it possible to "crack" the existing widget and just "reverse" it, or is there something I can build in edge animate that will work?
    I know, WEIRD, but hey, a paycheque is a paycheque.
    Thanks guys!

    You may try this : http://www.tickcounter.com/countup/widget
    Thanks,
    Sanjit

  • Need to display/update last date/time of an accessed record

    Hi All,
    I'm using ADF BC and I have a use case where I need to display the last date/time when a user access a record in a view. I have a user table that I access thru a view object where I can store the date/time of the fetched record. A viewLink from that view object gives me the detail information in that record.
    I generated a ViewRowImpl class and added this to the method that get the time and date (DtHeureDernAcces is a private variable in defined in the class):
    /**Gets the attribute value for the calculated attribute DtHreDernAcces
    public Date getDtHreDernAcces()
    if (DtHeureDernAcc==null)
    DtHeureDernAcc=(Date) getAttributeInternal(DTHREDERNACCES);
    setDtHreDernAcces(new Date(new java.sql.Timestamp(System.currentTimeMillis())));
    getApplicationModule().getTransaction().commit();
    return DtHeureDernAcc;
    This works fine until the user refresh the page, in this case the ViewObjImpl is recreated and DtHeureDernAcc is then null. So the date/time is updated after each refresh.
    How can I get around this problem ?

    The complication here is that &P7_DATE_SHIPPED. and &P7_DATE_ORDERED. are session-state variables - they don't actually get updated until the page submit completes, which is happening AFTER the dynamic action.
    JavaScript might provide an alternative method that will pick up the current values of those fields. You might try something like:
    HTML Header
    <script language="JavaScript" type="text/javascript">
    function check_hours(pThis){
      var v_shipdt = $v("P7_DATE_SHIPPED");
      var v_ordrdt = $v("P7_DATE_ORDERED");
      if(v_shipdt > v_ordrdt){
        alert("Shipping Date is before Order Date!");
      return true;
    </script>Put this in the HTML Form Elements Attributes of your page item:
    onchange="check_hours(this)"This is just pseudocode, but it may help get you started. Dates in JavaScript are a little tricky to deal with.

  • HT4666 I need to display a timecode window of selected sections of edited     FCPX project. I need to be able to start at 00:00:00 and time to the end of the selection. Can I do this with the timecode generator in FCPX ? Thanks for helping.

    I need to display a timecode of selected sections in edited FCPX timeline. I need the timecode display to start at 00:00:00 and time to the end of the selection. Can I do this using the timecode generator in FCPX ?
    Thanks

    FxFactory Pro: Timecode Plugin
    Generates a timecode based on the current playback position relative to the duration of the clip.
    Full Disclosure:  I work for Noise Industries.
    I may receive some form of compensation, financial or otherwise, from my recommendation or link.

  • Can I display different tables at the same time?

    Hello all,
    This is probably a newbie question but is it possible to display different tables at the same time? I'm using SQL Developer 1.5.5 and I seem to be unable to display more than one table at the same time, whenever i chose to open another table, the old table disappears. In other words, the table display just switches to your new choice in the table list navigator. Any ideas anyone?
    Regards,
    wf

    Menu item "Tools -> Preferences -> Database -> ObjectViewer Parameters"; make sure "Automatically Freeze Object Viewer Windows" is checked.
    HTH.
    Ed. H.

  • Count up timer needed please.

    hi there
    I have seen the countdown timer sample in this forum, i am just wondering if there is a count up timer, and the start and stop are controlled by its using class, some thing like a game, and when game starts, the timer starts, when the game ends, the timer ends as well. thank you.

    Here is a counter based on the system clock:
    import java.util.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class CountUpLabel extends JLabel{
         javax.swing.Timer timer;
         long startTime, count;
         public CountUpLabel() {
              super(" ", SwingConstants.CENTER);
              timer = new javax.swing.Timer(500, new ActionListener() { // less than or equal to 1000 (1000, 500, 250,200,100) 
                   public void actionPerformed(ActionEvent event) {
                        if (startTime == -1) {          
                             count = 0;               
                             startTime = System.currentTimeMillis();
                        else {
                             count = System.currentTimeMillis()-startTime;
                        setText(getStringTime(count));
         private static final String getStringTime(long millis) {
              int seconds = (int)(millis/1000);
              int minutes = (int)(seconds/60);
              int hours = (int)(minutes/60);
              minutes -= hours*60;
              seconds -= (hours*3600)+(minutes*60);
              return(((hours<10)?"0"+hours:""+hours)+":"+((minutes<10)?"0"+minutes:""+minutes)+":"+((seconds<10)?"0"+seconds:""+seconds));
         public void start() {
              startTime = -1;
              timer.setInitialDelay(0);
              timer.start();
         public long stop() {
              timer.stop();
              return(count);
         public static void main(String[] args) {
              JFrame frame = new JFrame("Countdown");
              CountUpLabel countUp = new CountUpLabel();
              frame.getContentPane().add(countUp, BorderLayout.CENTER);
              frame.setBounds(200,200,200,100);
              frame.setVisible(true);
              countUp.start();
    And here is a simplest counter :
    import java.util.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class SimpleCountUpLabel extends JLabel{
         javax.swing.Timer timer;
         int count = 0;
         public SimpleCountUpLabel() {
              super(" ", SwingConstants.CENTER);
              timer = new javax.swing.Timer(1000, new ActionListener() {
                   public void actionPerformed(ActionEvent event) {
                        count++;
                        setText(getStringTime(count));
         private static final String getStringTime(int sec) {
              int seconds = sec;
              int minutes = (int)(seconds/60);
              int hours = (int)(minutes/60);
              minutes -= hours*60;
              seconds -= (hours*3600)+(minutes*60);
              return(((hours<10)?"0"+hours:""+hours)+":"+((minutes<10)?"0"+minutes:""+minutes)+":"+((seconds<10)?"0"+seconds:""+seconds));
         public void start() {
              count = 0;
              setText(getStringTime(count));
              timer.setInitialDelay(1000);
              timer.start();
         public long stop() {
              timer.stop();
              return(count);
         public static void main(String[] args) {
              JFrame frame = new JFrame("Countdown");
              SimpleCountUpLabel countUp = new SimpleCountUpLabel();
              frame.getContentPane().add(countUp, BorderLayout.CENTER);
              frame.setBounds(200,200,200,100);
              frame.setVisible(true);
              countUp.start();
    I hope this helps,
    Denis

  • Count down Timer in jsp

    We are developing an Online Examination System. We are using jsp and servlets.
    We need a count down timer which will start as user starts the test. When user refreshes the page during test, timer should continue counting and must not reset the counter. At the end of the test it will submit automatically.
    Does jsp provide built in facility to manage timer?

    Does jsp provide built in facility to manage timer?There is no build in facility to manage timer, but all you have to do is track it at the server end.
    ie - not in javascript.
    Store a timestamp for the user for when they started the test. Either in session, or in a database.
    Then whenever they refresh their page, you look at the current time, the time they started the test and display the appropriate value.
    By all means you can have a javascript countdown on the page, but the authorative time should be on the server.

  • Uninterruptible count down timer!

    Hi
    I'm a newbe in Labview and I have the followning problem: When a event occurs a signal should should "stay high" for at least 30 sec.
    So I need an uninterruptible count down timer! - that is when an event accours (boolean true/false) a count down timer should start! and NOT stop even when the boolean changes!! I have tried different approaches! and I can figure out have to create a count down timer! but NOT one that keeps going when the boolean "changes back"?????  hope you know what I mean?

    SInce you say "for at least 30 sec", the precision does not seem too important and its not worth to spin fast loops.
    You could just grab the current millisecond, then in a leisurly loop check every 500ms or so if the elapsed time exceeeds your timeout.
    You could just set an occurence when the event occurs, then use "wait on occurence" with the desired time wired as timeout. Now just wait until it times out.
    Another possibility would be to use the timeout case of an event structure.
    LabVIEW Champion . Do more with less code and in less time .

Maybe you are looking for

  • Flash player crashes and other issues.

    My wife is having issues with Zynga Bingo and Flashplayer.  Over the past 3 days (starting approx 20 July) she will be able to play for a bit and then it will just lock up on her.  Now it won't run at all, Flashplayer keeps giving an error stating it

  • No signal HELP ASAP

    I've had no signal last 4 days! I got a new sim yesterday from ee because thought my old sim just broke. New sim worked fine last night till this morning and again no signal! Just says not registered on network! But I was making calls last night! Why

  • I record interviews on GarageBand. Is there a way to transfer audio to text?

    I am a writer and conduct telephone interviews, recording them with GarageBand. Is there some software, or a way to transfer the audio I record directly to text?

  • JFrame not responding to the MouseEvents

    hi, In my application Jframe which has a menuBar,this menu consists of various radiobuttons options .Intially when a frame opens it has an same square at a specific position .when one of the options in the mebar is clicked it responds accordingly by

  • Need help to find GPOs with a specific word

    Hi Experts,<o:p></o:p> In my environment, we have 500+ GPOs and I have been asked to find the GPOs with a specific word like "dns". I believe powershell is the better way to find my requirement and I am in KG standard in Powersell :(<o:p></o:p> Thank