Every now and then we need to display a short message, all users have to read it once. So I came up with the following script:

$Counter=1
$Message=readvalue("HKEY_CURRENT_USER\Autom","Test")
if $Message < $counter
shell "notepad.exe"
writevalue("HKEY_CURRENT_USER\Autom","Test","$Counter","REG_DWORD")
endif

It works great. But when the counter becomes greater then 9 it stops.

Can someone help me out?

Thanx, Hans.