Wiimote Project

Wiimote Projects => Wiimote Interactive Whiteboard => Topic started by: benpaddlejones on May 26, 2008, 11:48:04 PM

Title: HELP - Wiimote IR-Pen not working in Microsoft Onenote/Powerpoint???
Post by: benpaddlejones on May 26, 2008, 11:48:04 PM
Wiimote Friends

My Wiimote whiteboard works awesome! Except in Microsoft OneNote & Powerpoint (Office 2007) when using the 'Pen' function ???

I can:
   Click & drag notes
   Draw lines
   Draw shapes
   Control objects

I cannot:
   Write with a pen!!! in either Powerpoint & Onenote


What the problem looks like on screen:
[youtube]kstV5o-9-wg[/youtube]
Running XP pro fully updated inc service pack 3

I can write with my normal mouse & Wicom grapics tablet.

When I use the IR-Pen it registers a dot on first click, the cursor tracks with pen movements during hold click (without drawing a line) and a dot on click release?

Has anyone else had similar problems? Or any ideas for a fix, Onenote is the perfect whiteboard program for teachers, I'm really keen to use.

What I have found out:
- Works perfectly at home on my desktop runing Home XP & Office 2007
- Same effect when used with Jason's Presenter App
- Performed Office repair, no success
- Removed and reloaded Office 2007
- Tried disabling different HID's in 'Hardware Manager' no effect (except when disabled relievent HID's)
- The HID's that stop the Wiimote are: "Bluetooth Vertual HID Keyboard" & "HID Complient Game Controller"
- I have updated all the HID drivers using 'Hardware Manager' no effect
- Tried using Blue Soli on this laptop - no effect

I tried on a another identical laptop - same issue

I think my problem is:
In Onenote/Powerpoint Pen functions there appears to be a communication problem between the HID device and Onenote???

benpaddlejones

n.b. I moved this post from Whiteboard Support as I think this is a question for the really smart tech dudes!
Title: Re: HELP - Wiimote IR-Pen not working in Microsoft Onenote/Powerpoint???
Post by: atomriot on May 28, 2008, 12:07:38 PM
this is from another topic
http://www.wiimoteproject.com/wiimote-whiteboard/powerpoint-slideshows-the-pen-or-highlighter-dont-works-t134.15.html
page 2 half way down

I found the solution for this problem.

I think powerpoint uses different way of getting the mouseevent from other applications.
Change the method of setting the mouse position, and it will work well.

Change the code in this way.

Line 68-71 of Form1.cs:
long
->
uint

Line 192 of Form1.cs:
SetCursorPos((int)warpedX, (int)warpedY);
->
mouse_event(MOUSEEVENTF_ABSOLUTE | MOUSEEVENTF_MOVE, (uint)(warpedX * 65535 / screenWidth), (uint)(warpedY * 65535 / screenHeight), 0, 0);

I attached the fixed version of wii whiteboard.
Title: Re: HELP - Wiimote IR-Pen not working in Microsoft Onenote/Powerpoint???
Post by: UndCon on May 28, 2008, 05:17:15 PM
try with above solution - I don't use Onenote so I cannot try this at all I'm afraid

//UndCon
Title: Re: HELP - Wiimote IR-Pen not working in Microsoft Onenote/Powerpoint???
Post by: benpaddlejones on May 29, 2008, 01:41:57 AM

IT WORKS!!!

I love you guys (in a tottaly IT kind of way)!!!

How do I recomend this as a perm fix in future versions???

benpaddlejones :-)

Title: Re: HELP - Wiimote IR-Pen not working in Microsoft Onenote/Powerpoint???
Post by: atomriot on May 29, 2008, 09:15:49 AM
it depends on where you are talking about making a permanent change at. if you got the code from Johnny's page, then its doubtful that he will update with these little fixes since his page is more of a technology guide, or example rather than a version that should be used mainstream. he left it up to the community to see how he did things and make your own creations.

I suppose you could go to one of the opensource project pages and request a bug there but i have not kept track of where all those projects are