Code: Select all
SC029::Suspend, Toggle
#IfWinActive Path of Exile
#SingleInstance force
#NoEnv
#Warn
#Persistent
#MaxThreadsPerHotkey 2
SetTitleMatchMode 3
SendMode Input
CoordMode, Mouse, Client
Thread, interrupt, 0
global Speed=1
global CellWith=53
global InventoryX=1297
global InventoryY=616
RandomSleep(min,max){
Random, r, %min%, %max%
r:=floor(r/Speed)
Sleep %r%
return
}
$1::CtrlClick13(InventoryX,InventoryY)
CtrlClick13(iX,iY){
BlockInput On
RandomSleep(5,40)
; iX, iY -> Get Pos of top left inventory cell
if iX = -1
MouseGetPos iX,iY
delta := CellWith
x := ix
y := iy
Loop 3 { ;
Loop 5 {
Mousemove ,%x%, %y%
RandomSleep(5,20)
send ^{Click}
RandomSleep(5,20)
y += delta
}
y := iy
x += delta
}
BlockInput Off
}
Even when no other script is running(even restarted pc) i still get the same error, i'm pretty sure it started happening when i ran some other scripts.