Sponsored links

Go Back   MP3Car.com > Mp3Car Technical > Software & Software Development


Reply
 
Share Thread Tools Display Modes
Old 02-13-2007, 02:42 PM   #121
Variable Bitrate
 
cherrybomb's Avatar
 
Join Date: Apr 2005
Location: Southern Califorina
Posts: 233
cherrybomb is on a distinguished road
Okay, here's the latest binary.

This is now configurable from the XML file (a sample is included), can send window messages, or execute. It's technically setup to send key presses as well, though that part is not yet working due to an Asynchronous I/O issue I have to work out.

This doesn't do much validation of the configuration, so if you tweak the config file, be prepared for it to fail, and the app to crash.

It puts an icon in your system tray when it's running. The blue icon if the space navigator is present, red if it is not. Right clicking on the tray icon allows you to exit.

It's coming along, certainly more work to do.

*EDIT: Download removed, see latest download link on the SourceForge project site.
__________________
'99 Ford Explorer Eddie Bauer
CarPC Progress ~= 97%. Everything is installed, and operational. Still need to tweak and tune, and do some "finish" fabrication.
CarPC Project Web Site

SpaceNavigatorDriver SourceForge Project

Check out my blog.

Last edited by cherrybomb; 02-15-2007 at 07:06 PM.
cherrybomb is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Old 02-13-2007, 03:19 PM   #122
Newbie
 
intervex's Avatar
 
Join Date: Jan 2007
Location: Glendora, CA
Posts: 29
intervex is an unknown quantity at this point
.dll dependency failure

Hey Cherry,
Just transfered the new SNDriver to the test pc and received the following error...

Quote:
SpaceNavigatorApp.exe - Unable To Locate Component

This application has failed to start because xerces-c_2_7.dll was not found. Re-installing the application may fix this problem.

__________________
Intervex

CarPC Progress
■■■■■■■■■95%
just missing the car... ;-)


SpaceNav Driver Dev
intervex is offline   Reply With Quote
Old 02-13-2007, 03:59 PM   #123
Variable Bitrate
 
cherrybomb's Avatar
 
Join Date: Apr 2005
Location: Southern Califorina
Posts: 233
cherrybomb is on a distinguished road
Quote: Originally Posted by intervex View Post
Hey Cherry,
Just transfered the new SNDriver to the test pc and received the following error...

Right...

Forgot there are dependencies now. :-)

You can download the required DLL straight from the project site. Get the Windows Binary. The required DLL(s) should be in the "bin" directory. Either copy them to your WINDOWS\system32 directory, or into the same directory as the driver.

http://xml.apache.org/xerces-c/download.cgi
__________________
'99 Ford Explorer Eddie Bauer
CarPC Progress ~= 97%. Everything is installed, and operational. Still need to tweak and tune, and do some "finish" fabrication.
CarPC Project Web Site

SpaceNavigatorDriver SourceForge Project

Check out my blog.
cherrybomb is offline   Reply With Quote
Old 02-13-2007, 04:54 PM   #124
Newbie
 
intervex's Avatar
 
Join Date: Jan 2007
Location: Glendora, CA
Posts: 29
intervex is an unknown quantity at this point
B-E-A-Utiful work Cherry! This thing works wonderful, in playing with the XML file, how do you arrive at the numerical equivalent of keys?
__________________
Intervex

CarPC Progress
■■■■■■■■■95%
just missing the car... ;-)


SpaceNav Driver Dev

Last edited by intervex; 02-13-2007 at 05:09 PM.
intervex is offline   Reply With Quote
Old 02-13-2007, 05:05 PM   #125
Variable Bitrate
 
cherrybomb's Avatar
 
Join Date: Apr 2005
Location: Southern Califorina
Posts: 233
cherrybomb is on a distinguished road
Quote: Originally Posted by intervex View Post
B-E-A-Utiful work Cherry! This thing works wonderful, in playing with the XML file, how do you arrive at the numerical equivalent of keys?

It's a "scancode" I'm going to include either a utility, or a dialog of the app to convert key presses into the scan codes.

However, the sending of keypresses isn't working right now anyway, due to some unresolved Asynch I/O stuff that prevents me from sending keyboard input, while the SN is producing output.
__________________
'99 Ford Explorer Eddie Bauer
CarPC Progress ~= 97%. Everything is installed, and operational. Still need to tweak and tune, and do some "finish" fabrication.
CarPC Project Web Site

