# Enable all script error messages
ErrorLevel ( "warn" )
# -----------------------------------------
# Adjust following variables to your system:
NAVI_SW_WINDOW_TITLE = "Mobile Navigator"
NAVI_SW_PROCESS_NAME = "
navigon.exe"
If ( ProcExists( NAVI_SW_PROCESS_NAME ) = TRUE )
Show( NAVI_SW_WINDOW_TITLE )
Exit
EndIf
# INSTALLDIR must contain: MixSerDrv.dll , mixser_tmc.bin, activatedevice.exe
INSTALLDIR = "\
StorageCard\MixSer"
# MIXSER_PORT must be a free COM port number in your system
# Set the TMC port of your navigation software to this port!
MIXSER_PORT =
6
# COM port name and baudrate of the TMC chip
TMC_PORT = "COM
4:"
TMC_BAUD = 38400
# Optional: Your favorite FM frequency. MixSerDrv will tune to this frequency when MixSerDrv is activated
# Examples: 10520 means 105.2 Mhz; 9440 means 94.4 MHz, etc.
TMC_START_FREQ = 10520
# Optional: In case MixSerDrv does not work properly, try with following lines set to 1
TMC_SKIP_INIT = 0
TMC_NOWAIT_FOR_RESPONSE =
1
# Navigation software executable
NAVI_SW_PATH = "\
StorageCard\NAVIGON1\
navigon.exe"
# If DEBUG is 1 then a log file is written into INSTALLDIR every time when MixSerDrv is activated
DEBUG = 1
# -----------------------------------------
# you should know what you do from here on !!
# MixSerDrv used as a Serial Port Sniffer (deactivates all TMC functionality!)
# GPS_PORT <==> MixSerDrv <==> MIXSER_PORT
# GPS_PORT = "COM
1:"
# GPS_BAUD =
4800
# GPS_SNIFF_MODE = 1
# copy MixSerDrv driver DLL to Windows directory, if not already exists
If ( FileExists("\Windows\MixSerDrv.dll") = FALSE )
Copy( INSTALLDIR & "\MixSerDrv.dll", "\Windows\MixSerDrv.dll", TRUE )
EndIf
# write settings for MixSerDrv to registry
RegWriteString( "HKLM", "\Drivers\MixSer", "FriendlyName", "MixSerDrv" )
RegWriteString( "HKLM", "\Drivers\MixSer", "Dll", "MixSerDrv.dll" )
RegWriteString( "HKLM", "\Drivers\MixSer", "Prefix", "COM" )
RegWriteDWord ( "HKLM", "\Drivers\MixSer", "Index", MIXSER_PORT )
RegWriteString( "HKLM", "\Drivers\MixSer", "InstallPath", INSTALLDIR )
RegWriteString( "HKLM", "\Drivers\MixSer", "TmcPortName", TMC_PORT )
RegWriteDWord ( "HKLM", "\Drivers\MixSer", "TmcBaudRate", TMC_BAUD )
RegWriteDWord ( "HKLM", "\Drivers\MixSer", "TmcStartFreq", TMC_START_FREQ )
RegWriteDWord ( "HKLM", "\Drivers\MixSer", "TmcSkipInit", TMC_SKIP_INIT )
RegWriteDWord ( "HKLM", "\Drivers\MixSer", "TmcNoWaitForResponse", TMC_NOWAIT_FOR_RESPONSE )
RegWriteDWord ( "HKLM", "\Drivers\MixSer", "DebugMode", DEBUG )
RegWriteDWord ( "HKLM", "\Drivers\MixSer", "GpsSniffMode", GPS_SNIFF_MODE )
# activate the new COM port
RunWait ( INSTALLDIR & "\activatedevice.exe", "\Drivers\MixSer" )
# start the navigation software
Run ( NAVI_SW_PATH )
# wait for
Navigon to start up until the STVO disclaimer is shown
# you can lower the timeout if your
Navigon boots up faster than 30sec
Sleep( 30000 )
# press the "OK" button of
Navigon STVO disclaimer on a 800x480 screen
MouseClick( 610, 430 )