home *** CD-ROM | disk | FTP | other *** search
- Set @Ground = "Foreground" # Flip screen to show DOS prompt
- #
- #
- Set @Autoground = "ON" # Set automatic ground switching to on
- #
- #
- .MainLoop # This is the main operating loop
- Set @userif = "ON" # Turn user interface on, just in case
- #
- # This SETTRAP will save up to 25 of the last characters to come through
- # the comm port. There is no character count maximum ( set to 0 ).
- #
- SETTRAP @message, 25 , 0 # Tell TTRAP to save comport data
- TTRAP 0:0, " is phoning you", # Trap for the phone message
- #
- if @status not = "1" goto .MainLoop # any event other than the string match
- call parsname # strip out the user name from the data
- if @message = "" set @message = "Someone" # if null then set to general message
- strcat @message," is trying to phone you, would you like to talk to him/her [Y/N]"
- #
- ask @message, @ans # prompt to see if user wants to talk
- if @ans = "Y" or @ans = "y" # chech the users response
- set @userif = "OFF"
- clear # clear the screen
- cursor 10,10 # position in the middle of the screen
- put "TYPE ATTENTION KEY TWICE AFTER EXITING PHONE" # tell them what to do
- wait :02 # wait so they can read it
- tsend cr,"phone ans",cr # tell VMS to answer the phone
- terminal # sit in teminal mode until done
- Set @Ground = "Foreground" # reset the ground to DOS or application
- end
- else # user responded with a 'N'
- Tsend cr,"phone reject",cr # tell VMS to reject the phone call
- Ttrap :05, "%" # Wait for the phone prompt
- Tsend "EXIT",cr # exit phone
- Set @Ground = "Foreground" # reset the ground to DOS or application
- end
- wait :01 IDLE
- goto .MainLoop # start all over
-
-