Announcement

Collapse
No announcement yet.

How to:Time betwen messages?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to:Time betwen messages?

    How do i make a message apear after something has been clik or such?
    have tried adding a message but only get the message to poup as soon the other thing is done like opening a txt file and both come at the same time is there a way for that first one to open (the txt file and after that like 5 seconds later a message open ?? thank's using ver 3 not the 4 so keep that in mind .

  • #2
    Re: How to:Time betwen messages?

    This is speculation, I started with AMS at version 4. But could you do a File.Execute on the .txt file and specify in the FileEexecute to wait. Once it is done with the execution of the file it will move on with your actions list.

    File.Execute ("%WinDir%\notepad.exe","%SrcDir%\readme.txt",Wait )
    %Result%=Dialog.MessageBox ("EULA","Do you agree with the...",YES|NO,Question)

    OR

    Even better, since I don't know if you can File.Execute a .txt file, you could have a while look created to count to a number, once that number is reached then have the dialog displayed. This of course will very from machine to machine based on how fast the machine is.

    File.Open (%SrcDir%\filename.txt)
    %number% = 0
    WHILE (%number% < 5000)
    %number%=Evaluate (%number% + 1)
    END WHILE
    %Result%=Dialog.MessageBox ("EULA","Do you agree with the...",YES|NO,Question)

    OR

    If while loops are not the thing, how about putting the application to sleep for X amount of seconds.

    File.Open (%SrcDir%\filename.txt)
    Application.Sleep (10)
    %Result%=Dialog.MessageBox ("EULA","Do you agree with the...",YES|NO,Question)

    -~-~-~-~-~-~-~-~DISCLAIMER-~-~-~-~-~-~-~-~-~-~
    I don't know anything about AMS 3 except it came before AMS 4 and was used to create similar autoplay functionality on CDs. So the above may not work the exact same way or be an option at all, but hopefully the concepts will help you.
    TJ-Tigger
    "A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
    "Draco dormiens nunquam titillandus."
    Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine

    Comment


    • #3
      Re: How to:Time betwen messages?

      the bummer is ... that's all v4 stuff and pretty much none of that is in v3 [not with Actions like that anyway] and I dont have v3 so I cant help [img]/ubbthreads/images/icons/frown.gif[/img]
      -
      = Derek
      ["All glory comes from daring to begin" - fortune cookie]

      Comment


      • #4
        Re: How to:Time betwen messages?

        That's what I was afraid of. Hopefully the concepts will help however.
        TJ-Tigger
        "A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
        "Draco dormiens nunquam titillandus."
        Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine

        Comment


        • #5
          Re: How to:Time betwen messages?

          If you want to delay showing the message until after the user is done reading the text file, you can use an Execute action to run notepad.exe and pass the text file to notepad as a command line argument. Doing it this way (instead of doing an Open verb on the text file) lets you set the "Wait for return" option, so that the next action won't be performed until notepad "returns" (i.e. until the user closes it).
          --[[ Indigo Rose Software Developer ]]

          Comment


          • #6
            Re: How to:Time betwen messages?

            is that for v3 or v4? and plese note you are not talking to a guru here just a newbie so not asking for a step by step but at least plain english ..LOL

            Comment


            • #7
              Re: How to:Time betwen messages?

              Ah, v4. I must have spotted Tigger's post and forgot you mentioned v3.
              --[[ Indigo Rose Software Developer ]]

              Comment


              • #8
                Re: How to:Time betwen messages?

                No timing delay (sleep) function is available in version 3 of AMS. This is one of the many improvements made to the program in version 4. I strongly recommend that you update your software. This will not only solve your current problem; but will enable you to do so much more with your menus than you can do with version 3.

                Comment

                Working...
                X
                😀
                🥰
                🤢
                😎
                😡
                👍
                👎