To switch off mouse over the window
write

mouse_pointer = 0;

in your script.