home *** CD-ROM | disk | FTP | other *** search
/ The Best of Windows 95.com 1997 April / Win95_04974.iso / docs / 00001 / 00193.exe / _SETUP.1 / Example.mac < prev    next >
Encoding:
Text File  |  1996-09-19  |  381 b   |  12 lines

  1. Sub Main
  2.     Begin Dialog UserDialog 290,77,"Scripting Example"
  3.         Text 10,10,180,15,"Please enter your first name:"
  4.         TextBox 10,28,270,21,.Text
  5.         OKButton 190,56,90,21
  6.     End Dialog
  7.     Dim dlg As UserDialog
  8.  
  9.     Dialog dlg ' show dialog (wait for ok)
  10.     MsgBox("Thanks for using AutoMate Pro, " + dlg.Text$ + " !", 0," Scripting Example") ' Show greeting message.
  11. End Sub
  12.