DDE to Visual Basic
This sample illustrates the use of DDE and Visual Basic to control a variety of Emulator functions. It includes: connection, logon and off, and generic command functions. Contents of DDE_4.BAS ...
Example of script file running a menu to download, copy, or exit
Access here: https://minisoft.com/support/wp-content/uploads/2014/11/script-file-example.pdf
Example of SCREENFIND, SCREENFIELD, and SCREENRECT
; ; Example of SCREENFIND, SCREENFIELD, and SCREENRECT ; LET File1 = “HPSWINFO.PUB.SYS” DISPLAY “^[&a0c0R^[J” SEND “LISTF ” & File1 & ...
Executes command file on HP3000
; ; This shows how to execute a command file on the HP e3000 from a ; script on the PC. ; SEND WAITC 17 SEND “XEQ HPCMDFIL” END
Checks if file exists on HP3000
; ; Checks if file exists on HP e3000. ; LET sVar1 = “UNKNOWN” GOSUB FileTest IF ( sRETURN = 1 ) DISPLAY “File Found^M^J” ELSE DISPLAY “File NOT Found^M^J” ...
Call Host, Log in and Transfer File
; This example calls an HP e3000 and logs in, transfers a file, and logs off. ; If the host does not answer, the user is prompted to retry. LABEL DIAL ; dial a number SEND ATDT15551212 ; set ...
Call Host, Log in and Run Application
; ; This example calls an HP e3000 and logs in and runs an application. ; If the host does not answer, the user is prompted to retry. LABEL DIAL ; dial a number SEND ATDT15551212 ; set timer to ...
Call Host and Log in
# This example calls an HP e3000 and logs in. # If the host does not answer, the user is prompted to retry. LABEL DIAL # dial a number SEND ATDT15551212 # set timer to 40 seconds TIMER 40 # go to ...
Log on to HP9000
; ;This example logs onto a HP9000. ; LABEL SENDBREAK XMITC 13 TIMER 5 ONTIMER SENDBREAK WAITS login: GOTO SENDID LABEL LOGINAGAIN WAITS login: LABEL SENDID SEND doug TIMER 5 ONTIMER LOGINAGAIN ...