Hi. I'm going crazy trying to find how to do this, i hope someone here can tell me how to do it. I'm sure it's pretty simple, but i just can't find the way to do it.
I need to get two values.
1. Mouse position ON THE WHOLE SCREEN, NOT IN THE CURRENT WINDOW.
2. Window position ON THE WHOLE SCREEN.
Far away, all i've found on this area is how to specify the window position with window.moveTo(x, y), but what i need is to get the current window position before using this.
For the mouse, all i've found is how to know the mouse position on the current window with window.event.clientX and window.event.clientY, but i need to know the mouse position on the screen, not only on that window.
Thanks in advance.
Paco.
I need to get two values.
1. Mouse position ON THE WHOLE SCREEN, NOT IN THE CURRENT WINDOW.
2. Window position ON THE WHOLE SCREEN.
Far away, all i've found on this area is how to specify the window position with window.moveTo(x, y), but what i need is to get the current window position before using this.
For the mouse, all i've found is how to know the mouse position on the current window with window.event.clientX and window.event.clientY, but i need to know the mouse position on the screen, not only on that window.
Thanks in advance.
Paco.