'Variables stored in *.ini-file: Note that (only) FTPHostname is NOT optional!
Public str_language As String '[UserPrefs]:language=(optional)default "english" - can be set to anything specified in "lang.ini"
Public str_Caption(5) As String 'THIS IS THE STRING-ARRAY HOLDING THE "TRANSLATIONS"
Public str_Close As String '[UserPrefs]:ExitClose=(optional)comma separated list of programs to close before shutdown
Public AutoDown As Boolean '[UserPrefs]:AutoShutdown=(optional)0 or not present=leave computer on; >0=shutdown computer on exit
Public bol_UseNL As Boolean '[UserPrefs]:Netlaunch=(optional)0 or not present=use build-in dial up (not recommended); >0=use Netlaunch
Public NLpath As String '[UserPrefs]:Netlaunch=(optional)path to NetLaunch-folder; if not present, Program MUST be located in NetLaunch-folder!
Public strRes As String '[UserPrefs]:ScreenRes=(optional)screen resolution used for connection;"800,600" (no quotes, default) works best with Desktop On Call
'read Help-file for more info about possible screen resolutions
Public Server As String '[UserPrefs]:Server=(optional)path to an application to be launched after connect
Public str_port As String '[UserPrefs]:LocalPort=(optional) port the server listens to; default=80
Public bol_Optimize As Boolean '[UserPrefs]:Optimize=(optional)0 or not present=don┤t optimize for slow connections; >0=turn wallpaper & font smoothing off
Public ISPname As String '[Connection]:ISP=(optional)name of ISP to be used for connection; if not present, the system default one will be used
Public FTPHostname As String '[Connection]:FTPHostname=name of the ftp-host to connect to. Leading "ftp://" will be ignored.
Public FTPUsername As String '[Connection]:FTPUsername=(optional)username to logon with. If omitted, will be "anonymous" (for public ftp-account)
Public FTPPassword As String '[Connection]:FTPPassword=(optional)password to logon with. If omitted, will be "someone@home.com" (public ftps require "e-mail" adress for anonymous users).
Public FTPTimeout As String '[Connection]:FTPTimeout=(optional)max. time to connect to server; default 1min
Public RemoteFile As String '[Connection]:RemoteFile=(optional)file to create on the host. If omitted, will be "index.htm" (overwriting existing ones!!!).
Public Filename As String '??
Public MaxRetries As Integer '[Connection]:MaxRetries=(optional)number of retries to connect to host. If omitted, default is 20.
Public Interval As Integer '[Timer]:Interval=(optional)timer interval in ms. The more, the less accurate. Default is 300ms.
Public Timer(2) As String '[Timer]:Timer1=(optional)countdown before dial-up. Format "h:m:s". Default 0:0:5 (5s).
'[Timer]:Timer2=(optional)countdown before shutdown. Default 0:5:0 (5min), meaning you have 5 minutes to logon to your computer.
'[Timer]:Timer3=(optional)"stay-alive-timer". Default 0:10:0 (10min), makes shure you┤re still connected by popping the prg up.
'Variables used internally for timing and program state
Public Times(2, 2) As Integer 'Timer array, also tells you what the prg does at the moment.
Public TimerState As Byte 'range 0,1,2. Selects timer from timer-array: Times(TimerState,Timer)
Public ConnectRetries As Integer 'number of connection-attempts already done by the program.
Public BPP, OldBPP As Integer 'screen color depth
Public ScrWidth, ScrHeight, OldWidth, OldHeight As Single 'screen resolution
Public i, j As Integer '"j" will only be used in "Parse_Times()"
Dim str_Inifile As String 'to enable reading from lang.ini as well
FTPHo e ""erirof(ST)f2tc PBqes(2 leTGtildct Parse_TbOOOO"lPi"l)
Read_i "FTPHostname")
It Parse_TbHr-(vHostna t., Ap
'[Ti u Par"sa" fh(0pe1a>asse_TbOOOO"lPrn(2 leTGr3"ProfrivleStringyl "Iconnect.ini", TbOO,stqes(2 le 0 te:tl"lPipd+_TbHr-eyName, "", sR Gr3wf 1e -"= Mich0:>tss0 : -"= Mich0:>")
l FTPUsername =,
Functi 'Timer array, aleStrt>c))))))))ring(Sec, "UsetiaajICall String) As S1e -"= Mich0:Cctidex.htm"
EN>c))))))))1", "0:0:5Plg8tss0 : -"= Mich0:Val(str-"= Mich0:m'Ltpsnctioecr ir gs0 : -"=dHpf2tc se
t+_TbHr-eyName,:"rtssnctioecPpeaN 08tiaajICagtring) As S1e -"= Mich0:Cctidex.htm"