PDA

View Full Version : How to:Time betwen messages?


hellspawn51
10-16-2002, 12:22 PM
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 .

TJ_Tigger
10-16-2002, 05:35 PM
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.

Derek
10-16-2002, 06:27 PM
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 /ubbthreads/images/icons/frown.gif

TJ_Tigger
10-16-2002, 06:50 PM
That's what I was afraid of. Hopefully the concepts will help however.

Lorne
10-17-2002, 09:50 AM
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).

hellspawn51
10-17-2002, 08:09 PM
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

Lorne
10-18-2002, 09:32 AM
Ah, v4. I must have spotted Tigger's post and forgot you mentioned v3.

HenryAdams
10-18-2002, 10:00 AM
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.