On Thu, 12 Jul 2001, Digital Strider wrote:
> Mouse coords are a pain in the arse. Seems every system reacts differently
> and by "system" I mean variable across OS, browser, user mouse-setting, user
> mouse-style (how fast he/she moves mouse) and CPU speed.
>
> If you get it working on a PIII-450 it will behave differently on a PII-300
> then try factoring in all the other variables and you begin to get strange
> twitches around the corners of your eyes.
>
> I'll be curious as to alternatives to "insanity" also...
Here's what I've been trying:
foo = new EventListener()
foo.onheartbeat=function(e) {
var x = e.getPageX()
var y = e.getPageY()
window.status = '(' + e.getPageX() + ', ' + e.getPageY() + ')'
}
DynAPI.document.addEventListener(foo)
hbfunc = function() {
DynAPI.document.invokeEvent('heartbeat')
}
thread = new Thread()
thread.sleep(10)
thread.run = hbfunc
thread.start()
Originally, I was trying something simpler than this, but this was my
attempt to trick my heartbeat function into being able use e.getPageX().
But my onheartbeat() listener never seems to fire. Actually, it appears
that my thread object is not running. I'm sure I'm missing something
simple, but right now I'm tired of staring at it :)
--
Ernest MacDougal Campbell III, MCP+I, MCSE <[EMAIL PROTECTED]>
http://dougal.gunters.org/ http://spam.gunters.org/
Lumber Cartel Unit #1654 (tinlc): http://come.to/the.lumber.cartel/
This message is guaranteed to be 100% eror frea!
_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help