Cursor position prototype

Hello,
Do you think there is a way to make a frame move, regarding the X position of the cursor ?
Thank you.