headerpic
Home News Overview Versions Download
Useful stuff
Deutsche Seiten
Perseus script
COM trouble AOKI with ODBC
Registry script for running two instances of Perseus on different COM ports
The following simple script template can be useful if you want to start two instances of the Perseus software and assign different COM ports to each of them (one for your local hardware, one for monitoring a remote server). Additionally the window positions on the desktop can be specified.
Copy the code into a word processor/text editor and save the file as "run2Perseus.bat" into your Perseus.exe application directory. Then doubleclick the file.
If PERSEUS-CSVUserlistBrowser finds such a file in the Perseus application directory the script is automatically executed when "Open/close PERSEUS application with CSVUserlistBrowser" is ticked under Options/Settings.
The script is suitabe for Windows 7 and up. The registry paths are valid for Perseus software V 4.1a. Skilled users can adapt the keys to their Perseus version. Useless to say that the COM ports should be available on your system (e. g. created by com0com or VSPE).
The usual warning: Please be careful when changing registry values! If you do not understand what is happening here better keep your fingers off.

@echo off
rem Start first Perseus with COM port 12
rem Start first Perseus at window position X 0
rem Start first Perseus at window position Y 0
rem Please set X and Y values carefully within the limits of your desktop size
reg add "HKCU\Software\Microtelecom s.r.l.\perseus\v4.1a" /v VComPort /t REG_DWORD /d 12 /f
reg add "HKCU\Software\Microtelecom s.r.l.\perseus\v4.1a" /v X /t REG_DWORD /d 0 /f
reg add "HKCU\Software\Microtelecom s.r.l.\perseus\v4.1a" /v Y /t REG_DWORD /d 0 /f
start "" "perseus.exe"

rem Additional pause of 3 seconds to ensure that the first Perseus
rem does not take the values intended for the second one.
rem You can experiment with lower or higher timeout values if needed.
timeout /T 3 /nobreak

rem Start second Perseus with COM port 14
rem Start second Perseus at window position X 0
rem Start second Perseus at window position Y 630
rem Please set X and Y values carefully within the limits of your desktop size
reg add "HKCU\Software\Microtelecom s.r.l.\perseus\v4.1a" /v VComPort /t REG_DWORD /d 14 /f
reg add "HKCU\Software\Microtelecom s.r.l.\perseus\v4.1a" /v X /t REG_DWORD /d 0 /f
reg add "HKCU\Software\Microtelecom s.r.l.\perseus\v4.1a" /v Y /t REG_DWORD /d 630 /f
start "" "perseus.exe"

Page hits: 2326 visitors, 2822 robots