UnlockMouse Example

 

Option Explicit

Sub Main

Dim intReturn As Integer

 

 Action2.LockMouse

 Wait 1

 intReturn = Action2.UnlockMouse

 

 If intReturn = 0 Then

  MsgBox "Failure( use keyboard to clear this message )"

  MsgBox( Action2.GetLastError )

 ElseIf intReturn = 1 Then

  MsgBox "Success( use mouse to clear this message )"

 End If

 

End Sub