Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Track Mouse Coordinates Outside Window

Reply
Thread Tools

Track Mouse Coordinates Outside Window

 
 
atn2002@hotmail.com
Guest
Posts: n/a
 
      12-17-2006
How can I track the mouse coordinates outside the active window? No
one can tell me its not possible because Google Spreadsheets and
EditGrid both do it. When you drag down to select cells these
spreadsheet programs are capable of properly selecting the cells based
on where the mouse is, even though the mouse is way outside the
browser. I haven't been able to find any info on it or figure it out
myself. How is this possible?

 
Reply With Quote
 
 
 
 
atn2002@hotmail.com
Guest
Posts: n/a
 
      12-18-2006
No one?

 
Reply With Quote
 
 
 
 
Elegie
Guest
Posts: n/a
 
      12-18-2006
http://www.velocityreviews.com/forums/(E-Mail Removed) wrote:

Hi,

> How can I track the mouse coordinates outside the active window? No
> one can tell me its not possible because Google Spreadsheets and
> EditGrid both do it.


Sure I can

That is not possible, sorry. The MOUSEMOVE listener has to be registered
on some DOM element, and it won't follow the mouse moves that happens
outside of this element.

I have just tried Google Spreadsheets, using Firefox 1.5. I have reduced
the window so that it occupies 1/4 of my desktop, have started some
selection in the sheet and then have moused outside of the window. The
program does not follow the mouse moves, it simply continues moving the
selection towards the direction I had set when I left the window (in the
meanwhile I've been clicking and writing to another window, some MS Word
document, and the selection kept expanding).

Could you explain why you need this feature? People around here have
been solving lots of design issues, and yours may already have received
some nice solution!


Kind regards,
Elegie.

PS : If you're working in some secure and known environment, you could
probably design some external component that would capture the mouse
position, and use it directly from your script. The technology used
would depend on the targeted platform and browser.
 
Reply With Quote
 
Lee
Guest
Posts: n/a
 
      12-18-2006
(E-Mail Removed) said:
>
>No one?


One excellent way to make sure you don't get many responses is to
say "No one can tell me...".


--

 
Reply With Quote
 
atn2002@hotmail.com
Guest
Posts: n/a
 
      12-19-2006
Didn't mean to be rude

Actually you're right, it doesn't work in Firefox but it does work in
Internet Explorer, so IE must have a proprietary thing going on. I
should have mentioned that.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
insert track reference in mp3 track D@Z Computer Support 1 05-02-2008 03:32 PM
help with pix inside->outside + dmz->outside + inside->outside->dmz Jack Cisco 0 09-19-2007 01:57 AM
Heres a mouse theres a mouse what a mouse do? unholy Gaming 37 09-17-2006 08:59 AM
Converting canvas coordinates to window coordinates in tkinter......... Suresh Kumar Python 0 07-04-2003 10:14 AM
Converting canvas coordinates to window coordinates....... Suresh Kumar Python 0 07-03-2003 04:53 AM



Advertisments