# Create automation scripts

**Automation** is the premium feature that saves your **time**, **effort**, **money** for repetitive tasks such as cookie bots, account creation, surfing the web,... All you need is to write some simple code on the **Automation** tab for **Hidemyacc** to automatically run profiles and do repetitive tasks according to your request.

**Video Instructions**: [**https://youtu.be/mIxq7PYg5Us**](https://youtu.be/mIxq7PYg5Us)

![Automation feature](/files/r5HqbmO12vQP0z9qbkDT)

<mark style="background-color:orange;">**AUTOMATION INSTRUCTIONS**</mark>

1. **Add Scripts: Choose** the Scripts you want to use then click **Add to Script.** You can only **Edit 1 Script** at a time.
2. **Choose how** your Profiles/Folders will Run the Script.
3. **Choose Profiles/Folders** you want to Run.
4. Click **Run Profiles.**

![Automation Instructions](/files/bpRKCzqWedxb5ROHFmh4)

####

#### <mark style="background-color:orange;">CREATE NEW SCRIPT</mark>

**To create a new script, please follow these steps:**

1. **Click** on **(+)** button:

![Create New Script - 1 ](/files/ffugpo56R03YmZ0Q4E63)

2\. **Enter** your **Script's name**

3\. **Enter** your **Script**

4\. **Click Test** if you want to run a demo of your Script.

5\. **Click Save** if you've finished entering the Script.

![Create New Script - 2](/files/ClL1TzDoVdUewcyDnxmF)

**2 ways to enter your Script:**

1. **Add our available templates**: we already added many available templates for you to use directly or as an example to write your own script.

   You only need to **choose** a **Script** and **click Add.**

![Choose Templates](/files/YGKnam2XjCjk0NORpSok)

2\. **Add each commands one by one:** You can add each commands one by one based on our available commands.\
You only need to **choose** a **Command**, enter the needed information and **click Add.**

![Choose Command](/files/t4ePuKb5mal3V2kcT3HK)

* <mark style="background-color:purple;">**OpenURL(url)**</mark>: Enter the Website URL you want the Script to open.&#x20;

![OpenURL](/files/OrBUQu3YAUGOUZ0eOwBw)

* <mark style="background-color:purple;">**Type(selector, text)**</mark>: Simulate the behavior of typing text into the selector you choose.\
  You need to **paste** the **selector** you want to enter the text in and **enter** the **text** you want then **click Add.**

{% hint style="info" %}
**Instruction video on how to get the selector:** [**https://youtu.be/mIxq7PYg5Us**](https://youtu.be/mIxq7PYg5Us)
{% endhint %}

![](/files/mURbPI1mwufMmG5ssaIE)

* <mark style="background-color:purple;">**Click(selector)**</mark>: Use this command to make your profile clicks on a specific selector.\
  You need to **paste** the **selector** you want to click on then **click Add.**

![Click](/files/0wxeG9NDoF4W2BaQRiIw)

* <mark style="background-color:purple;">**Keypress(Enter)**</mark>: Simulate the behavior of **pressing Enter** button on the keyboard.

![Keypress(Enter)](/files/xiwY8Yszw95QTcM4HXBa)

* <mark style="background-color:purple;">**Back()**</mark>**:** This command helps you **return** to the **previous page**

![Back](/files/c0bZr2cdCcv6m3IDkdK0)

* <mark style="background-color:purple;">**Wait(seconds)**</mark>: Your profile will **wait** for the **specific seconds** you chose before continuing to the next action.

![Wait](/files/rLuOB6NKz08i9OXDOI31)

* <mark style="background-color:purple;">**WaitRandom(x,y)**</mark>: Your profile will **wait randomly** between x and y second.&#x20;

![WaitRandom](/files/Cbfuy16GbqZVUQIJ7RAZ)

* <mark style="background-color:purple;">**SwipeUp(y)**</mark>: **Scroll up** the web page in **vertical** with a specified number of pixels. y is the pixel value that you want to scroll.

![SwipeUp](/files/59906P9A7dcnOIgGbXwj)

* <mark style="background-color:purple;">**SwipeDown(y)**</mark>: **Scroll down** the web page in **vertical** with a specified number of pixels. y is the pixel value that you want to scroll.

![SwipeDown](/files/6YrPlm8qozuvM2OefOZF)

* <mark style="background-color:purple;">**RandomFromFile(selector,file)**</mark>: **Randomly enter** text from a .txt file into a specific selector your choose. You need to **paste** the **selector** you want to enter the text in and **choose** the **txt file** then **click Add.**

![RandomFromFile](/files/PQpF34ryKyP0zvr4raHT)

* <mark style="background-color:purple;">**RandomAmazonKeyword(selector)**</mark>: **Randomly enter Amazon Keyword** from our server into a specific selector you choose, normally is the search bar. You need to **paste** the **selector** you want to enter the keyword in then **click Add.**

![RandomAmazonKeyword](/files/hIIguXP5CCwGerCi6FxX)

* <mark style="background-color:purple;">**RandomEbayKeyword(selector)**</mark>: **Randomly enter eBay Keyword** from our server into a specific selector you choose, normally is the search bar. You need to **paste** the **selector** you want to enter the keyword in then **click Add.**

![RandomEbayKeyword](/files/uW4k3hMuYDH0EHLMbsxQ)

* <mark style="background-color:purple;">**RandomEtsyKeyword(selector)**</mark>: **Randomly enter Etsy Keyword** from our server into a specific selector you choose, normally is the search bar. You need to **paste** the **selector** you want to enter the keyword in then **click Add.**

![RandomEtsyKeyword](/files/JZ77Omd3pVZlDfEhm05s)


---

# Agent Instructions: 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:

```
GET https://docs.hidemyacc.com/hidemyacc-2.0-instructions/create-automation-scripts.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
