You are here: Main Site >> Codebase >> Python >> Mouse Locker 
 

Mouse Locker

hartsmor
CodeCount: 19
Posted: 8th March 07:19pm

Information:

Locks the mouse until window is closed.

Python Code:
import pyHook, pythoncom
 
def MouseLocker(lock):
  return False
hm = pyHook.HookManager()
hm.MouseAll = MouseLocker
hm.HookMouse()
pythoncom.PumpMessages()

Comments

Information:

No Comments.