APPENDIX C
A Tolken97 Example Translating the RTPSGX
The "start" program detects the new RTPSGX and moves it to an operational directory. Next, the convrtp.wbt file is run. This file (in WBT language) calls up Tolken97, opens up the product to be translated, translates it, saves it as rtpsgx.trs which is then copied to rtpsgxsp.txt by the "start" program.
Run("c:\progra~1\tolken97\tolken97.exe","c:\download\rtpsgx")
WinActivate("Tolken97")
TimeDelay(5)
SendKeysTo("Tolken97","^{F7}")
SendKeysTo("Tolken97","~")
TimeDelay(5)
SendKeysTo("Tolken97","^a")
TimeDelay(1)
SendKeysTo("Tolken97","!s")
TimeDelay(2)
SendKeysTo("Tolken97","!f")
SendKeysTo("Tolken97","x")
Finally, the uprtp.bat file is run which includes the embedded rtp.scr file. These files upload the translated product and insert it into the web page. The ftp address, the username, and the password are uniquely defined by each office.
the uprtp.bat file:
@echo off
ftp -n -s:c:\download\rtp.scr
the embedded rtp.scr file:
open (ftp address)
(username password)
ascii
lcd c:\download
put rtpsgxsp.txt
disconnect
bye