The MP3car.com Store  

Welcome to the MP3Car.com forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. Registering will also remove advertisements. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Go Back   MP3Car.com > Mp3Car Technical > Software & Software Development > Support Software > Other Cool Stuff

Closed Thread
 
Thread Tools Display Modes
Old 05-20-2005, 12:57 PM   #1
Phone Control Moderator
 
zorro's Avatar
 
Join Date: Mar 2004
Location: Munich, Germany
Vehicle: 1998 Audi A3
Posts: 1,901
My Photos: (0)
Input tool using MouseWheel

Hi Guys,

just built a nice little tool for entering keystrokes using the mouse wheel only and thought, you might wanna give it a try.

After you've copied it to your harddrive and you run it, you'll get this picture on the screen:


As you can see, it shows you a small tootip window, displaying the currently selected, the previous and the next character in the queue. To select a character, simply turn the mouse wheel. When you reach the character you need, click the mouse wheel button and it'll be send to the current control (which is supposed to be a textbox). Do that until you've completed your input.
Further you see the window is split in four regions, whereas 3 of them have a special meaning:
- BS sends a Backspace whenever you click it (with the left mouse button)
- CR sends a Carriage Return
- Func switches between normal characters, numbers and special characters

Once you stop turning the mouse wheel, this window will hide itself. To bring it back, simply hold down the wheel button until it pops up again (this timings are configurable as well).

What characters you see there browsing through, is defined within the according section in the configuration file. Feel free to edit and change this according to your needs.
Also in the configuration file you can apply colors, position and font settings. I'd say, the configuration is self explaining (for those who know me: yes, it is XML - you can use PhoneCtlConfig.exe to change it)

Needles to say that it's .NET and therefore it needs .NET Framework to run it.

If you try it, please be aware that it's just capturing mouse input. Since it doesn't consume it completely, it may happen that the application in foreground reacts on the wheel command as well.


You can download it here: MouseWheelInput.zip
__________________
Skinning to go... VisualDesigner2!

Last edited by zorro : 05-21-2005 at 04:42 AM.
zorro is offline  
Sponsored Links
Old 05-20-2005, 01:09 PM   #2
Of Ice and Men
 
LagunaICE's Avatar
 
Join Date: Mar 2005
Location: Czech republic
Vehicle: Renault Laguna 2002
Posts: 782
My Photos: (0)
Interesting idea...
LagunaICE is offline  
Old 05-20-2005, 01:10 PM   #3
Phone Control Moderator
 
zorro's Avatar
 
Join Date: Mar 2004
Location: Munich, Germany
Vehicle: 1998 Audi A3
Posts: 1,901
My Photos: (0)
Yeah... but useless for you ... .NET... you know
__________________
Skinning to go... VisualDesigner2!
zorro is offline  
Old 05-20-2005, 01:36 PM   #4
Variable Bitrate
 
Join Date: Jan 2004
Location: Jersey/NY
Vehicle: 2004 Infiniti G35 6mt Coupe
Posts: 436
My Photos: (0)
whoah, sweet prog.. haven't had a change to use yet, but I'm sure I'll need it, especially since the "i-drive" type of knob I have acts as a scroll wheel.

Thanks!
wizawuza is offline  
Old 05-20-2005, 01:39 PM   #5
Of Ice and Men
 
LagunaICE's Avatar
 
Join Date: Mar 2005
Location: Czech republic
Vehicle: Renault Laguna 2002
Posts: 782
My Photos: (0)
Quote: Originally Posted by zorro
Yeah... but useless for you ... .NET... you know

RIGHT! Agrrrrr....
Well, you still have got my compliment for invention and the end result.
Now get back to chair and code it again from scratch in Delphi 8 or something.
Bloddy coders...

Last edited by LagunaICE : 05-20-2005 at 01:48 PM.
LagunaICE is offline  
Old 05-21-2005, 04:32 AM   #6
Phone Control Moderator
 
zorro's Avatar
 
