sorry about the vague title as I didn't know exactly what to call it or if what I am asking for even exists.
Basically what I want is a program that can lock the mouse to the boundaries to the active programs window when a hotkey is pressed. for example, lets say I am using notepad and click Ctrl + F12 (for example), my mouse would be locked to the dimensions of notepad and would only be allowed to move freely within the application. pressing the hotkey again would release control of the mouse. are their any programs that can accomplish this? or would I have to try and write one myself
EDIT:
For those who may be apprehensive about trying Renes program, I took the liberty of running it through an online multiple av checker