home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Dr. CD ROM (Annual Premium Edition)
/
premium.zip
/
premium
/
WINUTIL2
/
WBT31C.ZIP
/
SOL.WB$
< prev
next >
Wrap
Text File
|
1992-02-26
|
886b
|
32 lines
; * SOLITARE.WBT *
MinutesToPlay = AskLine("Solitaire", "How many minutes do you want to play?", "")
If WinExist("Solitaire") == @TRUE Then Goto activate
RunZoom("sol.exe", "")
Goto loaded
:activate
WinActivate("Solitaire")
WinZoom("Solitaire")
:loaded
SendKey("!GC{RIGHT}{SP}~")
WinTitle("Solitaire", "Solitaire (")
SecondsToPlay = MinutesToPlay * 60
SecondsAlreadyPlayed = 0
:moretime
SecondsRemaining = SecondsToPlay - SecondsAlreadyPlayed
If WinExist("Solitaire (") == @FALSE Then Exit
WinTitle("Solitaire (", "Solitaire (%SecondsRemaining% seconds left)")
Delay(10)
SecondsAlreadyPlayed = SecondsAlreadyPlayed + 10
If SecondsAlreadyPlayed < SecondsToPlay Then Goto moretime
Beep
:TryAgain
WinClose("Solitaire (")
If WinExist("Solitaire (") == @TRUE Then Goto TryAgain ; Mouse might be down
Message("Solitaire's Over", "Get back to work!")
Exit