# URL Hooks

URL Hooks allow you to open Zen Studio and automatically load scripts into the compiler using a custom protocol link.

This feature enables direct integration of web-hosted GPC scripts with Zen Studio.

### How It Works

***

URL Hooks use the `zenstudio://` protocol to trigger specific actions inside Zen Studio.

After the script loads into the compiler, you can compile and program the device as usual.

### Available URL Commands

***

#### 1. Open Zen Studio

```
zenstudio://
```

Launches Zen Studio.

#### 2. Add GPC Library Script to Compiler

```
zenstudio://lib/script/?scripts=12345
```

Loads the specified GPC Library script (by ID) directly into the compiler.

Replace `12345` with the desired script ID.

#### 3. Add Any Web-Hosted GPC Script

```
zenstudio://www.example.com/myscript.gpc
```

Loads a publicly hosted `.gpc` file directly into the compiler.

The script must be accessible via direct URL.

### Example

```
zenstudio://www.mywebsite.com/myscript.gpc
```
