How can I capture a signature?

J

jmDesktop

I have a writing/sketch tablet attached to a PC and want to capture
the signature with c#. I am not using a tablet pc or a pda, but a
regular computer. I am using 2.0 framework.

Was hoping someone could point me in the right direction.

Thank you for any help.
 
J

jmDesktop

I have a writing/sketch tablet attached to a PC and want to capture
the signature with c#. I am not using a tablet pc or a pda, but a
regular computer. I am using 2.0 framework.

Was hoping someone could point me in the right direction.

Thank you for any help.

It is a wacom tablet, if that helps. I can't find anything on how to
do this.
 
I

Ignacio Machin \( .NET/ C# MVP \)

Hi,

jmDesktop said:
I have a writing/sketch tablet attached to a PC and want to capture
the signature with c#. I am not using a tablet pc or a pda, but a
regular computer. I am using 2.0 framework.

Was hoping someone could point me in the right direction.

Personbally I have never used a writing tablet. But I bet it simulate the
mouse.
See what events your app receive when using the tablet, that will tell you
how to capture your writting, after that you can use any signature example
you find in the web.
 
J

jmDesktop

Hi,





Personbally I have never used a writing tablet. But I bet it simulate the
mouse.
See what events your app receive when using the tablet, that will tell you
how to capture your writting, after that you can use any signature example
you find in the web.

Do I use the spy for seeing the events? The tool that comes with
Visual Studio.
 
E

Eugene Mayevski

Hello!
You wrote on 20 Apr 2007 07:04:52 -0700:

j> Was hoping someone could point me in the right direction.

Just use regular windows messages: handle WM_MOUSEMOVE and check the state
of the left mouse button. If it's pressed, than the pen is pressed and the
user is putting a signature.

With best regards,
Eugene Mayevski
http://www.SecureBlackbox.com - the comprehensive component suite for
network security
 
C

Chris Dunaway

Hi,





Personbally I have never used a writing tablet. But I bet it simulate the
mouse.
See what events your app receive when using the tablet, that will tell you
how to capture your writting, after that you can use any signature example
you find in the web.

Another option is to use the Ink API. I'm not sure if you can use it
from a non Tablet PC, but it might be worth looking into:

http://msdn2.microsoft.com/en-us/library/ms704040.aspx

Chris
 
P

Peter Duniho

Just use regular windows messages: handle WM_MOUSEMOVE and check the
state of the left mouse button. If it's pressed, than the pen is pressed
and the user is putting a signature.

Though...

Since this is the C# newsgroup and everyone is likely actually using .NET
Framework, you really want the MouseMove event, checking the
MouseEventArgs.Button property for whether the pen is pressed.

That's assuming that for whatever reason the Ink API isn't suitable. I've
never used it, but if it offers a convenient way to capture the signature
without having to do all the mouse tracking and data collection, that
might be preferable.

Pete
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top