Windows mobile 6.5 IME - windows-mobile-6.5

Is that possible to send characters to currently open text box via IME ? What I am trying to do is that I have Bluetooth module that handles connection between Bluetooth keyboard and windows mobile device , when user press key on Bluetooth keyboard Bluetooth module receive it and send it to currently open text box via IME. You Comment will greatly help me as i am newbie in Windows Mobile development.

if the BT keyboard is using the HID protocol you do not need any additional software. All key strokes should be automatically routed as keyboard input to the right input.
If you need to write your own software, you need to open a COM port connection to the BT keyboard. Then your app can receive the BT keyboard messages and issues them as keyboard messages. See also http://www.hjgode.de/wp/2011/11/10/keywedge-updated/
But at all, your WM6.5 should have the HID drivers and so, after connection to the BT keyboard you do not have to do anything more.
Post the device model name, if you need more assistance.
regards
Josef

Related

How do I find Bluetooth connections in Mac system logs

I've lost my BT earphones, and am trying to determine the last time they were connected to my macbook, to narrow the time window and help the search.
How can I learn this from system logs?
I opened Console.app, and found numerous mentions of connections to BT devices, of the format:
com.apple.message.domain: com.apple.bluetooth.connect
com.apple.message.host: 05AC8290
com.apple.message.process: blued
com.apple.message.device: Unknown Name
com.apple.message.uuid: 0x001F
com.apple.message.direction: Outgoing
com.apple.message.rssi: 127
com.apple.message.pairing: LE
com.apple.message.rate: LE
com.apple.message.sco: LE
SenderMachUUID: 557AF7B3-7829-380F-83D7-684B2004E540
How do I determine which ones are connections to my BT earphones (not my smartphone)? I know the MAC addresses of both the devices that connect to this computer, but they don't seem to be mentioned in the logs.
Hold shift and option buttons at the same time and click on the Bluetooth icon:
Click on the Debug and then click on Enable Bluetooth logging. Then in the magnifier type "Console". In the search area, search for Bluetooth. You should be able to see the logs:
In order to check Bluetooth logs open the Console.app e.g. by pressing cmd + space, then typing "Console" and hitting Enter.
Inside the Console.app you can filter messages just to Bluetooth related by typing "bluetooth" inside Search field.
Tested on macOS Catalina.

How to determine display - touch device associations for windows 10?

I am currently writing an application that receives touch input through the windows WM_INPUT messages and the HID API. Every touch point received has a handle to the device associated from which it came. This is the same device that the family of WM_POINTER messages would report for the same touch point. My application needs to know which monitor corresponds to a particular touch device. Is there a programmatic way to determine this? If I was using the WM_POINTER API I could use MonitorFromPoint or something similar.
In the control panel under "hardware and sound" there is a category "Tablet PC Settings". If you click this category, a dialog box launches which has a button "Setup". This button launches a calibration tool which allows you to pair a USB HID touch device with a monitor.
Does anyone know where these settings might be saved to?
relevant links:
structure received in WM_INPUT messages:
https://msdn.microsoft.com/en-us/library/windows/desktop/ms645562(v=vs.85).aspx
Structure received in WM_POINTER messages:
https://msdn.microsoft.com/en-us/library/windows/desktop/hh454907(v=vs.85).aspx
Thanks.
A generic way to determine where things are stored in the registry, is to watch registry changes. Process Monitor from the Windows Sysinternals Suite by Mark Russinovich, can be used to watch and log changes to the windows registry. So you can start it logging, and then perform your calibration, and then stop and examine the log for the desired registry activity.
Here is a link to a similar question I asked
Associate HID Touch Device with Pnp Monitor.
In short, you can use the details from the HIDApi calls with queries of registry keys to link HID Touch Devices to monitors.

Windows HID device driver for USB Keyboard

