Author Topic: Auto Send on program load  (Read 8393 times)

SteveyD

  • Newbie
  • *
  • Posts: 24
Auto Send on program load
« on: December 20, 2012, 06:20:49 am »
Jan

Is there a command that will allow the TinyRds.exe program to update the Text Source file when the program starts up?

Something like "C:\TinyRDS\TinyRDS.exe" -C:\TinyRDS\rds.txt


Jan

  • Hero Member
  • *****
  • Posts: 1139
Re: Auto Send on program load
« Reply #1 on: December 20, 2012, 09:10:44 am »
There's no option of that kind as the program is expected to run continuously.

A solution exists with the same effect by rewriting the configuration file before start-up. That file is usually placed in C:\Documents and Settings\[user]\Local Settings\Application Data\TinyRDS\. A simple batch file can rewrite it (copy) by one of prepared configuration file and then run the app.

SteveyD

  • Newbie
  • *
  • Posts: 24
Re: Auto Send on program load
« Reply #2 on: December 21, 2012, 01:38:44 am »
Jan

Is it the TinyRDS configuration file that needs to be edited  or will changing the file identified in "Text Sources" read from File work as well?


Jan

  • Hero Member
  • *****
  • Posts: 1139
Re: Auto Send on program load
« Reply #3 on: December 21, 2012, 09:43:51 am »
There are two different source files, one for dynamic PS and one for RT. Manual change can be made in the tinyrds.rds configuration file. This way a set of different configuration files can be prepared. Copying one of them into tinyrds.rds will select the configuration desired. If it makes the things easier, the configuration file may be selectable by command line option in next version.

Code: [Select]
...
[DPS1]
...
FromFile=0
SendOnChange=1
SourceFile=C:\dps.txt
...
[Radiotext]
...
FromFile=0
SendOnChange=1
SourceFile=C:\rt.txt
...