Join Date: Mar 2004
Location: Munich, Germany
Vehicle: 1998 Audi A3
Posts: 1,901
My Photos: (0)
A small improvement: If the window is open and you hold down the mouse wheel button it'll switch function mode (normal / numbers / spec. char) without the need to move the mouse and click the upper right corner.
__________________
Skinning to go... VisualDesigner2!
zorro is offline  
Old 05-21-2005, 04:41 AM   #7
Phone Control Moderator
 
zorro's Avatar
 
Join Date: Mar 2004
Location: Munich, Germany
Vehicle: 1998 Audi A3
Posts: 1,901
My Photos: (0)
Quote: Originally Posted by LagunaICE
RIGHT! Agrrrrr....
Well, you still have got my compliment for invention and the end result.
Now get back to chair and code it again from scratch in Delphi 8 or something.
Bloddy coders...

I could do that... but I love doing .NET so much.

BTW: I recognized that there is a slight performance problem using .NET with on a Via Epia Mxxxxx. So I replaced my M10000 with an old notebook (Pentium III 1Ghz) and all performane issues were blown away.
Beside, there are so many other benefits using a notebook. e.g. no more reset on starting the engine, you can use it elsewhere than only in your car.
Pity I don't have a docking station for it... it'll be more comfy removing it.
__________________
Skinning to go... VisualDesigner2!
zorro is offline  
Old 05-21-2005, 11:44 AM   #8
Phone Control Moderator
 
zorro's Avatar
 
Join Date: Mar 2004
Location: Munich, Germany
Vehicle: 1998 Audi A3
Posts: 1,901
My Photos: (0)
Talking Field testing

Works great
Attached Images
 
__________________
Skinning to go... VisualDesigner2!
zorro is offline  
Old 05-25-2005, 11:22 AM   #9
Phone Control Moderator
 
zorro's Avatar
 
Join Date: Mar 2004
Location: Munich, Germany
Vehicle: 1998 Audi A3
Posts: 1,901
My Photos: (0)
Some comment on this?
__________________
Skinning to go... VisualDesigner2!
zorro is offline  
Old 05-25-2005, 11:48 AM   #10
Raw Wave
 
justintime's Avatar
 
Join Date: Apr 2005
Vehicle: 2002 Honda CR-V
Posts: 2,699
My Photos: (0)
I personally dont have any use for this tool, but I tried it and I like it. Well done.
__________________
2002 Honda CR-V
Carputer progress: 90% [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ -]
Spent so far: $1105.90


Download the NEXUS Skin for Centrafuse
...or even Listen to my music
justintime is offline  
Sponsored Links
Old 05-25-2005, 11:27 PM   #11
9 Fingered Administrator
Lesbian
 
frodobaggins's Avatar
 
Join Date: Jan 2003
Location: Ruston, LA
Vehicle: 1998 Ranger/1991 Sunbird
Posts: 9,852
My Photos: (0)
I like it, really cool.
__________________
FrodoPlayer.com
TeaBaggins.com
[H]4 Life
My next generation Front End is right on schedule.
It will be done sometime in the next generation.
I'm a lesbian too.
I am for hire!
frodobaggins is offline  
Old 05-25-2005, 11:39 PM   #12
Super Moderator
xBrady's CarPC Specs
 
xBrady's Avatar
 
Join Date: Apr 2004
Location: USA
Vehicle: 1999/Volvo/S80
Posts: 4,572
My Photos: (1)
This is awesome, I might have to add a wheel mouse to my carputer.

I'm soooooo glad it uses .NET
__________________
AMD XP 2600+/512MB RAM/120GB hard drive
Opus 150W/DVD/GPS/7" Lilliput TS/802.11g/Bluetooth
Installed.


-GPSSecure- - GPS Tracking
-AltTabber2.2.2- - Handy touchscreen utility.
xBrady is offline  
Old 05-26-2005, 02:08 AM   #13
Phone Control Moderator
 
