save mouse position when calling macros