{"id":1038,"date":"2019-12-24T15:01:44","date_gmt":"2019-12-24T13:01:44","guid":{"rendered":"https:\/\/www.euroscope.hu\/wp\/?page_id=1038"},"modified":"2026-03-21T11:23:36","modified_gmt":"2026-03-21T09:23:36","slug":"built-in-functions","status":"publish","type":"page","link":"https:\/\/www.euroscope.hu\/wp\/built-in-functions\/","title":{"rendered":"Built In Functions"},"content":{"rendered":"\n<div class=\"wp-block-columns has-2-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\"><div class=\"wp-block-image\">\n<figure class=\"alignleft\"><a href=\"https:\/\/www.euroscope.hu\/wp\/command-line-reference\/\"><img loading=\"lazy\" decoding=\"async\" width=\"64\" height=\"64\" src=\"https:\/\/www.euroscope.hu\/wp\/wp-content\/uploads\/2019\/05\/button-arrow-left-icon.png\" alt=\"\" class=\"wp-image-725\"\/><\/a><\/figure>\n<\/div>\n\n\n<p><a href=\"https:\/\/www.euroscope.hu\/wp\/command-line-reference\/\">Command Line Reference<\/a><\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\"><div class=\"wp-block-image\">\n<figure class=\"alignright\"><a href=\"https:\/\/www.euroscope.hu\/wp\/built-in-simulator\/\"><img loading=\"lazy\" decoding=\"async\" width=\"64\" height=\"64\" src=\"https:\/\/www.euroscope.hu\/wp\/wp-content\/uploads\/2019\/05\/button-arrow-right-icon.png\" alt=\"\" class=\"wp-image-724\"\/><\/a><\/figure>\n<\/div>\n\n\n<p class=\"has-text-align-right\"><a href=\"https:\/\/www.euroscope.hu\/wp\/built-in-simulator\/\">Built In Simulator<\/a><\/p>\n<\/div>\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Available Functions<\/h2>\n\n\n\n<p>Functions are quite similar to aliases. There are some kind of string patterns that will be replaced by the system. The real difference is that on the one hand their names are fixed coming from the code not from a file, on the other hand the result depends on the current session rather than a fixed value.<\/p>\n\n\n\n<p>A function may stand on its own or may have parameters. Parameters can come from anywhere even it can be a result of another function or can be an alias parameter.<\/p>\n\n\n\n<p>Functions are evaluated in the command line and in the ATIS message lines. And since version 2.8h the letter-by-letter voice ATIS elements also use them. Aliases are not forgotten but as they are extracted by typing in the command line the functions in them will be evaluated there as well.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>$aircraft<\/strong> &#8211; The callsign of the selected aircraft.<\/li>\n\n\n\n<li><strong>$alt<\/strong> &#8211; The temporary, the sector entry\/exit or the final altitude (if none of the preciouses are specified) of the selected aircraft.<\/li>\n\n\n\n<li><strong>$altim(station)<\/strong> &#8211; The altitude pressure value from the METAR of the station. For availability see <strong>$metar<\/strong><\/li>\n\n\n\n<li><strong>$arr <\/strong>&#8211; The destination airport of the selected aircraft.<\/li>\n\n\n\n<li><strong>$arrrwy [(airport ICAO code)]<\/strong> &#8211; A comma separated list of the runways set as active for arrivals. If no parameter is defined, then the assigned arrival RWY of the ASEL aircraft.<\/li>\n\n\n\n<li><strong>$asquawk<\/strong> &#8211; The assigned SQUAWK code.<\/li>\n\n\n\n<li><strong>$atccallsign [(handoffid)]<\/strong> &#8211; The callsign of the specified controller. If empty, then the logged in controller callsign.<\/li>\n\n\n\n<li><strong>$atisairport<\/strong> &#8211; The ICAO code of the airport selected to be served with voice ATIS in the <em>Voice ATIS<\/em> dialog. For backward compatibility you may still use the <strong>$atisairportA<\/strong>, <strong>$atisairportB<\/strong>, <strong>$atisairportC<\/strong>, <strong>$atisairportD<\/strong> functions for the four ATIS stations.<\/li>\n\n\n\n<li><strong>$atiscode<\/strong> &#8211; The actual ATIS letter specified in the <em>Voice ATIS<\/em> dialog. For backward compatibility you may still use the <strong>$atiscodeA<\/strong>, <strong>$atiscodeB<\/strong>, <strong>$atiscodeC<\/strong>, <strong>$atiscodeD<\/strong> functions for the four ATIS stations.<\/li>\n\n\n\n<li><strong>$bear(position)<\/strong> &#8211; It returns the bearing of the selected aircraft to the specified position. Position can be vor, ndb, fix or airport.<\/li>\n\n\n\n<li><strong>$calt<\/strong> &#8211; The current altitude of the selected aircraft.<\/li>\n\n\n\n<li><strong>$callsign<\/strong> &#8211; The login callsign of the controller.<\/li>\n\n\n\n<li><strong>$com, $com1<\/strong> &#8211; The primary frequency of the controller. It will return 199.998 if no primary frequency is selected.<\/li>\n\n\n\n<li><strong>$cruise<\/strong> &#8211; The final cruise altitude of the selected aircraft.<\/li>\n\n\n\n<li><strong>$dep<\/strong> &#8211; The departure airport of the selected aircraft.<\/li>\n\n\n\n<li><strong>$deprwy [(airport ICAO code)]<\/strong> &#8211; A comma separated list of the runways set as active for departures. If no parameter is defined, then the assigned departure RWY of the ASEL aircraft.<\/li>\n\n\n\n<li><strong>$dist(position)<\/strong> &#8211; It returns the distance of the selected aircraft to the specified position. Position can be vor, ndb, fix or airport.<\/li>\n\n\n\n<li><strong>$freq[(controller id)]<\/strong> &#8211; If no parameter is given then it returns the primary frequency of the logged in controller (the same as $com). If parameter is specified, then it returns the primary frequency of the specified controller.<\/li>\n\n\n\n<li><strong>$ftime(minutes)<\/strong> &#8211; The actual GMT time plus the specified minutes. Formatted to seconds.<\/li>\n\n\n\n<li><strong>$lc(anything)<\/strong> &#8211; It simply makes the parameter to be lowercase.<\/li>\n\n\n\n<li><strong>$metar(station)<\/strong> &#8211; The complete METAR string of the station. When you first call this function, it may return to an empty string. It is because when the METAR is needed EuroScope asks for it from the servers, but the evaluation is not suspended to wait for the result. Therefore, an empty string will come, but next time as the METAR arrives it will be displayed correctly.<\/li>\n\n\n\n<li><strong>$myrealname<\/strong> &#8211; The real name of the controller. The name you specified in the login dialog.<\/li>\n\n\n\n<li><strong>$oclock(position)<\/strong> &#8211; It returns the relative bearing of the selected aircraft to the specified position based on the current heading of the selected aircraft. Position can be vor, ndb, fix or airport.<\/li>\n\n\n\n<li><strong>$radioname[(controller ID)]<\/strong> &#8211; If no parameter is specified then returns the radio name of the active controller. Otherwise, it looks for the controller based on the short ID. The radio names are defined in the POSITIONS section of the ESE file.<\/li>\n\n\n\n<li><strong>$route<\/strong> &#8211; The route strings from the flight plan of the selected aircraft.<\/li>\n\n\n\n<li><strong>$sid<\/strong> &#8211; The assigned or assumed SID of the selected aircraft.<\/li>\n\n\n\n<li><strong>$squawk<\/strong> &#8211; The squawk of the selected aircraft.<\/li>\n\n\n\n<li><strong>$star<\/strong> &#8211; The assigned or assumed STAR of the selected aircraft.<\/li>\n\n\n\n<li><strong>$temp<\/strong> &#8211; The temporary altitude of the selected aircraft.<\/li>\n\n\n\n<li><strong>$time<\/strong> &#8211; The actual GMT time in seconds without the Z sign.<\/li>\n\n\n\n<li><strong>$type [(callsign)]<\/strong> &#8211; The type of selected aircraft. If the callsign is empty, then the type of ASEL aircraft.<\/li>\n\n\n\n<li><strong>$uc(anything)<\/strong> &#8211; It simply makes the parameter to be uppercase.<\/li>\n\n\n\n<li><strong>$wind [(airport)]<\/strong>, <strong>$winds [(airport)]<\/strong> &#8211; The wind component of the METAR of the selected station. For availability see $metar. If no airport is defined, then look for the selected aircraft. On the ground it displays the departure airport metar, otherwise the destination airport.<\/li>\n<\/ul>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Command Line Reference Built In Simulator Available Functions Functions are quite similar to aliases. There are some kind of string [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-1038","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.euroscope.hu\/wp\/wp-json\/wp\/v2\/pages\/1038","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.euroscope.hu\/wp\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.euroscope.hu\/wp\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.euroscope.hu\/wp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.euroscope.hu\/wp\/wp-json\/wp\/v2\/comments?post=1038"}],"version-history":[{"count":6,"href":"https:\/\/www.euroscope.hu\/wp\/wp-json\/wp\/v2\/pages\/1038\/revisions"}],"predecessor-version":[{"id":1471,"href":"https:\/\/www.euroscope.hu\/wp\/wp-json\/wp\/v2\/pages\/1038\/revisions\/1471"}],"wp:attachment":[{"href":"https:\/\/www.euroscope.hu\/wp\/wp-json\/wp\/v2\/media?parent=1038"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}