Hi,
I wrote a simple piece of code to delete the last item in the inventory of multiple accounts. I rebound "Inventory remove item" from M3 to right-click to make this easier for me. The code still doesn't work and I cant understand why, does anyone see the reason?
Code:
SetTitleMatchMode, 2
WinGet, Hwnd_List, List , Trove
LoopSend:
Loop, %Hwnd_List%
{
Hwnd := Hwnd_List%A_Index%
ControlClick ,, ahk_id %Hwnd%,, Left, 1, 1860 790,, ; Click on the screen
Sleep, 2500
ControlClick ,, ahk_id %Hwnd%,, Right, 1, 1860 790,, ; Delete item
Sleep, 2500
ControlClick ,, ahk_id %Hwnd%,, Left, 1, 875 485,, ; Confirm delete
Sleep, 10000
}
return
Esc::ExitApp