SpaceNavigatorDriver SourceForge Project

Check out my blog.
cherrybomb is offline   Reply With Quote
Old 02-13-2007, 05:13 PM   #126
Newbie
 
intervex's Avatar
 
Join Date: Jan 2007
Location: Glendora, CA
Posts: 29
intervex is an unknown quantity at this point
Ah, ok. I was going to try and set the twist posAction and negAction to the left/right arrow keys, and the pushPull posAction to return. This should allow me to navigate fairly easliy through a skin like iDrive... Are there any other current limitation in the config file?
__________________
Intervex

CarPC Progress
■■■■■■■■■95%
just missing the car... ;-)


SpaceNav Driver Dev
intervex is offline   Reply With Quote
Old 02-13-2007, 06:07 PM   #127
Variable Bitrate
 
cherrybomb's Avatar
 
Join Date: Apr 2005
Location: Southern Califorina
Posts: 233
cherrybomb is on a distinguished road
Quote: Originally Posted by intervex View Post
Ah, ok. I was going to try and set the twist posAction and negAction to the left/right arrow keys, and the pushPull posAction to return. This should allow me to navigate fairly easliy through a skin like iDrive... Are there any other current limitation in the config file?

Nope, just what you see.

However, instead of using arrow keys (if you're using RoadRunner), you can just send the appropriate window message for next, or last button.

I.E. "CTRLLEFT" and "CTRLRIGHT". Read the "Skin Commands.txt" file for details. :-)
__________________
'99 Ford Explorer Eddie Bauer
CarPC Progress ~= 97%. Everything is installed, and operational. Still need to tweak and tune, and do some "finish" fabrication.
CarPC Project Web Site

SpaceNavigatorDriver SourceForge Project

Check out my blog.
cherrybomb is offline   Reply With Quote
Old 02-13-2007, 06:36 PM   #128
Newbie
 
intervex's Avatar
 
Join Date: Jan 2007
Location: Glendora, CA
Posts: 29
intervex is an unknown quantity at this point
Perfect, that is working wonderfully(I appologize for my ignorance on the window messages... I have not used roadrunner but for a week or so...) What are the maximum values for the Threshold settings?
__________________
Intervex

CarPC Progress
■■■■■■■■■95%
just missing the car... ;-)


SpaceNav Driver Dev
intervex is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Old 02-13-2007, 06:48 PM   #129
Variable Bitrate
 
cherrybomb's Avatar
 
Join Date: Apr 2005
Location: Southern Califorina
Posts: 233
cherrybomb is on a distinguished road
Quote: Originally Posted by intervex View Post
Perfect, that is working wonderfully(I appologize for my ignorance on the window messages... I have not used roadrunner but for a week or so...) What are the maximum values for the Threshold settings?

The range of any axis is -512 to 512, so the maximum threshold is technically 511 if you want anything to ever happen. However, I've never seen any axis get pegged.
__________________
'99 Ford Explorer Eddie Bauer
CarPC Progress ~= 97%. Everything is installed, and operational. Still need to tweak and tune, and do some "finish" fabrication.
CarPC Project Web Site

SpaceNavigatorDriver SourceForge Project

Check out my blog.
cherrybomb is offline   Reply With Quote
Old 02-13-2007, 06:53 PM   #130
Newbie
 
intervex's Avatar
 
Join Date: Jan 2007
Location: Glendora, CA
Posts: 29
intervex is an unknown quantity at this point
posAction and negAction then simply multiply the integer by +1 or -1 respectively? (in other words, the Threshold would always be a positive number unless you want to invert the axes?)
__________________
Intervex

CarPC Progress
■■■■■■■■■95%
just missing the car... ;-)


SpaceNav Driver Dev
intervex is offline   Reply With Quote
Old 02-13-2007, 07:14 PM   #131
Variable Bitrate
 
cherrybomb's Avatar
 
Join Date: Apr 2005
Location: Southern Califorina
Posts: 233
cherrybomb is on a distinguished road
Quote: Originally Posted by intervex View Post
posAction and negAction then simply multiply the integer by +1 or -1 respectively? (in other words, the Threshold would always be a positive number unless you want to invert the axes?)

Yes, the threshold is intended to be a positive integer always. The threshold determines the distance (either positive or negative) the controller has traveled on the axis.

Supplying a negative number for the threshold would likely do bad things.
__________________
'99 Ford Explorer Eddie Bauer
CarPC Progress ~= 97%. Everything is installed, and operational. Still need to tweak and tune, and do some "finish" fabrication.
CarPC Project Web Site

