Path of Exile - Arduino AutoFlask

Опубликовано: 24 Июль 2026
на канале: Dash POWER
7,976
75

Path of Exile AutoFlask using Arduino Uno and PowerShell.

Arduino Code:
-----------------------------------------------------------------------------------------------
const int analogLifePinIn = A0;

int LifeFlask = 0;
int OutputLifeFlask = 0;

void setup() {
Serial.begin(9600);
}

void loop() {
LifeFlask = analogRead(analogLifePinIn);
if(LifeFlask [lower] 48) // Value 48 could be different. Depends on the indoor light.
{
Serial.println("LIFE");
}
delay(20);
}

PowerShell Code:
----------------------------------------------------------------------------------------------
Start-Sleep -m 5000
$port= new-Object System.IO.Ports.SerialPort COM6,9600,None,8,one
$port.open()
While ($true)
{
$InputData = $port.ReadExisting()
if ($InputData -like '*LIFE*') {
[System.Windows.Forms.SendKeys]::SendWait("1")
Write-Host "LIFE!"
}
$port.DiscardOutBuffer();
$port.DiscardInBuffer();
Start-Sleep -m 850
}

PS: I didn't spend much time with this so the code could be done much better. As you can see it takes two flasks insted of one. This can be reduced by Start-Sleep -m [Value].

! This was made just for fun and possibilities with Arduino. True players aren't using cheats !