Latest News

the latest news from our team

Sample script to provide a pop-up menu requesting a user’s ID and password

;*******************************************
;* Set the Title and Prompt Message *
;*******************************************
LET HEADER = “User Name”
LET PROMPT = “Please enter Your User Name: ”
;
;*******************************************
;* Display the prompt *
;* Place the data entered in USERID *
;*******************************************
ACCEPT USERID
;
;*******************************************
;* Set the Title and Prompt Message *
;*******************************************
LET HEADER = “Password”
LET PROMPT = “Please enter Your Password: ”
;
;*******************************************
;* Display the prompt, Accept the data into*
;* the variable PASSWORD, display “*” in *
;* place of the data entered *
;*******************************************
ACCEPT PASSWORD NOECHO
;
;*******************************************
;* Send a Carriage Return *
;*******************************************
KBSPEC HP_RETRNKEY
;
;*******************************************
;* Wait for the String <CTRL> Q (DC1) *
;*******************************************
WAITS “^Q”
;
;*******************************************
;* Append the string “hello “, the variable*
;* USERID and the String “.MINISOFT^M” the *
;* ^M will send a <CTRL>M(Carriage Return) *
;* Send the append data to the Host *
;*******************************************
TRANSMIT “hello ” & USERID & “.MINISOFT^m”
;
;*******************************************
;* Wait for the String <CTRL> Q (DC1) *
;*******************************************
WAITS “^Q”
;
;*******************************************
;* Sent the data that is stored in PASSWORD*
;* The SEND appends a Carriage Return after*
;* the variable’s data *
SEND PASSWORD
END

Leave a Reply

Your email address will not be published. Required fields are marked *