Go Back   Technology Questions > Hardware Questions > Mobile Computers > Tablet PC > Tablet PC Software > Tablet PC Developers

Tablet PC Developers Show off your work while discussing with others how to create ink enabled applications.

Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old 03-30-2008, 09:40 AM
Peter Mairhofer
Tablet PC Guest
 
Posts: n/a
Intercept stylus input globally

Hi,

I want to program a small "ruler application" for my TPC. This application
should be a virtual ruler that can be placed anywhere on the screen. When
the user wants to to draw a *straight* line in any application (Quicknotes,
OneNote, Journal, ...) he just writes a line along the ruler and my
application then makes automatically a staight line.

I did this successfully using ordinary mouse data using ClipCursor in MFC:

ON_REGISTERED_MESSAGE(UWM_MOUSEMSG, OnRuler)

LRESULT CrulerDlg::OnRuler(WPARAM, LPARAM lParam)
{
if(lParam)
{
RECT rc;
GetWindowRect(&rc);
ClipCursor(&rc);
}
else
{
ClipCursor(NULL);
}
return 0;
}

But this works *only* for the mouse, for stylus data this is ignored :-(

Now I'm searching for a possibility to *globally* hook into stylus data and
modify it on-the-fly.

It would be great if it would work with C++ and MFC.


Thank you,
Peter


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

 
Old 03-30-2008, 09:40 AM
Xploder HD Movie Player for PS3. Manage, convert and transfer media files between the PC and PS3.
  #2 (permalink)  
Old 03-31-2008, 03:51 PM
Amber P. Race
Tablet PC Guest
 
Posts: n/a
RE: Intercept stylus input globally

Hi Peter,
Have you tried using the COM version of RealTimeStylus?
http://msdn2.microsoft.com/en-us/lib...83(VS.85).aspx

Thanks,
Amber

"Peter Mairhofer" wrote:

> Hi,
>
> I want to program a small "ruler application" for my TPC. This application
> should be a virtual ruler that can be placed anywhere on the screen. When
> the user wants to to draw a *straight* line in any application (Quicknotes,
> OneNote, Journal, ...) he just writes a line along the ruler and my
> application then makes automatically a staight line.
>
> I did this successfully using ordinary mouse data using ClipCursor in MFC:
>
> ON_REGISTERED_MESSAGE(UWM_MOUSEMSG, OnRuler)
>
> LRESULT CrulerDlg::OnRuler(WPARAM, LPARAM lParam)
> {
> if(lParam)
> {
> RECT rc;
> GetWindowRect(&rc);
> ClipCursor(&rc);
> }
> else
> {
> ClipCursor(NULL);
> }
> return 0;
> }
>
> But this works *only* for the mouse, for stylus data this is ignored :-(
>
> Now I'm searching for a possibility to *globally* hook into stylus data and
> modify it on-the-fly.
>
> It would be great if it would work with C++ and MFC.
>
>
> Thank you,
> Peter
>
>
>

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #3 (permalink)  
Old 04-04-2008, 08:20 AM
Peter Mairhofer
Tablet PC Guest
 
Posts: n/a
RE: Intercept stylus input globally

=?Utf-8?B?QW1iZXIgUC4gUmFjZQ==?= <AmberPRace@discussions.microsoft.com>
dixit:
> Hi Peter,
> Have you tried using the COM version of RealTimeStylus?
> http://msdn2.microsoft.com/en-us/lib...83(VS.85).aspx


Hi,

Thank you for your answer. No, I haven't tried it yet but till now I tought
it was not possible to modify ink stream from *another* application (e.g.
journal, OneNote, ...).

Do you think it's possible with it?

Peter


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #4 (permalink)  
Old 04-07-2008, 10:51 AM
Amber P. Race
Tablet PC Guest
 
Posts: n/a
RE: Intercept stylus input globally

RTS won't work globally, but you could try getting the stylus points as Raw
Input and generating a user message for your app.
http://msdn2.microsoft.com/en-us/lib...36(VS.85).aspx

Thanks,
Amber

"Peter Mairhofer" wrote:

> =?Utf-8?B?QW1iZXIgUC4gUmFjZQ==?= <AmberPRace@discussions.microsoft.com>
> dixit:
> > Hi Peter,
> > Have you tried using the COM version of RealTimeStylus?
> > http://msdn2.microsoft.com/en-us/lib...83(VS.85).aspx

>
> Hi,
>
> Thank you for your answer. No, I haven't tried it yet but till now I tought
> it was not possible to modify ink stream from *another* application (e.g.
> journal, OneNote, ...).
>
> Do you think it's possible with it?
>
> Peter
>
>
>

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Reply

Bookmarks

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 On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Intercept data from USB device Angie Pocket PC General 5 11-07-2007 01:10 PM
Hand vs. Stylus Input john Tablet PC Developers 3 10-31-2007 06:10 AM
intercept SIM API call Angie Pocket PC General 1 10-31-2007 02:50 AM
Delete Temp Files Globally Michael Windows XP 17 06-28-2007 04:00 PM
RE: Folder view the same globally 7Yur Windows Vista 0 01-19-2007 12:30 PM


All times are GMT -8. The time now is 10:13 AM.


2003 - 2008 All Rights Reserved. Technology Questions

SEO by vBSEO 3.1.0