Script: -- Example by Alan Pabst, Heizer Software¬--on windowEvent wdID,wdName,objNo,objName,objValue¬¬if objValue="Open" then ¬ wsSet wdID,"3","Text", "Warning! If you continue you risk becoming a WindowScript addict. There is no known cure...Do you want to continue?"¬ wsSet wdID,"4","ID", "0"¬ wsSet wdID,"Yes","Visible", "TRUE"¬ wsSet wdID,"Cancel","Visible", "TRUE"¬ ¬ ¬else if objValue="Close" then ¬ wsSet wdID,"Yes","Visible", "TRUE"¬ wsSet wdID,"Cancel","Visible", "TRUE"¬ ¬else if objValue="Suspend" then ¬ ¬else if objValue="Resume" then ¬ ¬else if objValue="CloseBox" then ¬ ¬else if objValue="ZoomBox" then ¬ ¬else if objValue="GrowBox" then ¬ ¬else if objValue="TitleBar" then ¬ ¬end if¬¬--end windowEvent
ItemType: PUSH
Rect: 179,103,251,123
Name: Yes
DefaultItem: TRUE
Script: --on mouseUp wdID,wdName,objNo,objName,objValue¬wsSet wdID,"4","ID", "4648"¬wsSet wdID,"3","Text", "Congratulations! You have taken the first step to becoming a HyperCard guru."¬wsSet wdID,"Yes","Visible", "false"¬wsSet wdID,"Cancel","Visible", "false"¬wsSend wdID,"Alert","DoUpdate"¬wait 150¬wsSend "Alert",0,"close"¬--end mouseUp¬¬
ItemType: PUSH
Rect: 9,103,89,123
Name: Cancel
CancelItem: TRUE
AutoClose: TRUE
ItemType: TEXT
Rect: 57,8,254,88
Text: Warning! If you continue you risk becoming a WindowScript addict. There is no known cure...Do you want to continue?