You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can also implement your own file source via the Custom File protocol. For more information check out [page](fileprotocols.md).
12
+
13
+
## Run Sciter loop
14
+
15
+
Main Sciter loop start handle events and show main window. Loop will be happened until if last opened window will be closed by user or programmatically.
16
+
Start loop look like this:
17
+
18
+
```csharp
19
+
varcode=host.Process ();
20
+
if (code!=0) {
21
+
// error handling logic
22
+
}
23
+
```
24
+
25
+
You can close the main window while the loop is running as follows:
26
+
```csharp
27
+
host.CloseMainWindow();
28
+
```
29
+
After this, all other open windows will also be closed.
30
+
31
+
To close any other non-main window, you can call another method:
32
+
```csharp
33
+
host.CloseWindow(windowHwnd); // windowHwnd is pointer on window
0 commit comments