Page 5 of 5 FirstFirst 12345
Results 41 to 49 of 49

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

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

  2. #42
    ptk
    ptk is offline
    Variable Bitrate
    Join Date
    Apr 2004
    Location
    Singapore
    Posts
    333
    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

  3. #43
    Maximum Bitrate bes51659's Avatar
    Join Date
    Sep 2005
    Location
    Vasastaden, Stockholms Län, Sweden, Sweden
    Posts
    852
    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?

  4. #44
    Maximum Bitrate bes51659's Avatar
    Join Date
    Sep 2005
    Location
    Vasastaden, Stockholms Län, Sweden, Sweden
    Posts
    852
    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.

  5. #45
    Maximum Bitrate bes51659's Avatar
    Join Date
    Sep 2005
    Location
    Vasastaden, Stockholms Län, Sweden, Sweden
    Posts
    852
    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? :-)

  6. #46
    Maximum Bitrate bes51659's Avatar
    Join Date
    Sep 2005
    Location
    Vasastaden, Stockholms Län, Sweden, Sweden
    Posts
    852

    And then what happened?

    Quote Originally Posted by god_of_cpu View Post
    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.

    http://www.mp3car.com/vbulletin/atta...nekeyboard.zip
    Still there God? Or did someone else do the work on the plate served by him? Maybe even with T9?

    I downloaded the code and was quite ready to do it myself, but I could not open the project files. I've got VC++ and VB 6.0. Project file seems to have extension vcproj! Is this .NET or something?

    As I said, I am quite happy to do the work if someone can help me get the IDE going.

    This is exactly the thing I need. Then I can input text everywhere with my phone, or a numeric keyboard.

    B-O

  7. #47
    Maximum Bitrate bes51659's Avatar
    Join Date
    Sep 2005
    Location
    Vasastaden, Stockholms Län, Sweden, Sweden
    Posts
    852
    I downloaded visual studio c++ 2008 express.
    It converted the project successfully.
    But it seems like MFC is no longer there, as it cannot find afxwin.h (for starters).

    AboutDlg.cpp
    c:\carputer\download\remotecontrols\keyb\stdafx.h( 34) : fatal error C1083: Cannot open include file: 'afxwin.h': No such file or directory


    Should I get visual 2005? Ideas?

    Edit: Tried 2005, no change. Seems like the full 2008 VS does support MFC still, but not the express package!

  8. #48
    Maximum Bitrate bes51659's Avatar
    Join Date
    Sep 2005
    Location
    Vasastaden, Stockholms Län, Sweden, Sweden
    Posts
    852
    Got Visual 2008 pro, and I can now build the system.

    And now I realize why God did not complete the job. VC locks up in debug if you set a breakpoint in the keyboard hook! I guess I have to write the code correct at once or debug remote.

    btw. Is this of any interest to anyone?

  9. #49
    Maximum Bitrate bes51659's Avatar
    Join Date
    Sep 2005
    Location
    Vasastaden, Stockholms Län, Sweden, Sweden
    Posts
    852
    I've commited myself to finishing god's code and I am struggling. I've got the 2008 studio pro.

    First of all i did not get remote debugging to work. For some reason the IDE cannot detect the running monitor on remote PC (no firewall, same user login, monitor exe is shared to remote PC from debugging PC...). It is difficult to debug a keyboard handler locally...

    Second is that I cannot understand why not the keyboard hook is used. Or rather why it isn't working.
    SetWindowsHookEx(WH_KEYBOARD, lpfnHookProc, hKBDll, dwThread);

    The getmessage hock is used instead.
    SetWindowsHookEx(WH_GETMESSAGE, lpfnHookProc, hKBDll, dwThread);

Page 5 of 5 FirstFirst 12345

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
  •