Page 4 of 5 FirstFirst 12345 LastLast
Results 31 to 40 of 49

Thread: Phone style text input applet (with Source code!)

  1. #31
    Variable Bitrate
    Join Date
    Jun 2004
    Location
    Sydney, Australia
    Posts
    273
    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!)

  2. #32
    I'm sorry, and you are....? frodobaggins's Avatar
    Join Date
    Jan 2003
    Location
    Ruston, LA
    Posts
    8,846
    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!

  3. #33
    FLAC Spaghetti's Avatar
    Join Date
    Jul 2003
    Location
    Spagcave, in da UK Today's phrase: J'aime Alizee
    Posts
    1,716
    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??

  4. #34
    Variable Bitrate
    Join Date
    Jun 2004
    Location
    Sydney, Australia
    Posts
    273
    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 Attached Files

  5. #35
    Variable Bitrate
    Join Date
    Jun 2004
    Location
    Sydney, Australia
    Posts
    273
    Jackpot! Thankyou Frodo the 12Dicts has some great files...

  6. #36
    I'm sorry, and you are....? frodobaggins's Avatar
    Join Date
    Jan 2003
    Location
    Ruston, LA
    Posts
    8,846
    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!

  7. #37
    Raw Wave god_of_cpu's Avatar
    Join Date
    Jan 2004
    Location
    SilverSpring Maryland
    Posts
    2,960
    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.

  8. #38
    Variable Bitrate
    Join Date
    Jun 2004
    Location
    Sydney, Australia
    Posts
    273
    Dammit... Cant seem to download your file... Any chance of emailing it to me? dbloemhard at yahoo com

    Thanks

  9. #39
    Variable Bitrate
    Join Date
    Jun 2004
    Location
    Sydney, Australia
    Posts
    273
    Can you attach it to this thread?

  10. #40
    Raw Wave god_of_cpu's Avatar
    Join Date
    Jan 2004
    Location
    SilverSpring Maryland
    Posts
    2,960
    Done
    Attached Files Attached Files
    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.

Page 4 of 5 FirstFirst 12345 LastLast

Similar Threads

  1. GPS/MapPoint VB Source Code
    By stevieg in forum Software & Software Development
    Replies: 7
    Last Post: 01-28-2011, 04:59 PM
  2. Alpha Release: XMPC-CAR for XM
    By gork in forum Software & Software Development
    Replies: 88
    Last Post: 01-11-2006, 01:19 PM
  3. XMPC-CAR source code now available!
    By gork in forum Software & Software Development
    Replies: 6
    Last Post: 04-06-2004, 01:33 PM
  4. Questions for developers
    By SuperG35 in forum ME Archive
    Replies: 28
    Last Post: 08-26-2003, 11:12 AM
  5. Dos MP3 player/decoder source code?
    By Fosgate in forum Software & Software Development
    Replies: 4
    Last Post: 03-23-2000, 04:46 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •