Sponsored links

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


Reply
 
Share Thread Tools Display Modes
Old 08-26-2004, 09:01 PM   #31
Variable Bitrate
 
Join Date: Jun 2004
Location: Sydney, Australia
Posts: 273
Dominik is on a distinguished road
Looking at that site, they have used the first method i came up with (but didnt end up implementing). That is probably the way Phones do it, but i actually thought it would be too slow!

Garry, My program returns the word combinations instantly (this is a 1Ghz desktop); so if you havent already indexed that table, it must just be the size of your DB. I'll try to run a spellcheck against my word list, and if i succeed i'll post that (seems to have all the good words in it!)
Dominik is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Old 08-26-2004, 09:07 PM   #32
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
Quote: Originally Posted by Confused
Just been looking for the past 20 mins and i've not found any decent dictionary yet, i'm calling it a night (it's 1:35am here), if anyone has a half decent dictionary file, let me know where, and I'll give it a try tomorrow, and report back


Garry

http://wordlist.sourceforge.net/
__________________
[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   Reply With Quote
Old 08-26-2004, 09:25 PM   #33
Raw Wave
 
Spaghetti's Avatar
 
Join Date: Jul 2003
Location: Spagcave, in da UK Today's phrase: J'aime Alizee
Posts: 1,716
Spaghetti has a brilliant futureSpaghetti has a brilliant futureSpaghetti has a brilliant futureSpaghetti has a brilliant futureSpaghetti has a brilliant futureSpaghetti has a brilliant futureSpaghetti has a brilliant futureSpaghetti has a brilliant futureSpaghetti has a brilliant futureSpaghetti has a brilliant futureSpaghetti has a brilliant future
Quote: Originally Posted by cheerio
ok maby i dunno what your talking about. This is t-9 predictive text. Meaning you press 1 key, 1 time, for each letter. why would you need 'i' and 'a'. I ASSUME T-9 goes by grammar to predict the next word, well not really grammar, buf if the word before it is some sort of word it can determine what kind the next word will be. understand?

http://www.t9.com/learn.html

What he's saying is that commonly used words like "I" and "A" are not included in the dictionary. Understand??
Spaghetti is offline   Reply With Quote
Old 08-26-2004, 09:29 PM   #34
Variable Bitrate
 
Join Date: Jun 2004
Location: Sydney, Australia
Posts: 273
Dominik is on a distinguished road
Cherio, i think what Garry is saying is that all he needs is the Dictionary. the English dictionary on that site is only 6000 words (thats not enough for normal conversation!)

Anyway, here is the source of my app (dont know if it will work without the DB).

I have a MSSQL DB called WordDB with a table English which has the following columns
1 - Int
2 - Int
3 - Int
4 - Int
5 - Int
6 - Int
7 - Int
8 - Int
Word - Char(255)
Used - Int

The last column will be updated each time the word is used, and all retrieves are done sorted by Used Descending. So the most commonly used word combos will be at the top of the list

By the way, if anyone wants my wordlist (160,000 words or so) email me at dominik(at)lansa.com.au
Attached Files
File Type: zip VB98.zip (23.3 KB, 148 views)
Dominik is offline   Reply With Quote
Old 08-26-2004, 09:43 PM   #35
Variable Bitrate
 
Join Date: Jun 2004
Location: Sydney, Australia
Posts: 273
Dominik is on a distinguished road
Jackpot! Thankyou Frodo the 12Dicts has some great files...
Dominik is offline   Reply With Quote
Old 08-26-2004, 09:59 PM   #36
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 aim to please.
__________________
[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   Reply With Quote
Old 08-26-2004, 11:37 PM   #37
Raw Wave
 
god_of_cpu's Avatar
 
Join Date: Jan 2004
Location: SilverSpring Maryland
Posts: 2,960
god_of_cpu has a reputation beyond reputegod_of_cpu has a reputation beyond reputegod_of_cpu has a reputation beyond reputegod_of_cpu has a reputation beyond reputegod_of_cpu has a reputation beyond reputegod_of_cpu has a reputation beyond reputegod_of_cpu has a reputation beyond reputegod_of_cpu has a reputation beyond reputegod_of_cpu has a reputation beyond reputegod_of_cpu has a reputation beyond reputegod_of_cpu has a reputation beyond repute
Heres the keyboard hook program I was talking about earlier. Its actually two programs a DLL that contains the hook and a tray application that uses it. The main program does not have any of the logic in it to replace the numbers input with letters, but all that you should have to do to is add that logic and clean up some of the code a bit and it will compile fine.

Right now all the program does is replace whatever key you pressed with a '0' when the scroll lock key is toggled on, when its not toggled on, the keyboard works normally.

The real magic to this program happens in the OnKeyPress function in TrayApp.cpp. To make this program work as a phone input thing, you woudl simply have to replace the line iNewKey = '0'; with the logic for whatever key should be output. Just set iNewKey = 0; if you don't want to return anything for a key press, but are simply just count it. The wParam parameter of the OnKeyPress function contains the virtual key code of key that was pressed and it should return the key that should be replaced. The extra logic in the function is to make sure that the same keycode is returned for the keyup and for the keydown messages.

I don't have time to write this program myself, but I will answer any questions about the code.

YOu could also use the Kbhook.DLL from visual basic. To use it from VB or any language, just call SetGetMsgHook(hWnd, 0,0); where hWnd is a handle to your window. Then just look for the message with the value of WM_USER + 1068 when you recieve this message, you should process it just like it is processed in the OnKeyPress function in TrayApp.cpp

You should also call KillGetMsgHook from the dll when the program exits.

Souce for the dll can be found under kbhook folder. Run TrayApp.exe to see the program run. Just type stuff and if numlock is on it will be a 0.

Binary and source are contained in this zip:
https://filebox.vt.edu/users/cholbroo/PhoneKeyboard.zip
__________________
StreetDeck.com Developer (I am Chuck)
Get StreetDeck at http://www.streetdeck.com
The Official StreetDeck Forums have moved, please visit us at http://www.streetdeck.com/forum for official support for Streetdeck.

Last edited by god_of_cpu; 08-27-2004 at 12:28 AM.
god_of_cpu is offline   Reply With Quote
Old 08-28-2004, 02:19 AM   #38
Variable Bitrate
 
Join Date: Jun 2004
Location: Sydney, Australia
Posts: 273
Dominik is on a distinguished road
Dammit... Cant seem to download your file... Any chance of emailing it to me? dbloemhard at yahoo com

Thanks
Dominik is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Old 08-28-2004, 02:26 AM   #39
Variable Bitrate
 
Join Date: Jun 2004
Location: Sydney, Australia
Posts: 273
Dominik is on a distinguished road
Can you attach it to this thread?
Dominik is offline   Reply With Quote
Old 08-28-2004, 09:43 AM   #40
Raw Wave
 
god_of_cpu's Avatar
 
Join Date: Jan 2004
Location: SilverSpring Maryland
Posts: 2,960
god_of_cpu has a reputation beyond reputegod_of_cpu has a reputation beyond reputegod_of_cpu has a reputation beyond reputegod_of_cpu has a reputation beyond reputegod_of_cpu has a reputation beyond reputegod_of_cpu has a reputation beyond reputegod_of_cpu has a reputation beyond reputegod_of_cpu has a reputation beyond reputegod_of_cpu has a reputation beyond reputegod_of_cpu has a reputation beyond reputegod_of_cpu has a reputation beyond repute
Done
Attached Files
File Type: zip PhoneKeyboard.zip (163.0 KB, 257 views)
__________________
StreetDeck.com Developer (I am Chuck)
Get StreetDeck at http://www.streetdeck.com
The Official StreetDeck Forums have moved, please visit us at http://www.streetdeck.com/forum for official support for Streetdeck.
god_of_cpu is offline   Reply With Quote
Old 08-28-2004, 08:24 PM   #41
Variable Bitrate
 
Join Date: Jun 2004
Location: Sydney, Australia
Posts: 273
Dominik is on a distinguished road
Thanks, got it... I will have a looksee tonight. I'm quietly confident that i can do the regular input app in C++ (i'll change the tray icon to the currently selected letter, then when it times out it will insert the keystroke).

I hope i can figure something out for Predictive Text though...
Dominik is offline   Reply With Quote
Old 03-07-2008, 11:15 PM   #42
ptk
Variable Bitrate
 
Join Date: Apr 2004
Location: Singapore
Posts: 333
ptk is on a distinguished road
sorry to dig this old thread old.
did you guys finish the T9 input hook?
__________________
***
CarPC Ver 4 completed. Aopen i45GMT-HD, C2D mobile 2GHz. Photofast 64GB SSD. Novatel EU-850D
ptk is offline   Reply With Quote
Old 04-14-2008, 05:10 AM   #43
Maximum Bitrate
 
bes51659's Avatar
 
Join Date: Sep 2005
Location: Stockholm, Sweden
Posts: 652
bes51659 is on a distinguished road
I'll try and jump on this old thread too :-)

To me it is good enough to press key 2 on my phone twice for 'b' for instance. And I will probably only use it with navigator 7, which I think will predict street name anyway.

If I had understood the text correctly, and after playing a bit with the sonyericsson app, I cannot get the actual text from the phone using its internal T9. I have to use something like the keyboard hook even if I need to do a simple thing as to detect 2 presses on '2' as 'b'?

I want to use a steeringwheel button to enable keypad _and_ voice input. Once key is pressed it is keyboard only, and if no HID deveice can be connected it is voice only. The steeringwheel input as such is in place already with IBus interface and IBusComM.

But I am not sure about the connection of the phone as HID device. Can it be automatic? Will it disable it as a phone? Can it be initiated from phone, or has it got to be the PC connecting the HID device?

And most of all; has this been done already?

Last edited by bes51659; 04-14-2008 at 05:44 AM.
bes51659 is online now   Reply With Quote
Old 04-14-2008, 09:09 AM   #44
Maximum Bitrate
 
bes51659's Avatar
 
Join Date: Sep 2005
Location: Stockholm, Sweden
Posts: 652
bes51659 is on a distinguished road
I just noticed that after upgrading the widcomm BT driver to my Sandberg BT radio I could activate remote control from entertainment menu on my K800i phone! Previously I could only connect by starting configuration all over.

So the problem turns out to be the opposite! I cannot control if phone is remote control from the PC. It should be possible to _invite_ phone, giving me the option to press y or n. Anyone knows how to do this?

B-O


In folder:
My Bluetooth Places\Entire Bluetooth Neighborhood\K800i
("view devices in range", dbl-clc on phone)
I can see the service, but I cannot connect to it. Only disconnect if connected and inspect status.
bes51659 is online now   Reply With Quote
Old 04-15-2008, 04:32 AM   #45
Maximum Bitrate
 
bes51659's Avatar
 
Join Date: Sep 2005
Location: Stockholm, Sweden
Posts: 652
bes51659 is on a distinguished road
I've just made my first hid file. It will give normall letters with normal 12key keypad + <next> <previous> <vol up> <vol down>.

I've also started a thread on sonyericsson to try and find out how to get hold of the original image with phone keypad.

No one knows how to initialize remote control this from the PC?


In remote mode with my own background.


Text entering

Edit: Oh yeah, I get mouse movement and left-button-clic from joy-stick

I have also found that it is possible to receive calls in this remote mode! Amazing phone, don't you think? :-)

Last edited by bes51659; 04-15-2008 at 06:45 AM.
bes51659 is online now   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
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
Alpha Release: XMPC-CAR for XM gork Software & Software Development 88 01-11-2006 01:19 PM
GPS/MapPoint VB Source Code stevieg Software & Software Development 4 06-08-2004 03:24 PM
XMPC-CAR source code now available! gork Software & Software Development 6 04-06-2004 01:33 PM
Questions for developers SuperG35 ME Archive 28 08-26-2003 11:12 AM
Dos MP3 player/decoder source code? Fosgate Software & Software Development 4 03-23-2000 04:46 AM



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