Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 8 of 8
  1. #1
    Join Date
    Oct 2002
    Location
    Florida
    Posts
    2

    Star 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. #2
    Join Date
    Sep 2002
    Location
    Sol 3
    Posts
    3,160

    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

  3. #3
    Join Date
    May 2001
    Location
    51.531249 | -0.610962
    Posts
    1,244

    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]

  4. #4
    Join Date
    Sep 2002
    Location
    Sol 3
    Posts
    3,160

    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

  5. #5
    Join Date
    Feb 2001
    Location
    Indigo Rose Software
    Posts
    2,728

    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 ]]

  6. #6
    Join Date
    Oct 2002
    Location
    Florida
    Posts
    2

    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

  7. #7
    Join Date
    Feb 2001
    Location
    Indigo Rose Software
    Posts
    2,728

    Re: How to:Time betwen messages?

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

  8. #8
    Join Date
    Jun 2002
    Location
    Missouri
    Posts
    45

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts