Save current mouse position to a variable

It is possible to save the current mouse position to a variable? I've looked everywhere and just can't find a solution. I could use the restore saved mouse position action if I didn't need to drag with LMB to that position...
Any ideas?