Sponsored links

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


Closed Thread
 
Share Thread Tools Display Modes
Old 05-20-2005, 01:57 PM   #1
Phone Control Moderator
 
zorro's Avatar
 
Join Date: Mar 2004
Location: Munich, Germany
Posts: 1,902
zorro is on a distinguished road
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 05:42 AM.
zorro is offline  
Advertisement
 
Advertisement
Sponsored links

Old 05-20-2005, 02:09 PM   #2
Of Ice and Men
 
LagunaICE's Avatar
 
Join Date: Mar 2005
Location: Czech republic
Posts: 772
LagunaICE is on a distinguished road
Interesting idea...
LagunaICE is offline  
Old 05-20-2005, 02:10 PM   #3
Phone Control Moderator
 
zorro's Avatar
 
Join Date: Mar 2004
Location: Munich, Germany
Posts: 1,902
zorro is on a distinguished road
Yeah... but useless for you ... .NET... you know
__________________
Skinning to go... VisualDesigner2!
zorro is offline  
Old 05-20-2005, 02:36 PM   #4
Variable Bitrate
 
Join Date: Jan 2004
Location: Jersey/NY
Posts: 436
wizawuza is on a distinguished road
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, 02:39 PM   #5
Of Ice and Men
 
LagunaICE's Avatar
 
Join Date: Mar 2005
Location: Czech republic
Posts: 772
LagunaICE is on a distinguished road
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 02:48 PM.
LagunaICE is offline  
Old 05-21-2005, 05:32 AM   #6
Phone Control Moderator
 
zorro's Avatar
 
Join Date: Mar 2004
Location: Munich, Germany
Posts: 1,902
zorro is on a distinguished road
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, 05:41 AM   #7
Phone Control Moderator
 
zorro's Avatar
 
Join Date: Mar 2004
Location: Munich, Germany
Posts: 1,902
zorro is on a distinguished road
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, 12:44 PM   #8
Phone Control Moderator
 
zorro's Avatar
 
Join Date: Mar 2004
Location: Munich, Germany
Posts: 1,902
zorro is on a distinguished road
Talking Field testing

Works great
Attached Images
 
__________________
Skinning to go... VisualDesigner2!
zorro is offline  
Advertisement
 
Advertisement
Advertisement Sponsored links

Old 05-25-2005, 12:22 PM   #9
Phone Control Moderator
 
zorro's Avatar
 
Join Date: Mar 2004
Location: Munich, Germany
Posts: 1,902
zorro is on a distinguished road
Some comment on this?
__________________
Skinning to go... VisualDesigner2!
zorro is offline  
Old 05-25-2005, 12:48 PM   #10
Raw Wave
 
justintime's Avatar
 
Join Date: Apr 2005
Posts: 2,705
justintime is on a distinguished road
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  
Old 05-26-2005, 12:27 AM   #11
I'm sorry, and you are....?
 
frodobaggins's Avatar
 
Join Date: Jan 2003
Location: Ruston, LA
Posts: 8,846
frodobaggins will become famous soon enoughfrodobaggins will become famous soon enough
I like it, really cool.
__________________
[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-26-2005, 12:39 AM   #12
Super Moderator
 
xBrady's Avatar
 
Join Date: Apr 2004
Location: USA
Posts: 3,688
xBrady is a splendid one to beholdxBrady is a splendid one to beholdxBrady is a splendid one to beholdxBrady is a splendid one to beholdxBrady is a splendid one to beholdxBrady is a splendid one to beholdxBrady is a splendid one to behold
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, 03:08 AM   #13
Phone Control Moderator
 
zorro's Avatar
 
Join Date: Mar 2004
Location: Munich, Germany
Posts: 1,902
zorro is on a distinguished road
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, 04:35 AM   #14
I'm sorry, and you are....?
 
frodobaggins's Avatar
 
Join Date: Jan 2003
Location: Ruston, LA
Posts: 8,846
frodobaggins will become famous soon enoughfrodobaggins will become famous soon enough
__________________
[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, 09:16 AM   #15
Phone Control Moderator
 
zorro's Avatar
 
Join Date: Mar 2004
Location: Munich, Germany
Posts: 1,902
zorro is on a distinguished road
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 03:42 PM.
zorro is offline  
Advertisement
 
Advertisement
Advertisement Sponsored links

Closed Thread

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
Phone style text input applet (with Source code!) Dominik Software & Software Development 48 05-19-2008 06:58 PM
input for panasonic deck dizzytest General MP3Car Discussion 1 08-24-2007 04:47 PM
Requests CdRsKuLL FreeDrive 118 08-11-2006 06:09 AM
Help in designing an input selector switch bcw55 Newbie 6 03-15-2005 01:07 PM
High Input and Low input got2liv4him Car Audio 0 02-10-2005 11:38 AM



All times are GMT -5. The time now is 11:24 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