fr:documentation:script_reference
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédente | |||
| fr:documentation:script_reference [2017/02/22 11:23] – pch | fr:documentation:script_reference [2017/02/28 15:58] (Version actuelle) – pch | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| - | FIXME **This page is not fully translated, yet. Please help completing the translation.**\\ //(remove this paragraph once the translation is finished)// | + | ====== Référence des scripts ====== |
| - | ====== Script reference ====== | + | Cette page contient du matériel de référence pour les fonctions de script. |
| - | This page contain reference material for scripting functions. | + | Voir la page [[toolbox|Boîtes à outils]] pour des informations générales. |
| - | See the [[toolbox|Tool Box]] description page for general information. | + | Voir les [[script example|exemples de scripts]] pour un démarrage rapide avec les fonctions de programmation. |
| - | See the [[script example|script example]] page for a quick start with the programming functions. | + | ===== Langage de script ===== |
| + | Le langage de programmation utilisé est [[wp> | ||
| + | Pour une référence complète du langage Pascal Objet, vous pouvez lire [[http:// | ||
| - | ===== Script | + | En plus des fonctions standard de Pascal |
| - | The language to use is [[wp> | + | ===== Fonctions du menu principal ===== |
| - | For a complete reference of the Object Pascal language your can read the [[http:// | + | |
| - | In addition to the standard Pascal Script feature the following Skychart specific function are added. | + | Tous les éléments du menu principal peuvent être utilisés à partir des scripts. \\ |
| + | La liste complète des noms de menu est disponible à partir de la [[http:// | ||
| - | ===== Main menu function ===== | + | Vous pouvez exécuter l' |
| - | Every items of the main menu can be used from the scripts.\\ | + | ===== Chaînes des traductions ===== |
| - | The full list of menu items name is available from the [[http:// | + | |
| - | You can execute the menu action by using the Click method, or test if an option is activated by testing the Checked property. | + | Chaque chaîne traduite pour le programme principal peut être utilisée dans un script. \\ |
| + | Utilisez directement la constante rsXXX pour obtenir la chaîne traduite. \\ | ||
| + | La liste complète des chaînes disponibles est disponible à partir du [[http:// | ||
| + | Si une chaîne n'est pas traduite pour votre langue n' | ||
| - | ===== Translation string ===== | + | ===== Constantes |
| - | + | ||
| - | Every string translated for the main program can be used in a script.\\ | + | |
| - | Directly use the rsXXX constant to get the translated string.\\ | + | |
| - | The full list of available string is available from the [[http:// | + | |
| - | If a string is not translated for your language don't hesitate [[: | + | |
| - | + | ||
| - | ===== Constants | + | |
| ^name^value^ | ^name^value^ | ||
| |deg2rad| degree to radian conversion constant| | |deg2rad| degree to radian conversion constant| | ||
| |rad2deg| radian to degree conversion constant| | |rad2deg| radian to degree conversion constant| | ||
| - | ===== Global | + | |
| + | ===== Accès aux variables | ||
| ^function GetS(varname: | ^function GetS(varname: | ||
| Ligne 110: | Ligne 108: | ||
| |Variant1 .. Variant10|Ten global variable for your use| | |Variant1 .. Variant10|Ten global variable for your use| | ||
| - | ===== Chart and Celestial objects | + | ===== Carte et objets |
| ^function | ^function | ||
| Ligne 137: | Ligne 135: | ||
| - | ===== Coordinates conversion | + | ===== Conversion de coordonnées |
| ^Procedure Eq2Hz(var ra,de : double ; var a,h : double);^ | ^Procedure Eq2Hz(var ra,de : double ; var a,h : double);^ | ||
| Ligne 159: | Ligne 157: | ||
| - | ===== Formating and conversion | + | ===== Conversion et Formatage |
| ^Function ARtoStr(var ar: Double) : string;^ | ^Function ARtoStr(var ar: Double) : string;^ | ||
| Ligne 199: | Ligne 197: | ||
| - | ===== Dialog | + | ===== Dialogues standard |
| ^function OpenDialog(var fn: string): boolean;^ | ^function OpenDialog(var fn: string): boolean;^ | ||
| Ligne 216: | Ligne 214: | ||
| |The Skychart Calendar dialog. Return dt julian date| | |The Skychart Calendar dialog. Return dt julian date| | ||
| - | ===== Run external program | + | ===== Exécution de programme externes |
| ^function Run(cmdline: | ^function Run(cmdline: | ||
| Ligne 227: | Ligne 225: | ||
| |Open a document file using the default program| | |Open a document file using the default program| | ||
| - | Also see the [[script_example|example]] about how to call a function in an external library. | + | Voir aussi les [[script_example|exemples de scripts |
| - | ===== TCP/ | + | ===== Client socket |
| - | For all this functions | + | Pour toutes ces fonctions |
| ^function TcpConnect(socknum: | ^function TcpConnect(socknum: | ||
fr/documentation/script_reference.1487759036.txt.gz · Dernière modification : 2017/02/22 11:23 de pch
