> For the complete documentation index, see [llms.txt](https://inscada.gitbook.io/ins/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://inscada.gitbook.io/ins/master/user-interface/development/scripts.md).

# Scriptler

inSCADA içerisinde javascript dilinde makrolar yazabilir bu sciprtleri zamanlayarak periyodik olarak çalışmasını sağlayabilirsiniz. Scriptlerinizle inSCADA platformu ile etkileşimde bulunmak için inSCADA API'lerini kullanabilirsiniz. Bakınız ([APIs...](/ins/master/programing/apis.md))

![Resim 1 : Developement-Scripts](/files/YfLMVImPkTcrBxgePQ2G)

Resim 1'de görüldüğü gibi inSCADA altında projelerinize bağlı olarak scriptler oluşturabilirsiniz. Bunun için sağ üst köşede bulunan <img src="/files/-LkGYDI_EIdrwAfQhnyM" alt="" data-size="line"> butonuna bastığınızda Resim 2'deki form açılacaktır.

![Resim 2 : Script Add/Edit Form](/files/YzBqTaNpBPB5MTkaD51F)

#### Project

Script'inizin bağlı olacağı projeyi seçebilirsiniz.

#### Name

Script Name

#### Description

Script Açıklama

**Type**

Scriptlerinizi Periodic, Daily, Once, None olarak dört farklı tipte oluşturabilirsiniz.&#x20;

* Periodic : ilgili script'in Periyot ve offset değerlerinin girilmesi ile oluşturulur ve scriptin periyodik olarak çalışması sağlanmaktadır.
* Daily : İlgili script'in Gün içinde seçilen bir saat zamanında çalışmasını sağlamaktadır.
* Once : ilgili script'in "delay" süresi belirlenerek , uygulama çalışmaya başladıktan sonra belirlenen delay süresinde sadece bir kere çalışmasını sağlamaktadır.
* None : İlgili script'in yazılan code içindeki kurallar ile çalışmasını sağlamaktadır.

#### Period

Script'inizi zamanladığınızda arka planda çalıştırılma periyodunu girebilirsiniz. Değer olarak 1000 girerseniz scriptinizi zamanladığınızda 1 sn periyotla çalışacaktır.

{% hint style="info" %}
Scriptlerinizin otomatik olarak çalıştırılması için yani zamanlanması için Control Panel'i kullanmalısınız. Control Panel ' de Script kısmına göz atınız.
{% endhint %}

#### Log

Log'u seçtiğiniz, scriptiniz ile ilgili bilgilendirme mesajı Logs yazılacaktır.

#### Code

Bakınız [Faydalı Özellikler](/ins/master/usefull-features.md#code2form)

Oluşturduğunuz scriptlerinizi sağ üst köşede bulunan ![](/files/85PJEs1bbR5JqVdttKnQ) " run script " ikonu ile çalıştırabilirsiniz.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://inscada.gitbook.io/ins/master/user-interface/development/scripts.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
