Is there a way of AMS generating a random number?
eg I want to create a list of 'Tips for the day', then randomly select from the list (either in a .INI file or in the registry).
If not random, i'd even be happy with a counter, to store an incrementing value every time the CD is run. Then recall this value and pick the corresponding tip.
The only way I can see at the moment is a quick VB program to write the random seed, and run this whenever the CD starts.
[Hint: to create a checkbox, create two graphics - one with an empty square and one with a 'check'. Standard graphic is the empty box, then show the 'checked' box on a mouse click event - at the same time set a variable '%checked%'. Then using a bit of boolean, you can return to unchecked next time the box is clicked. ie to disable my 'Tip of the day' once I've got it working
]
eg I want to create a list of 'Tips for the day', then randomly select from the list (either in a .INI file or in the registry).
If not random, i'd even be happy with a counter, to store an incrementing value every time the CD is run. Then recall this value and pick the corresponding tip.
The only way I can see at the moment is a quick VB program to write the random seed, and run this whenever the CD starts.
[Hint: to create a checkbox, create two graphics - one with an empty square and one with a 'check'. Standard graphic is the empty box, then show the 'checked' box on a mouse click event - at the same time set a variable '%checked%'. Then using a bit of boolean, you can return to unchecked next time the box is clicked. ie to disable my 'Tip of the day' once I've got it working

Comment