1. mouse wheel error

I'm getting a type_check error lwheelPosn is 1.0583333 in fdoMouse() with
some mouse wheels but not others. Anyone know how to fix this? I'm using an
old version of win32lib (59.1)

This will blow up any program if the wheel is moved...a real serious problem
on this customer who has a lot of these mice or mouses. The're Microsoft model
1058..
a wireless version.

new topic     » topic index » view message » categorize

2. Re: mouse wheel error

George Walters wrote:
> 
> I'm getting a type_check error lwheelPosn is 1.0583333 in fdoMouse() with
> some mouse wheels but not others. Anyone know how to fix this? I'm using an
> old version of win32lib (59.1)
> 
> This will blow up any program if the wheel is moved...a real serious problem
> on this customer who has a lot of these mice or mouses. The're Microsoft model
> 1058..
> a wireless version.

I would just modify Win32Lib to either call floor() on the value, or change it
from an integer to an atom. Or just move up to a newer version of Win32Lib.

-Greg

new topic     » goto parent     » topic index » view message » categorize

3. Re: mouse wheel error

George Walters wrote:
> I'm getting a type_check error lwheelPosn is 1.0583333 in fdoMouse() with
> some mouse wheels but not others. Anyone know how to fix this? I'm using an
> old version of win32lib (59.1)
> 

Without looking at win32lib (and I don't have that version anyway) a quick fix
would be to floor() the lwheelPosn on assignment to the variable (its currently
assigning an atom value.). I would guess lwheelPosn is set as an integer which
would be the type_check error. Or you could change lwheelPosn to an atom but I
don't know if something else would then get upset with that value...

PeteS

new topic     » goto parent     » topic index » view message » categorize

4. Re: mouse wheel error

George Walters wrote:
> 
> 
> I'm getting a type_check error lwheelPosn is 1.0583333 in fdoMouse() with
> some mouse wheels but not others. Anyone know how to fix this? I'm using an
> old version of win32lib (59.1)
> 
> This will blow up any program if the wheel is moved...a real serious problem
> on this customer who has a lot of these mice or mouses. The're Microsoft model
> 1058..
> a wireless version.

Consider upgrading to v0.70.3 (or .4 if you wait for a couple weeks).
The fix is to change the line
lWheelPosn /= 120
to
lWheelPosn = floor(lWheelPosn/120)
in fDoMouse(). The problem is still there in v0.60.6.

CChris

new topic     » goto parent     » topic index » view message » categorize

5. Re: mouse wheel error

Greg Haberek wrote:
> 
> George Walters wrote:
> > 
> > I'm getting a type_check error lwheelPosn is 1.0583333 in fdoMouse() with
> > some mouse wheels but not others. Anyone know how to fix this? I'm using an
> > old version of win32lib (59.1)
> > 
> > This will blow up any program if the wheel is moved...a real serious problem
> > on this customer who has a lot of these mice or mouses. The're Microsoft
> > model
> > 1058..
> > a wireless version.
> 
> I would just modify Win32Lib to either call floor() on the value, or change
> it from an integer to an atom. Or just move up to a newer version of Win32Lib.
> 
> -Greg

I'll give that a try. thanks

new topic     » goto parent     » topic index » view message » categorize

6. Re: mouse wheel error

Thanks, I did make that change in my version (59.1) and it fixed the problem.
Wish I could upgrade but it breaks most of my software. I'm using something
improperly when I was just starting, but it worked, and now I have
30+ programs I would have to change. I'll get around to it at some point,
but not for a while.

CChris wrote:
> 
> George Walters wrote:
> > 
> > 
> > I'm getting a type_check error lwheelPosn is 1.0583333 in fdoMouse() with
> > some mouse wheels but not others. Anyone know how to fix this? I'm using an
> > old version of win32lib (59.1)
> > 
> > This will blow up any program if the wheel is moved...a real serious problem
> > on this customer who has a lot of these mice or mouses. The're Microsoft
> > model
> > 1058..
> > a wireless version.
> 
> Consider upgrading to v0.70.3 (or .4 if you wait for a couple weeks).
> The fix is to change the line
> lWheelPosn /= 120
> to
> lWheelPosn = floor(lWheelPosn/120)
> in fDoMouse(). The problem is still there in v0.60.6.
> 
> CChris

new topic     » goto parent     » topic index » view message » categorize

7. Re: mouse wheel error

George Walters wrote:
> 
> Thanks, I did make that change in my version (59.1) and it fixed the problem.
> Wish I could upgrade but it breaks most of my software. I'm using something
> improperly when I was just starting, but it worked, and now I have
> 30+ programs I would have to change. I'll get around to it at some point,
> but not for a while.
> 

There might be a script based way of converting all your programs for use with
0.70.x. Feel free to email me privately at   oedoc hat free doubt fr   about that
"improper thing", helpfully with a sample, and then I'll see if I can do anything
about it.

CChris

> CChris wrote:
> > 
> > George Walters wrote:
> > > 
> > > 
> > > I'm getting a type_check error lwheelPosn is 1.0583333 in fdoMouse() with
> > > some mouse wheels but not others. Anyone know how to fix this? I'm using
> > > an
> > > old version of win32lib (59.1)
> > > 
> > > This will blow up any program if the wheel is moved...a real serious
> > > problem
> > > on this customer who has a lot of these mice or mouses. The're Microsoft
> > > model
> > > 1058..
> > > a wireless version.
> > 
> > Consider upgrading to v0.70.3 (or .4 if you wait for a couple weeks).
> > The fix is to change the line
> > lWheelPosn /= 120
> > to
> > lWheelPosn = floor(lWheelPosn/120)
> > in fDoMouse(). The problem is still there in v0.60.6.
> > 
> > CChris

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu