# Events

### <mark style="color:purple;">Finished Loading</mark>

This event fires when the web page has finished loading. This event can be utilized to show your window only when the content has fully loaded, to prevent from showing a blank loading screen.

***

### <mark style="color:purple;">Message Received</mark>

Fires when a message is received by the window. This will output the message and sender window ID to the "Message From Window" state, and "Message From Window ID" state.

***

### <mark style="color:purple;">Closed</mark>

This event fires when a window has been fully closed.

***

### <mark style="color:purple;">Unfocused</mark>

Fires when the window is no longer focused by the user.

***

### <mark style="color:purple;">Focused</mark>

Fires when the window regains focus.

***

### <mark style="color:purple;">Maximized</mark>

Fires when the window is maximized.

***

### <mark style="color:purple;">Unmaximized</mark>

Fires when the window is unmaximized.

***

### <mark style="color:purple;">Fullscreened</mark>

Fires when the window is put into a fullscreen state.

***

### <mark style="color:purple;">Unfullscreened</mark>

Fires when the window is no longer in fullscreen mode.

***

### <mark style="color:purple;">Exit Attempted</mark>

Fires when the window is not marked as "closable", but the user attempts to close the window.

***

### <mark style="color:purple;">Moved</mark>

Fires when the window is moved across the screen. Note this event can only fire every 50ms.

***

### <mark style="color:purple;">Resized</mark>

Fires when the window size changes. Note this event can only fire every 50ms.

***

### <mark style="color:purple;">Hidden</mark>

Fires when the window is put into a hidden state.

***

### <mark style="color:purple;">Shown</mark>

Fires when the window is shown from a hidden or minimized state.


---

# 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://deskifier.gitbook.io/deskifier/deskifier-bubble.io-docs/windows-element/events.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.
