Except as soon as I let go, the script does it's thing. Any clues on how to fix this?
I did something crude but effective, at least for when I end up at the right edge of the screen while resizing a window by dragging the right edge. If the left button is down and in the hot space at the right edge, when I let go the mouse gets moved two pixels away from the edge and the loop continues:
Loop
{
MouseGetPos,mx,my
GetKeyState,lbutton,LButton,P
If (mx=1919) and (my>200) and (my<800) and (lbutton="D")
{
keywait,LButton
MouseMove,1917,my
}
If (mx=1919) and (my>200) and (my<800) and (lbutton="U")
{
If tabbed=0
{
.
.
.
better suggestions welcome!