# 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](https://4124472707-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3GxBkpnRvhRE3DopYR6v%2Fuploads%2FeWjAOR0ZKflPLSOOWJGs%2FAutomation1.png?alt=media\&token=523558cb-9eb7-455e-bca8-02ebab432c2e)

<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](https://4124472707-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3GxBkpnRvhRE3DopYR6v%2Fuploads%2FE5xZV8r5BvQMCPPDTDsa%2FAutomation2.png?alt=media\&token=aacb183a-e556-4c27-9c00-7f1ce2b828be)

####

#### <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 ](https://4124472707-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3GxBkpnRvhRE3DopYR6v%2Fuploads%2FT9vvKn2bqQT8B3Xw3C33%2FAutomation%20-%20script%20management1.png?alt=media\&token=63aaa56f-0a89-414c-9b24-2b9d78252621)

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](https://4124472707-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3GxBkpnRvhRE3DopYR6v%2Fuploads%2F5kLMXNLhgaE6h4FJ0KLc%2FAutomation%20-%20new%20script.png?alt=media\&token=4d890ca8-7aeb-4b11-8c3f-c68c968897ad)

**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](https://4124472707-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3GxBkpnRvhRE3DopYR6v%2Fuploads%2FQb0bq8LbptRHJzqbeYx7%2FAutomation%20-%20add%20script2.png?alt=media\&token=6253a5af-df34-4706-899d-54119f10a1df)

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](https://4124472707-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3GxBkpnRvhRE3DopYR6v%2Fuploads%2Fn7VZgkZwlCYJztxM552Q%2FAutomation%20-%20add%20script3.png?alt=media\&token=cacf1338-1fdd-4384-9e91-74ecd7c66342)

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

![OpenURL](https://4124472707-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3GxBkpnRvhRE3DopYR6v%2Fuploads%2F8SPSGdnOWzoZU7DZgVyq%2Fopenurl.PNG?alt=media\&token=857ba58f-3f74-47c5-93f0-5a59be550cd5)

* <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 %}

![](https://4124472707-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3GxBkpnRvhRE3DopYR6v%2Fuploads%2F3CWYthci1BKuMcu87g4g%2FType.png?alt=media\&token=ba129ad9-6f60-49a0-9f2c-772a8006bbcb)

* <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](https://4124472707-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3GxBkpnRvhRE3DopYR6v%2Fuploads%2FighndSq097dVHpadfJSk%2FClick.png?alt=media\&token=3866a7e8-4f4f-4495-a94b-b351cfcbf2c1)

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

![Keypress(Enter)](https://4124472707-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3GxBkpnRvhRE3DopYR6v%2Fuploads%2FO9gLGf2ZGyR96LTjy5gA%2Fenter.png?alt=media\&token=8c4dd855-4c70-41c8-bf2f-16101255fccb)

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

![Back](https://4124472707-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3GxBkpnRvhRE3DopYR6v%2Fuploads%2Fjq9Gr63Lwt96dXaBVDCc%2Fback.png?alt=media\&token=6a6a1eda-9f31-473c-a0e5-0d6c19d8be7d)

* <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](https://4124472707-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3GxBkpnRvhRE3DopYR6v%2Fuploads%2FVYWGSO52bVXJNhS4UAdy%2FWait.png?alt=media\&token=b3e934dc-1b11-4701-a38e-514225351edf)

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

![WaitRandom](https://4124472707-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3GxBkpnRvhRE3DopYR6v%2Fuploads%2Fe4y190VWbtK0RUzxGljG%2FWaitrandom.png?alt=media\&token=49cd2724-ca6a-4c0e-9af2-14d8eec96c68)

* <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](https://4124472707-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3GxBkpnRvhRE3DopYR6v%2Fuploads%2FbJQScTqn1i8ZfALZfM7m%2FSwipeUp.png?alt=media\&token=7b4d3c22-b3c2-4c61-9a03-f899bdad5ec6)

* <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](https://4124472707-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3GxBkpnRvhRE3DopYR6v%2Fuploads%2F66qSDgKr59WD5cd9rTLe%2FSwipeDown.png?alt=media\&token=e879b310-8d5e-4434-8a4c-38ff3266a99a)

* <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](https://4124472707-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3GxBkpnRvhRE3DopYR6v%2Fuploads%2FOvwOJ9fNMvQpv8KIU36n%2FRandomfromfile.png?alt=media\&token=63bb354e-b0dd-45b3-aec1-93f5e78ce3d6)

* <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](https://4124472707-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3GxBkpnRvhRE3DopYR6v%2Fuploads%2Fw0reGI0Vi5ZOcn6hH6WF%2FRandomAmazonKeyword.png?alt=media\&token=3c690d7b-5df4-4b5e-b12a-4b677f923217)

* <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](https://4124472707-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3GxBkpnRvhRE3DopYR6v%2Fuploads%2FIH6167oSS8EUiWBYr0oT%2FRandomebayKeyword.png?alt=media\&token=72111148-911c-430c-988b-527124cfcc3f)

* <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](https://4124472707-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3GxBkpnRvhRE3DopYR6v%2Fuploads%2F6XaB30iq7DjhXgSEAaro%2FRandometsyKeyword.png?alt=media\&token=abe384e2-ab75-4162-94d6-b000895ba8fe)
