Everything works, but while the translation from right to left moves correctly by about 3000 pixels, the one from left to right (2nd part of the code) moves only 300-400 pixels.
Non ho ancora capito come si fa ad inserisce il codice:.

Let>SX=0
Let>SY=0
Let>dir=1 // (If set Let>dir=0 the moving is correct)
//Ricava risoluzione monitor
GetScreenRes>X,Y
Msg>Resolution --> X = %X% <--> Y = %Y% // X=3440 Y=1440
Wait>1
CapsOff
Input>SX,Inserire lo spostamento orizzontale X (consigliato 3300)
Msg>Spostamento %SX%
Wait>1
Input>SY,Inserire lo spostamento verticale Y (consigliato 1300)
Msg>Spostamento %SY% // 1300
Wait>1
// Se dir = 0 allora sposto schermata vs. dx altrimenti vs. sx
If>dir=0
Msg>direzione vs. DX
Wait>1
Let>X1=%X%-50
MouseMove>%X1%,%SY%
Wait>0.2
LDown
Wait>0.2
Let>X1=%X%-%SX%
MouseMove>%X1%,%SY%
Wait>0.2
LUp
Wait>0.2
Msg>Mi sono spostato verso DX
Wait>1
Else
Msg>Direzione vs. SX
Wait>1
Let>X1=100
MouseMove>%X1%,%SY%
Wait>0.2
LDown
Wait>1
Let>X1=%X%-50
Wait>0.2
MouseMove>%X1%,%SY%
Wait>0.2
LUp
Wait>0.2
Msg>Mi sono spostato verso SX (PERO' L'IMMAGINE SI SPOSTA verso sx DI SOLO 100-200pixel anche in Y, il mouse invece lo trovo a coordinate circa x 3300 e y 1300)
Wait>2
Endif