Page 2 of 5 FirstFirst 12345 LastLast
Results 11 to 20 of 49

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

  1. #11
    Variable Bitrate mutilator's Avatar
    Join Date
    Jul 2002
    Location
    Staffordshire - united kingdom
    Posts
    363
    i just programed up my media remote to numpad buttons in girder, and it works great, it has the lettering (abc, def) under the numbers too which is really cool. one more thing though, my remote has 2-ABC, 3-DEF etc, but on this prog its 8-abc, 9-def.
    could this be reprogramable?

    thanks,
    tom.

  2. #12
    Raw Wave Confused's Avatar
    Join Date
    Aug 2003
    Location
    Essex, England
    Posts
    2,224
    I will definitely be looking at this code within the next few days for integration into AIMEE I have a PS2 numberpad sitting in my shed doing nothing that fits into my armrest perfectly, this will be an awesome addition to AIMEE and my car to get it done


    Garry
    Co-Developer of A.I.M.E.E
    www.aimee.cc

  3. #13
    Newbie keegan's Avatar
    Join Date
    Aug 2004
    Location
    Reading, UK
    Posts
    38
    with the whole t9 thing in mind, how are you storing or planning on storing the dictionary file?

    I was thinking that if you could store it in a tree then searching through the database would be quite quick as you can ignore a lot of words very easily by pruning every branch on the tree but the first letter typed and so on for each following letter.

    I think thats how t9 works anyhow, just a thought

  4. #14
    Variable Bitrate
    Join Date
    Jun 2004
    Location
    Sydney, Australia
    Posts
    273
    Thats an interesting thought Keegan. I was just going to store the words into 37 tables (1 letter per table, 0-9, and punctuation), and query the table. Then the resultset from that gets passed into the function recursively, so each function just takes unmatched words out until you reach the end of inputted characters, or until there are no more words (at which point i plan on calling the first input applet to let you spell the words!)

    Actually, that kind of sounds like what you are talking about, doesnt it...

  5. #15
    Variable Bitrate
    Join Date
    Jun 2004
    Location
    Sydney, Australia
    Posts
    273
    Slight modification: This version uses the keys as they are layed out (e.g. 1 = Punctuation, 2 = abc2, 3 = def3 etc

    I'm still working on a version which is completely customisable (allow you to enter international characters into it, or change what the +, -, . keys do as well. But its got a bit busier here at work, so it might take a bit (really should get me a version of Visual Studio at home!)
    Attached Files Attached Files

  6. #16
    Raw Wave Confused's Avatar
    Join Date
    Aug 2003
    Location
    Essex, England
    Posts
    2,224
    Dominik,

    I will be making it fully customisable using an ini file, so once I've done that I shall send it back to you (so you can do some work on T9 stuff if you want )


    Garry
    Co-Developer of A.I.M.E.E
    www.aimee.cc

  7. #17
    Newbie keegan's Avatar
    Join Date
    Aug 2004
    Location
    Reading, UK
    Posts
    38
    Yeah, and i think that would be easier to do in basic than trees are. Though i havent used vb for quite some time

  8. #18
    Variable Bitrate
    Join Date
    Jun 2004
    Location
    Sydney, Australia
    Posts
    273
    Predictive text works!

    just sorting out some details before i release the program (its currently using an MSSQL Database, but this might be hard to distribute). The way it works is quite simple really; its the Database which does most of the work - Each word is actually broken up into the letters it comprises of.

    For example: the words hello & World are stored as

    Word| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
    ----------------------------------------
    hello | 4 | 3 | 5 | 5 | 6 |NULL|NULL|NULL|
    World| 9 | 6 | 7 | 5 | 3 |NULL|NULL|NULL|

    So when i press 4, i do an SQL Query for all words that have 4 as the first keypress. Then when i press 3, i search for all words that have 4 as the first letter and 3 as the second letter. Speed is not an issue on the MSSQL database, but i need to try an Access DB

    (Part of my program also loads words from a Text file, inserting records into the DB with the letters mapped out)

    Will post program in the next few days...

  9. #19
    Raw Wave god_of_cpu's Avatar
    Join Date
    Jan 2004
    Location
    SilverSpring Maryland
    Posts
    2,960
    You could make this thing not require cutting and pasting and have it enter directly into any textbox or convert any number presses or combination of number presses into letters for every running program by creating a global windows hook. See http://msdn.microsoft.com/library/de...dowshookex.asp You could use the numlock or scrolllock status to determine when numbers should be converted to letters and when they should simply pass through as numbers. With the hook, you would just change the data as it is recieved from the keyboard before it ever gets to the application. I wrote an application before that converted any keyboard key you pressed into a single phrase, I'll post it later if I can find it. It's in C though. I know you can do a application wide hook in VB, not sure about a global one though.
    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.

  10. #20
    Raw Wave god_of_cpu's Avatar
    Join Date
    Jan 2004
    Location
    SilverSpring Maryland
    Posts
    2,960
    Quote Originally Posted by Dominik
    just sorting out some details before i release the program (its currently using an MSSQL Database, but this might be hard to distribute)
    Why are you even using a database? You have a relatively small dataset, the whole english language takes up the same space as a good size bitmap would. You could simply load the whole dictionary into memory from a text file or something, it shoudl only consume a few megs at most and be far faster then the overhead of a database. When loading it in, you simply convert the alphabetic form into the numeric form and store it along with it.
    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 2 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, 03:59 PM
  2. Alpha Release: XMPC-CAR for XM
    By gork in forum Software & Software Development
    Replies: 88
    Last Post: 01-11-2006, 12:19 PM
  3. XMPC-CAR source code now available!
    By gork in forum Software & Software Development
    Replies: 6
    Last Post: 04-06-2004, 12:33 PM
  4. Questions for developers
    By SuperG35 in forum ME Archive
    Replies: 28
    Last Post: 08-26-2003, 10:12 AM
  5. Dos MP3 player/decoder source code?
    By Fosgate in forum Software & Software Development
    Replies: 4
    Last Post: 03-23-2000, 03: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
  •