LTEXT 13, 8, 224, 24, "This part of the demonstration will replay a file that contains VIDTEX escape sequences with RLE graphics. The file was captured during a session while online with Compuserve."
LTEXT 13, 32, 227, 17, "The graphics can be copied to the clipboard and pasted into another Windows application."
DEFCANCELBUTTON 104, 53, 50, 15, "&OK"
DEND
dtime = 20
gosub delay
open("VIDTEX.wsf","",1) ;opens the session file setup with VT102 terminal type selected
len = 2
DELOBJECT(0,0,0) ;clears the graphic
show(8)
key1 = 0
key = 38
len = 1
sendspeckey(1,0,asc("F")) ; 1 == alt key, selects the FILE menu
gosub pause
sendspeckey(0,0,asc("Y")) ; selects the Playback menu item
gosub pause
sendspeckey(0,0,asc("V")) ; types VT102.EMU in the edit box
sendspeckey(0,0,asc("I"))
sendspeckey(0,0,asc("D"))
sendspeckey(0,0,asc("T"))
sendspeckey(0,0,asc("E"))
sendspeckey(0,0,asc("X"))
sendspeckey(0,0,110)
sendspeckey(0,0,asc("E"))
sendspeckey(0,0,asc("M"))
sendspeckey(0,0,asc("U"))
gosub pause
sendspeckey(0,0,13) ; send carrage return
HALT
pause:
i = TIME?+len
WHILE(TIME? <i)
WEND
RETURN
delay: ;automatically destroys the dialog box by
i = TIME? + dtime ;sending a carrage return after a timeout
j = 255 ;if the CONTINUE button is not selected beforehand