Jump to content
gaby90boy

VB 6.0 - completely freeze mouse in xp/vista

Recommended Posts

ok well first of add a module

and in the module add this code

Public Type RECT

Left As Long

Top As Long

Right As Long

Bottom As Long

End Type

Public Declare Function ClipCursor Lib "user32" (lpRect As Any) As Long

then go to the main form and add a timer interval 1

double click it and add this code

Dim ClipCur As RECT

ClipCur.Top = 200

ClipCur.Left = 200

ClipCur.Bottom = 200

ClipCur.Right = 200

Call ClipCursor(ClipCur)

now this code will freeze your mouse in any windows o/s i have tried includeing xp and vista so have fun

-DeadRabit-

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...