|
-
Sep 14th, 2001, 10:07 AM
#1
Thread Starter
Addicted Member
Answered! - laptop signature grabber
<VBA Question>
Hiya World,
I hope someone out there will be able to answer this..
I have a laptop with one of those square "drag-your-finger" mouse pad built in at the bottom. What I want to do is create a procedure (in EXCEL) which will open up a box and allow the user to "draw" with it. This is in aid of obtaining signatures.
There are a few questions with this.....
1) What else can I use to move the cursor (other than my finger) - I have tried using the soft end of my glasses but this doesn't work. (I know it's not a VB question but I might as well ask)
2) What would the code be.
I need it to open up a "paint" like box. As soon as contact is made with the mouse pad, a line will need to be drawn (I was thinking along the lines of:
Timer - set to minimal interval
Look for mouse movement
if mouse movement = true
then get mouse position & draw black pixel at that point
If the timer is set to a small amount - a smooth line should (hopefully) be drawn.
Then after which I need to code the mouse buttons so that "left" will clear the image so the user can try again, and "Right" will save that image and store is in the excell spreadsheet....
Is it possible....????
Monkey
----x----
Last edited by Monkey Man; Sep 14th, 2001 at 11:04 AM.
-
Sep 14th, 2001, 10:18 AM
#2
-
Sep 14th, 2001, 10:24 AM
#3
As for the code do a search for paint programs what you'd basically be doing is using the mouse move event on a form or picture that has a white background.
-
Sep 14th, 2001, 10:48 AM
#4
Fanatic Member
About those touchpad things, as far as I know (and the current standard could be different as I'm basing this comment on my own laptop, which is now 5 years old, but has a touchpad), they work on a principle of difference in electrical fields. There is a field set up throughout the plate in a thin wafer, and when you touch it with your finger, which itself has an electrical field (all organisms do), the interference of the two fields can be measured and monitored. If you've ever noticed, sometimes if your finger isn't dry, it makes the pad operate in one manner, but when dry, it works much better. Sometimes you can even make the pointer move without actually touching the plate, but you have to get very close. So for using anything other than your finger, you'll probably need something that can either generate its own electrical field comparable to the plate, or something that can interfere with the plate's field enough to cause the system to think something is trying to move the pointer. You should be careful though, as the touchplates are designed for being contacted with soft flesh, not someone jabbing it with a pen or other instrument . You may be able to get one of the actual devices used in the signature writing you mentioned and adapt that since they're designed to be used with some other instrument.
I'm baaaack...
VB5 Professional Edition, VC++ 6
Using a 1 gHz Thunderbird, 256 mb RAM, 40 gb HD system with Win98se
I feel special because I finally figured out how to loop midis: Post link
I'm a fanatic too 
-
Sep 14th, 2001, 11:03 AM
#5
Thread Starter
Addicted Member
Cheers people,
I thought that would be the answer - the code I've figured would be the easy thing. Finding something to use with the pad which will be more precise than the finger, impossible..
But thanks anyway,
Monkey
----x----
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|