this snippet is from my brotah @juanbustillos i jsut edited to use it in wattisproject
:move
Dialog.GetRECT(0@, 2@, 3@, 4@, 5@)
SAMP.GetScreenResolution(2@, 3@)
0B5E: get_cursor_pos 6@ 7@
0085: 8@ = 6@
0085: 9@ = 7@
005A: 6@ += 4@
005A: 7@ += 5@
IF 001D: 2@ > 6@ //X
THEN ...