add ipc funcs #5

Merged
Egor00f merged 12 commits from add-ipc into main 2025-06-03 12:22:42 +00:00
Showing only changes of commit e75ef3eb9e - Show all commits
+60
View File
@@ -8,6 +8,17 @@ local syscalls = require("syscalls")
## Events
### `WaitEvent()`
Endless wait event
### `WaitEventTimeout(timeout)`
Wait timeout 1/100 sec
return event or nil
### Events list
```lua
syscalls.Event.<EventName>
```
@@ -73,6 +84,55 @@ textSize, textLen, backgroundColor, encoding are optional.
return color
## Buttons
### `GetButton()`
return pressed button or nil
### buttons
button's ids that defined default by window with skin
```lua
syscalls.buttons.<Value>
```
+ `close`
+ `minimize`
## SystemColors
### SystemColors type
### `GetSystemColors()`
return SystemColors
### `SetSytemColors(SystemColors)`
## Threads
### `ThreadInfo(pid)`
return table:
```lua
{
name: string,
pid: number,
cpu_usage: number,
memused: number,
winXPos: number,
winYPos: number,
winXSize: number,
winYPos: number,
slotState: number,
windowState: number
}
```
## Sockets
### `OpenSocket(domain, type, protocol)`