¡Esta es una revisión vieja del documento!
Tabla de Contenidos
This page is not fully translated, yet. Please help completing the translation.
(remove this paragraph once the translation is finished)
Comandos de servidor
SkyChart puede funcionar como servidor, aceptando los siguientes comandos a través de una conexión TCP/IP:
Conexión
Puedes utilizar cualquier librería u objeto que provea un socket para conectarse con SkyChart desde otro porgrama, o usar los comandos telnet o netcat desde un script. Para ver ejemplos en varios lenguajes, revisa http://skychart.svn.sourceforge.net/viewvc/skychart/trunk/skychart/sample_client/ .
El puerto estándar es el 3292, que puede ser cambiado por el usuario en el menú de configuraciones. El programa también puede elegir escuchar un p uerto al azar si el configurado está ocupado.
SkyChart mantiene un archivo con la información sobre el puerto y su estado.
En Linux y Mac: [Configuración de usuario]/tmp/tcpport
En Windows: Clave de registro HKCU\Software\Astro_PC\Ciel\Status\TcpPort
El archivo (o la clave) no existen si SkyChart todavía nunca fue ejecutado. Contiene un 0 si el programa no está corriendo, o si el servidor está desactivado en el menú de configuración. Si el programa está corriendo y listo para aceptar una conexión, contiene el número del puerto de comunicaciones.
Comandos principales
| Command | Parameters | Comment or GUI Equivalent |
|---|---|---|
| NEWCHART | chart_name | File → New Chart |
| CLOSECHART | chart_name | File → Close Chart |
| SELECTCHART | chart_name | Window → chart_name |
| LISTCHART | Window | |
| SEARCH | object_name | Search tool (Main Bar) |
| GETMSGBOX | Returns the status bar content | |
| GETCOORBOX | Returns the coordinates shown in the status bar | |
| GETINFOBOX | Setup → Display → Labels - Display the chart information in the menu bar | |
| FIND | object_class object_name | Same as search, but lets you specify the class of object you want: 0=nebula, 1=na, 2=star, 3=star, 4=variable, 5=double, 6=comet, 7=asteroid, 8=planet, 9=constellation, 10=line catalog |
| SAVE | saved_file_name | Save the current chart to the specified file |
| LOAD | saved_file_name | Load the chart from the file |
| LOADDEFAULT | option_file_name | Use this command to load an extract of the configuration file that temporarily replace some option from skychart.ini. |
| SETCAT | path shortname active min max | Add or change a Catgen catalog. The fields are the same as in the catalog setup. |
| SHUTDOWN | Close the program | |
| RESET | Reload the default chart and options (same as signal HUP) | |
| ? | No GUI equivalent, list of available commands |
Chart Commands
V2.7 compatibility DDE command
| Command | Parameters | Comment or GUI Equivalent |
|---|---|---|
| MOVE | obsolete RA: 00h00m00.00s DEC:+00d00m00.0s FOV:+00d00m00s | Icon |
| DATE | obsolete, same as SETDATE | |
| OBSL | obsolete, same as SETOBS | |
| RFSH | obsolete, same as REDRAW | |
| PDSS | Same as the menu Chart-Get DSS Image | |
| SBMP | obsolete, use SAVEIMG | |
| SGIF | obsolete, use SAVEIMG | |
| SJPG | obsolete, use SAVEIMG | |
| IDXY | X:pixelx Y:pixely | |
| GOXY | X:pixelx Y:pixely | |
| ZOM+ | obsolete, same as ZOOM+ | |
| ZOM- | obsolete, same as ZOOM- | |
| STA+ | icon (Main Bar) |
|
| STA- | icon (Main Bar) |
|
| NEB+ | icon (Main Bar) |
|
| NEB- | icon (Main Bar) |
|
| GREQ | obsolete, use SETEQGRID | |
| GRAZ | obsolete, use SETGRID | |
| GRNM | obsolete, use SETGRIDNUM | |
| CONL | obsolete, use SETCONSTLINE | |
| CONB | obsolete, use SETCONSTBOUNDARY | |
| EQAZ | obsolete, use SETPROJ |