zorro's Avatar
 
Join Date: Mar 2004
Location: Munich, Germany
Vehicle: 1998 Audi A3
Posts: 1,901
My Photos: (0)
I just added a Windows Messaging interface upon Frodo's suggestion. So you may use other hardware than a wheel mouse (like... hmmm... I-Bus, or... hmm... phidgets?)

Details will follow...
__________________
Skinning to go... VisualDesigner2!
zorro is offline  
Old 05-26-2005, 03:35 AM   #14
9 Fingered Administrator
Lesbian
 
frodobaggins's Avatar
 
Join Date: Jan 2003
Location: Ruston, LA
Vehicle: 1998 Ranger/1991 Sunbird
Posts: 9,852
My Photos: (0)
__________________
FrodoPlayer.com
TeaBaggins.com
[H]4 Life
My next generation Front End is right on schedule.
It will be done sometime in the next generation.
I'm a lesbian too.
I am for hire!
frodobaggins is offline  
Old 05-27-2005, 08:16 AM   #15
Phone Control Moderator
 
zorro's Avatar
 
Join Date: Mar 2004
Location: Munich, Germany
Vehicle: 1998 Audi A3
Posts: 1,901
My Photos: (0)
Post Update!

As I metioned before, I've updated MouseWheelInput to provide the capability of using other hardware for input than a wheel mouse only. This is how it works:



All you need is the piece of software labled "Driver" to translate the input device commands into MWI commands. These are:
Code:
WM_WHEELBUTTONDOWN = WM_USER + 0 WM_WHEELBUTTONUP = WM_USER + 1 WM_WHEELSCROLL = WM_USER + 2 WM_ENTER = WM_USER + 3 WM_BACK = WM_USER + 4 WM_SWITCHMODE = WM_USER + 5

The only message that is transmitting a parameter is WM_WHEELSCROLL, which has to describe the scrolling direction in lParam:
>0 - scroll up
<0 - scroll down

Messages have to be sent using
Code:
SendMessage(handle, message, wParam, lParam)

Whereas the handle can be determined using
Code:
handle = FindWindow(null, "MouseWheelInput")

To enable this feature, set <UseMouseHook> to false in the configuration file.

A driver also may communicate via the FrodoComm interface. This can be accomplished by sending a specific notification (with PostMessageById or PostMessageByName) with:
FrodoCommMessageType : SET
FrodoCommMessageEventName: INPUT
FrodoCommMessageFormat: TEXT
The FrodoCommMessage can be one of these:
Code:
WHEELBUTTONDOWN WHEELBUTTONUP WHEELSCROLLUP WHEELSCROLLDOWN ENTER BACK SWITCHMODE

As you see also in the picture above, keystrokes can be sent to Windows or to FrodoComm (with a PostMessageBroadCast message).
To make it work with FrodoComm instead of Windows, set option <UseFrodoComm> to true in the configuration file.

You'll get then a FrodoCommMessageType Notify with FrodoCommMessageEventName KeyPress and a Xml message like this one:
<Key virtualKey="65">A</Key>


Enjoy playing around
__________________
Skinning to go... VisualDesigner2!

Last edited by zorro : 05-27-2005 at 02:42 PM.
zorro is offline  
Sponsored Links
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Phone style text input applet (with Source code!) Dominik Software & Software Development 48 05-19-2008 05:58 PM
input for panasonic deck dizzytest General MP3Car Discussion 1 08-24-2007 03:47 PM
Requests CdRsKuLL FreeDrive 118 08-11-2006 05:09 AM
Help in designing an input selector switch bcw55 Newbie 6 03-15-2005 12:07 PM
High Input and Low input got2liv4him Car Audio 0 02-10-2005 10:38 AM


All times are GMT -5. The time now is 06:47 PM.


Sponsored Links
The MP3car.com Store

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
Copyright © 1999 - 2008 Mp3Car.com Inc.
Ad Management by RedTyger
Message Board Statistics