SpaceNavigatorDriver SourceForge Project

Check out my blog.
cherrybomb is offline   Reply With Quote
Old 02-13-2007, 07:23 PM   #132
Newbie
 
intervex's Avatar
 
Join Date: Jan 2007
Location: Glendora, CA
Posts: 29
intervex is an unknown quantity at this point
lol, ok...

So, I have it working with limited success, it works but crashes intermittently... but that's to be expected I suppose at this stage in development...

That being said, this is an amazing little app you've put together, had I attempted something like this I would be sitting here, staring at my screen, eyes glazed over, repeatedly saying "I want me mum"
__________________
Intervex

CarPC Progress
■■■■■■■■■95%
just missing the car... ;-)


SpaceNav Driver Dev
intervex is offline   Reply With Quote
Old 02-14-2007, 10:51 AM   #133
Low Bitrate
 
Join Date: Jun 2003
Posts: 65
chiark
My SN has just arrived today, and I've just upgraded to VS.NET 2005 from 2003... All looking very good - at this rate it'll be finished before I plug the thing in
chiark is offline   Reply With Quote
Old 02-15-2007, 06:38 PM   #134
Variable Bitrate
 
cherrybomb's Avatar
 
Join Date: Apr 2005
Location: Southern Califorina
Posts: 233
cherrybomb is on a distinguished road
Okay, the first (mostly) feature complete beta is ready.

Download Link

Lets start with what it does not do.
- Gestures
- Context switching (default context only)

What it does do
- Detects if the SN is present, and re-checks when devices are added or removed. The icon in the systray is blue when it's present, red when it's not.
- Sends keypresses (or multiple key presses)
- Sends WM_COPYDATA window messages containing strings (RoadRunners preferred method of receiving input)
- Simulates mouse movement and button clicks (right and left mouse buttons only)
- Executes programs/files with commandline parameters
- Get configured via a fairly self documenting XML config file

Please read the release notes before downloading and installing, since it does have a dependency upon Xerces C++, and there are some things to consider before using it.

It should work on anything newer than win2k (didn't bother with anything older than that).

I'll start work on context switching soon, not sure the best way to do this, though I'm considering using WM_COPYDATA messages with strings, similar to what RR does. When it receives one with the message "ContextUp" it'll go to the previous context, or "ContextDown" to the next context. This would allow you to easily assign the context switch to one of the actions, or allow other apps to do it, most notably RR. :-)

Let me know what you all think!
__________________
'99 Ford Explorer Eddie Bauer
CarPC Progress ~= 97%. Everything is installed, and operational. Still need to tweak and tune, and do some "finish" fabrication.
CarPC Project Web Site

SpaceNavigatorDriver SourceForge Project

Check out my blog.
cherrybomb is offline   Reply With Quote
Old 02-15-2007, 07:09 PM   #135
Newbie
 
intervex's Avatar
 
Join Date: Jan 2007
Location: Glendora, CA
Posts: 29
intervex is an unknown quantity at this point
Thumbs up Cherry is truly the bomb

So far so good Cherry... Downloaded and installed latest build, loaded in the config file I sent to you via pm the other day... All seems well, I'll play with some of the other xml config options as time permits over the next hour or so and then I'll pick up on it again tomorrow... great work on this app!

So far I've had no crashes in the beta, did you isolate the source of the crashes from the alpha build?

Again great work Cherry if you were here in LA I'd buy ya a beer keep up the great work and I'll let u know more as I know more!
__________________
Intervex

CarPC Progress
■■■■■■■■■95%
just missing the car... ;-)


SpaceNav Driver Dev
intervex is offline   Reply With Quote
Advertisement
 
Advertisement
Advertisement Sponsored links

Reply

Bookmarks

Thread Tools
Display Modes

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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Questions! Yellow-Snow Mobile Impact 4 06-10-2006 06:18 PM
iGuidance Font Size Fix summary thread Viscouse GPS 29 03-28-2006 07:21 PM
Hot Chicks Thread - NOT WORK SAFE ODYSSEY Off Topic 1 05-17-2005 10:38 PM
Request regarding the Offical Skin Presentation thread Confused MediaCar 3 01-07-2004 12:52 PM



All times are GMT -5. The time now is 10:35 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.2
Copyright © 1999 - 2008 Mp3Car.com Inc.Ad Management by RedTyger
Message Board Statistics