Initial commit: POE2 automated trade bot
Monitors pathofexile.com/trade2 for new listings, travels to seller hideouts, buys items from public stash tabs, and stores them. Includes persistent C# OCR daemon for fast screen capture + Windows native OCR, web dashboard for managing trade links and settings, and full game automation via Win32 SendInput. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
commit
41d174195e
28 changed files with 6449 additions and 0 deletions
13
src/util/clipboard.ts
Normal file
13
src/util/clipboard.ts
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
import { execSync } from 'child_process';
|
||||
|
||||
export function readClipboard(): string {
|
||||
try {
|
||||
return execSync('powershell -command "Get-Clipboard"', { encoding: 'utf-8' }).trim();
|
||||
} catch {
|
||||
return '';
|
||||
}
|
||||
}
|
||||
|
||||
export function writeClipboard(text: string): void {
|
||||
execSync(`powershell -command "Set-Clipboard -Value '${text.replace(/'/g, "''")}'"`);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue