Ok This script will work for the Right hand side, mouse over a small part of the object left on screen and it comes out
Sub Object_OnMouseEnter
Object.KillTimer 2
Object.SetTimer 1, 10
End Sub
Sub Object_OnTimer1
If Object.Left <= System.VScreenLeft + System.VScreenWidth - Object.Width Then 'Makes the object "stick" to the right of the screen
Object.KillTimer 1
Else
Object.Left = Object.Left - 1 'Else moves the object out
End If
End Sub
Sub Object_OnMouseLeave
Object.KillTimer 1
Object.SetTimer 3, 2500 'Adds a little gap so you can do what you like with the object
End Sub
Sub Object_OnTimer3
Object.SetTimer 2, 1
Object.KillTimer 3
End Sub
Sub Object_OnTimer2
If Object.Left >= System.VScreenLeft + System.VScreenWidth - 40 Then
Object.KillTimer 2
Else
Object.Left = Object.Left + 1 'Draws the object back to the right
End If
End Sub