I've this problem to solve with an USB device:
connected to POS PC (Windows POSReady 2009) there is a USB Keyboard and a USB Dallas I-Button reader
USB Reader is connected to MoBo USB bus, and shows up as USB Composite device:
USB Composite Device USB\VID_134B&PID_0206&REV_0100
Compatible HID device HID\VID_134B&PID_0206&REV_0100&MI_01
USB input device (1st instance) USB\VID_134B&PID_0206&REV_0100&MI_00
USB input device (2st instance) USB\VID_134B&PID_0206&REV_0100&MI_01
HID Keyboard HID\VID_134B&PID_0206&REV_0100&MI_00
when I read I-Button with reader, the code inside the button is added to keyboard buffer (as it was typed with physical keyboard) and active application (wich has keyboard focus) receive the code
my application must interract with codes readed by the USB device, however I have to have focus costantly on a TextBox to receive the code
this not always is possible, specially with unattended MessageBoxes, wich takes focus (and keyboard input) and can create malfunctions
best of all should be having a reader on serial port, or TCP/IP, but this is the only one choice we have (we cannot change reader)
So, my idea is to trap incoming "keypress" from reader keyboard, avoid append in system keyboard buffer, and pass them to my application via WM_USER, WM_COPYDATA, Socket or other method.
So, the goal would be to write a driver, to apply ONLY to specific USB HID device (the I-Button reader, but NOT to the real PC keyboard) who block keypress and send to application in some way.
I checked for the "keyboard filter" Microsoft way, but I can block only some combinations of keys, but this is not my goal.
I think I should create a custom of personal "kbdhid.sys" and/or "kbdcalss.sys" driver and apply ONLY to my USB HID Reader.
Could someone point me out the right direction?
Thanks a lot
set your reader to send a prefix before sending the code
monitor the keyboard que for the prefix and have your application popup so it receives keyboard input.
however many readers can only be set to send a control code like STX - witch is control_B - and in use by windows.

ESC/POS Command Answer

Good morning,
I am developing a kiosk application. In that application i need to send some commands to a printer with ESC/POS protocol.
I have some commands that give me information about printer (printer status, end of paper status). For sending command I use this function, but I need also to read the printer reply.
How can I do it? (The printer is connected in USB mode).
I'm developing on delphi xe2
Thanks
The example is assuming that your string type is simple such as shortstring. Try declaring s as shortstring. It can not work with widestring or unicode.
Did you check if the USB connection makes a new serial port?
If a new serial port displayed in device manager, I can help you to send the ESC command with a Delphi Comport component.
But if there is no serial port shown up, I have no idea about how to control the thermal printer.

USB device opens Applications, then types in text field

I got a letter in the mail that contained a small USB device. Here is what it loks like: http://imgur.com/a/VEtNK
When I plug it into my computer it seems to hover over the programs in my Dock and then opens one. It then types a link into a text field that is available. I originally had Skype in the dock and it defaulted to that one, strange. I removed Skype from the dock and now it opens to System Preferences.
Here's a video of what happens as I plug it in: https://www.dropbox.com/s/yuw6ggvo77rkvwh/Test1MysteryDevice.mov
Also, it does not appear like a memory stick does on my computer. I can't seem to locate it when it's plugged in. It would be cool if I could find it somehow. It would be even cooler if I could program it to do something I wanted.
Thanks, and if anyone can help out that's awesome or if you could point me to a forum/anywhere that might be able to help out, that'd be great!
Probably it self-identifies as a HID (Human Interface Device), specifically a keyboard. As soon as it is accepted as a keyboard by the OS it can send any sequence of keystrokes, and the OS will assume that it is input from a human user.
Scripting such behavior is easy using Applescript.
However automatically running a program from a USB stick when it is inserted is supposed to be impossible on OS X, as auto-run is a security risk.
Of course at the very least a custom USB device could be made to act like a mouse and keyboard, so even without autorun it's a risk to plug strange devices into your computer.
To get more info on the device you can go to System Profiler and look for the device on the USB bus.
If it is a custom device pretending to be a keyboard then it's probably hardwired to do what it does, and you probably won't be able to reprogram it; you'd need to find a manufacturer that will sell you customized devices.

Resources