手机巴士论坛's Archiver

发表于 2008-7-19 21:53

RemoteKB--让你用电脑键盘代替手机键盘

RemoteKB consists of two parts:
1. A desktop Python script that catches the keypresses and sends them to the phone.
2. A PyS60 standalone application that receives the keypresses and simulates them using the keypress module.

Requirements:
1. The desktop script needs wxPython (unicode version) to display its GUI.
2. The PyS60 application needs the keypress module in version 1.0.6
3. The application sis file has to be signed (Open Signed Online) before using.

Both parts communicate over a virtual Bluetooth serial port, your PC has to expose one as its Bluetooth service and you have to configure the PC part of RemoteKB (using GUI) to use it.

After connecting, you can switch away from the PyS60 application and start controlling other apps using your PC’s keyboard.

All the letter and number keys work as expected, including Shift and CapsLock for capitals and special ***s on number keys. The current system layout is respected.

Keys such as Home, End, PageUp, PageDown, Backspace, Delete work as expected too.

You can *** text using Shift+Cursors, you can cut, copy and paste using Ctrl+X/C/V, as expected.

Numeric keypad is used to simulate raw phone keys so pressing ’2’ twice, for example, prints ’b’. This is useful on the standby screen because this is the only way to enter a call number there. The dot key on the numpad is used as a raw ’#’ key, same for the ’*’ key.

The function keys are used to simulate S60 specific keys:

F1 - Left softkey
F2 - Select
F3 - Right softkey
F4 - Application (Menu)

F5 - Green key
F6 - Red key
F7 - Volume down
F8 - Volume up

Player control:
F9 - Play/Pause
F10 - Stop
F11 - Rewind
F12 - Forward

Ctrl+F1 - Portrait mode (switches whole phone to portrait)
Ctrl+F2 - Landscape mode (switches whole phone to landscape)
Ctrl+F6 - Power

All non-***acter keys properly simulate key-presses and key-releases so you can bring up the task menu by holding the F4 key, you can switch off the phone by holding the Ctrl+F6 or you can seek in the player by holding F11/F12.

页: [1]

Powered by Discuz! Archiver 6.1.0  © 2001-2007 Comsenz Inc.