Hello all, i struggled years in trying to generate an executable version of my PEP javascript control program - originally created for TSU9600 - which can run on its own on a PC.
Now, thanks to IA, i got the answer ... and it is working fine! You will need of course to have PEP 2.0 installed in your PC, and you have to modify it with msf! and app! files (you can find in this forum somewhere) so to make tcpsockets working in simulator mode.
Once you have done this, just run the simulator from PEP for your .xcf configuration. Keeping simulator open go to the folder: C:\Users\AppData\Local\Temp\PEP2Data\
Here, while Simulator is running, PEP 2.0 saves a compiled version of your configuration, named ConfigEdit.bin. Copy it to another folder, because when you will kill the simulator, it will delete this temporary file.
Once you have the .bin file, you have to create a .bat file which will start directly it. Here below an example:
@echo off
setlocal enabledelayedexpansion
:: 1. LOCATE DESKTOP FOLDER
for /f "tokens=2*" %%a in ('reg query "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v Desktop') do set "DESKTOP_DIR=%%b"
for /f "delims=" %%i in ('echo %DESKTOP_DIR%') do set "DESKTOP_REAL=%%i"
:: 2. PATHS DEFINITIONS FOR YOUR PC AND FOLDERS (ADJUST ACCORDIG YOUR PC FILES LOCATION, THIS ONES CONSIDER CONFIGEDIT.BIN IS LOCATED IN DESKTOP)
set "PRONTO_DIR=C:\Program Files (x86)\Philips\ProntoEdit Professional 2"
set "MSF_EXE=%PRONTO_DIR%\Simulator\msf.exe"
set "SAFE_BIN=%DESKTOP_REAL%\ProntoCache Editor\ConfigEdit.bin"
:: 3. CHECK .BIN FILE EXISTS
if not exist "%SAFE_BIN%" (
echo ERRORE: Non ho trovato il file ConfigEdit.bin dentro la cartella 'ProntoCache' sul Desktop.
echo Assicurati di aver creato la cartella e inserito il file come da istruzioni.
pause
exit /b
)
:: 4. CHANGE WORKING FOLDER
cd /d "%PRONTO_DIR%\Simulator"
:: 5. LAUNCH OF YOUR EXECUTABLE CONFIGURATION, THIS IS THE MOST IMPORTANT PART AS INCLUDES ALL OPTIONS NEEDED BY MSF.EXE TO START CORRECTLY SIMULATOR OUTSIDE PEP 2.0
echo File di configurazione trovato in ProntoCache.
echo Avvio del simulatore indipendente in corso...
start "" "%MSF_EXE%" /G:"%PRONTO_DIR%\Simulator\appli-win32" /P:TSU9600 /U:"%PRONTO_DIR%\Simulator\Simulator's" "%SAFE_BIN%" /D:initialcalibration /D:tcpsocket /D:extender /D:contentserver /E:prontoscript /E:irhandling /E:alp /D:dispatcher /D:dns /D:ssdpdiscovery /D:pm /D:tcpsocket /D:usb /D:wificheck /D:wificontrol /M:fullscreen /M:zoom /M:reset /M:pstoggle /M:combo1 /M:combo2 /M:psconsole
exit /b
With this, it is possible to use a PC to launch directly the pronto configuration, without starting PEP and running simulator inside it - even at startup - and virtually changing it a self starting remmote control. I tested it on windows 11 and works greatly.
Hope this can helps. Use code carefully.
BR
FKB