AIWeavioПЛАТФОРМА АВТОМАТИЗАЦИИ

Утилитарные узлы

Константы, арифметика, boolean, строки, векторы и window-хелперы.

Number

util.numberpure

float-константа.

In: Value:Float

Out: Out:Float

Number(0.8) → Threshold.

Integer

util.integerpure

int-константа.

In: Value:Int

Out: Out:Int

Integer(3) → Count.

Boolean

util.booleanpure

bool-константа.

In: Value:Bool

Out: Out:Bool

Boolean(true) → Reset.

Text

util.textpure

string-константа.

In: Value:String

Out: Out:String

Text("hello") → Keyboard Type Text.Text.

Add

math.addpure

A + B.

In: A:Float, B:Float

Out: Result:Float

Add(X, 10).

Subtract

math.subtractpure

A − B.

In: A, B

Out: Result

Subtract(PosX, 5).

Multiply

math.multiplypure

A × B.

In: A, B

Out: Result

Multiply(score, 2).

Divide

math.dividepure

A ÷ B, возвращает 0 если B=0.

In: A, B

Out: Result

Divide(width, 2).

Min

math.minpure

Меньшее из A и B.

In: A, B

Out: Result

Min(hp, cap).

Max

math.maxpure

Большее из A и B.

In: A, B

Out: Result

Max(hp, 0).

Abs

math.abspure

Модуль значения.

In: Value

Out: Result

Abs(delta).

Modulo

math.modulopure

A по модулю B.

In: A, B

Out: Result

Modulo(index, 4).

Clamp

math.clamppure

Ограничивает Value между Min и Max.

In: Value, Min, Max

Out: Result

Clamp(confidence, 0, 1).

Random Float

math.random_floatpure

Случайный float в [Min, Max].

In: Min:Float, Max:Float

Out: Result:Float

Random Float(0.1, 0.5) → Wait.Seconds.

Random Int

math.random_intpure

Случайный int в [Min, Max].

In: Min:Int, Max:Int

Out: Result:Int

Random Int(100, 300) → Delay.ms.

All Bool

bool.andpure

True если все bool-входы true.

In: A:Bool, B:Bool, дополнительные bool inputs

Out: True:Bool, False:Bool

Found AND Is Window Active → If.

Any Bool

bool.orpure

True если хотя бы один bool-вход true.

In: A, B, дополнительные bool inputs

Out: True, False

ButtonFound OR DialogFound → If.

Not

bool.notpure

Boolean NOT.

In: Value:Bool

Out: Result:Bool

Not(Found) → If.

Concat Text

string.concatpure

Соединяет две строки.

In: A:String, B:String

Out: Result:String

Concat("HP:", hp).

Text Contains

string.containspure

Проверяет, содержит ли Text подстроку Query.

In: Text:String, Query:String

Out: Result:Bool

Contains(response, "ok").

Text Equals

string.equalspure

Сравнивает две строки.

In: A:String, B:String

Out: Result:Bool

Equals(status, "ready").

Make Vec2

vec2.makepure

Собирает Vec2 из X и Y.

In: X:Float, Y:Float

Out: Result:Vec2

Make Vec2(100, 200) → Mouse Pos.

Add Vec2

vec2.addpure

A + B для координат.

In: A:Vec2, B:Vec2

Out: Result:Vec2

targetPos + offset.

Subtract Vec2

vec2.subtractpure

A − B для координат.

In: A, B

Out: Result

objectPos − center.

Vec2 Distance

vec2.distancepure

Расстояние между двумя точками.

In: A:Vec2, B:Vec2

Out: Result:Float

Distance(player, target).

Vec2 Distance Less Than

vec2.distance_lesspure

Проверяет, ближе ли точки чем Max Distance.

In: A, B, Max Distance:Float

Out: Result:Bool, Distance:Float

If target closer than 100.

In Range

number.in_rangepure

Проверяет Value между Min и Max.

In: Value:Float, Min:Float, Max:Float

Out: Result:Bool

Confidence in range 0.8..1.0.

String Match

string.matchpure

Match по contains / equals / starts / ends.

In: Text:String, Query:String, Mode:String

Out: Result:Bool

Mode=starts, Text="error:42", Query="error".

Regex Extract

string.regexpure

Достаёт совпадения из строки по regex-паттерну.

In: Text:String, Pattern:String, Group:Int

Out: Match:String, Found:Bool

Regex Extract(response, "id:(\\d+)", 1).

Text To Number

string.to_numberpure

Парсит число из текста.

In: Text:String

Out: Value:Float, Ok:Bool

Text To Number("42") → Value=42.

OCR Text Match

text.fuzzy_matchpure

Сравнивает текст с допуском на опечатки. Target может содержать варианты через запятую.

In: Text:String, Target:String, Tolerance:Float

Out: Match:Bool, Best Target:String, Score:Float

OCR Text Match(read, "hello,good morning,hi").

OCR Number Match

text.ocr_number_matchpure

Извлекает число из распознанного текста и сравнивает с value.

In: Text:String, Operator:String, Value:Float

Out: Match:Bool, Number:Float

OCR Number Match("HP: 42", <, 50) → Match=true.

JSON Get

json.getpure

Достаёт поле из JSON-строки (обычно из HTTP-ответа).

In: Json:String, Path:String

Out: Value:String, Found:Bool

JSON Get(response, "data.id").

Random Point In Rect

vec2.random_in_rectpure

Случайная точка внутри прямоугольника.

In: Rect X/Y/W/H:Int

Out: Point:Vec2

Random Point In Rect → Mouse Move Smooth для "человечных" кликов.

Timer

time.timerexec

Именованный timer со start / stop / reset.

In: Name:String, Action:String

Out: Elapsed:Float

Timer(fight, start) → позже Timer(fight, read).

Runtime Time

time.nowpure

Секунды с начала runtime.

In:

Out: Seconds:Float

Runtime Time → Log / Compare.

Elapsed Time

time.elapsedexec

Loop-friendly таймер с выходами Continue / Elapsed.

In: Duration Seconds:Float, Reset:Bool

Out: Elapsed:Bool, Seconds:Float, Elapsed ms:Float (и exec Continue / Elapsed)

В цикле вывод Continue верните в цикл, Elapsed выведите наружу.

Image Detection → If True → Delay → Elapsed Time; Continue → Image Detection, Elapsed → Break / следующий этап.

Window Size

window.sizepure

Возвращает client size окна.

In: Window:HWND

Out: Size:Vec2, Width:Int, Height:Int

Window Size → Make center point.

Is Window Active

window.is_activepure

Проверяет, является ли GameWindow foreground.

In: Window:HWND

Out: Active:Bool

Is Window Active → If.

Ensure Window Active

window.ensure_activeexec

Переводит GameWindow на передний план.

In: Window:HWND

Out: Success:Bool

Ensure Window Active → Mouse Event.