| View previous topic :: View next topic |
| Author |
Message |
Wreyth

Joined: 03 Nov 2007 Posts: 77
Digg It |
Posted: Thu Jun 26, 2008 5:48 am Post subject: Starting a new project need some scripting help |
|
|
ok i am starting a new project with building a mouse glove and need some info on how to script a few things in.
1. how to invert the up and down axis of the mouse.
2. i already know the mouse pointer works off of 1 ir led just need to figure out how to script in recognizing a 2nd led to a mouse click and possibly a 3rd led to another mouse click or a pulse of like 3 or 4.
and yes i know i can do the whole mouse and click thing with a p5 glove but what i am trying to do is change the position of the hand to more of the maestro style like cynergy's project maestro. as it sits right now once i get the mouse up and down inverted 1 single ir led works Perfect as the mouse pointer pos.
any help here would be appriciated *COUGH* Carl lol please |
|
| Back to top |
|
 |
Wreyth

Joined: 03 Nov 2007 Posts: 77
Digg It |
Posted: Thu Jun 26, 2008 6:10 am Post subject: |
|
|
ok the pouse pointer inverted is fixed i figured it out now how to incorperate a 2nd led as a function
ie
if dot 2vis then
mouse.LeftButton = true
or something to that effect since i am using 1 led to control the cursor movement |
|
| Back to top |
|
 |
Wreyth

Joined: 03 Nov 2007 Posts: 77
Digg It |
Posted: Thu Jun 26, 2008 6:52 am Post subject: |
|
|
lol sadly given a few minutes of time i figured it all out ..... now i just have to build the glove to test this out. if it works than i have my own minority report/ cynergy maestro project gloves with out writing a new program lol.
i will left you guys know how this works out once i get the gloves built and if it works out like it's supposed to then i will post the script and possibly a how to build your own IR gloves.
wish me luck! |
|
| Back to top |
|
 |
Wreyth

Joined: 03 Nov 2007 Posts: 77
Digg It |
Posted: Sat Jun 28, 2008 8:12 am Post subject: |
|
|
well after alot of tweaking on led positions and the type of swtiches to use to signal for mouse click's i am happy to say that the project is a success!!!!
i will make a video and post it up of the glove in action but if you watch cynergy project maestro clips you get the idea of how it is setup to work. 2 finger pinch is my left mouse button while the 3 finger grab is my right mouse button.
the script is designed to do certain things when a certain number of led's are visable so it actualy took me about 15 minutes after thinking of the project to write the glovepie script and about 2 days now to build the gloves due to work schedule and i changed my layout and switch ideas several times but it takes about an hour to round up the parts and about 2 hours to put it together.
i will say the glove isn't practical for long uses without proping your elbow on an arm or something but definatly doable. cynergy labs can kiss my butt since they like to keep everything on the hush hush and i have my own working gloves using glovepie |
|
| Back to top |
|
 |
|