I created a script to sell items in my inventory by Holding shift key and left click on items to sell, sometimes it's working flawless and sometimes it just left click (holds the item instead selling it) and sells all the rest without a problem. For beter understand (sorry for my bad english also) see limk for the picture
http://nl.tinypic.com/view.php?pic=zxwcva&s=8
the selling way goes from right (1) to left (10). But sometimes it miss to hold shift and Left click on box 1
Code: Select all
Numpad1:: ; First row Inventory
CoordMode, Mouse, Relative
Loop, 1
{
MouseGetPos, xpos, ypos ; The cursor is at X%xpos% Y%ypos%.
Send, {Shift Down}
Click, 479, 264, left, Down
Sleep, 50
Click, 479, 264, left, Up
Send, {shift Up}
Sleep, 50
Send, {Shift Down}
Click, 430, 264, left, Down
Sleep, 50
Click, 430, 264, left, Up
Send, {shift Up}
Sleep, 50
Send, {Shift Down}
Click, 383, 264, left, Down
Sleep, 50
Click, 383, 264, left, Up
Send, {shift Up}
Sleep, 50
Send, {Shift Down}
Click, 334, 264, left, Down
Sleep, 50
Click, 334, 264, left, Up
Send, {Shift Up}
Sleep, 50
Send, {Shift Down}
Click, 290, 264, left, Down
Sleep, 50
Click, 290, 264, left, Up
Send, {Shift Up}
Sleep, 50
Send, {Shift Down}
Click, 240, 264, left, Down
Sleep, 50
Click, 240, 264, left, Up
Send, {Shift Up}
Sleep, 50
Send, {Shift Down}
Click, 193, 264, left, Down
Sleep, 50
Click, 193, 264, left, Up
Send, {Shift Up}
Sleep, 50
Send, {Shift Down}
Click, 145, 264, left, Down
Sleep, 50
Click, 145, 264, left, Up
Send, {Shift Up}
Sleep, 50
Send, {Shift Down}
Click, 98, 264, left, Down
Sleep, 50
Click, 98, 264, left, Up
Send, {Shift Up}
Sleep, 50
Send, {Shift Down}
Click, 50, 264, left, Down
Sleep, 50
Click, 50, 264, left, Up
Send, {Shift Up}
MouseMove, %xpos%, %ypos% ; move the cursor back
}
return
Anyone can help me what i should do? i tried mousemove, also sendevent etc etc