New version, v0.5beta. See last post for changes(many).
N.B.: for now only Sony Ericsson models are supported
The application at the end of this post let's you control your PC over BlueTooth. By clicking with right mouse button on tray icon and pressing Configure, you can add new program or modify existing ones. For now you can only use Send and Run command(and you can do almost anythong with them). To enable/disable the application, double click on tray icon.
Every time you send a command, an OSD show you wath you're doing.
If you use your keyboard and not the phone, don't forget to disable the program(also with CTRL+ALT+d)
Then re-enable it. I'll make later possible to disable/enable the program from the phone itself
This topic start from the need to use my BT phone to manage my computer.
I'll wait for AHK to natively support BT if the authors want it, but for now this solution works very well.
This is the method to control a PC via Bluetooth with FMA and AHK:
1)Download FMA
here
2)Install it
3)Save this script in [FMAInstallationFolder]\
FMA 2\sframework\plugins, where [FMAInstallationFolder] is the folder where you installed FMA
(I think it is
C:\Program Files in the English version of Windows -
C:\Programmi in my Italian version)
So the whole path where this script must be copied should be
C:\Program Files\FMA 2\sframework\plugins
The script must be saved as AHK.vbs :
Code:
'FMA Script Framework Plugin
'AHK
'Control your PC
'TODO:
'-more
Class AHK
Private llist
Private m_Self
'Some info about the plugin
Public Property Get SHOWABLE 'Do I have a menu?
SHOWABLE = True
End Property
Public Property Get TITLE 'What's my name?
TITLE = "AHK"
End Property
Public Property Get DESCRIPTION 'What's my purpose?
DESCRIPTION = "Conotrol your PC!"
End Property
Public Property Get AUTHOR 'Who created me?
AUTHOR = "kiu"
End Property
Public Property Get URL 'Were can I be found? Where can you get more information?
URL = "http://romeoSA.com/"
End Property
'Who am I?
Public Property Let Self (s)
m_Self = s
End Property
Public Property Get Self
Self = m_Self
End Property
'Display me. Eventually put a menu on the screen
Sub Show()
'Push empty menu to prevent switching pages of the previous menu
EmptyMenu.ShowMenu
'No Menu here. Just show information and register keys.
am.Back = Self & ".Quit" 'Mangage the menu quit by ourselves
am.DlgMsgBox "Test for now"
'KeyPad
KeyManager.RegisterKey KEY_1, "Shell.SendKeys ""1""",STATE_RELEASE , Me
KeyManager.RegisterKey KEY_2, "Shell.SendKeys ""2""", STATE_RELEASE , Me
KeyManager.RegisterKey KEY_3, "Shell.SendKeys ""3""",STATE_RELEASE , Me
KeyManager.RegisterKey KEY_4, "Shell.SendKeys ""4""", STATE_RELEASE , Me
KeyManager.RegisterKey KEY_5, "Shell.SendKeys ""5""", STATE_RELEASE , Me
KeyManager.RegisterKey KEY_6, "Shell.SendKeys ""6""", STATE_RELEASE , Me
KeyManager.RegisterKey KEY_7, "Shell.SendKeys ""7""",STATE_RELEASE , Me
KeyManager.RegisterKey KEY_8, "Shell.SendKeys ""8""", STATE_RELEASE , Me
KeyManager.RegisterKey KEY_9, "Shell.SendKeys ""9""",STATE_RELEASE , Me
KeyManager.RegisterKey KEY_0, "Shell.SendKeys ""0""",STATE_RELEASE , Me
KeyManager.RegisterKey KEY_ASTERIX, "Shell.SendKeys ""*""", STATE_RELEASE , Me
KeyManager.RegisterKey KEY_SHARP, "Shell.SendKeys ""c""", STATE_RELEASE , Me
KeyManager.RegisterKey KEY_JOYLEFT, "Shell.SendKeys ""l""", STATE_RELEASE , Me
KeyManager.RegisterKey KEY_JOYUP, "Shell.SendKeys ""u""", STATE_RELEASE , Me
KeyManager.RegisterKey KEY_JOYRIGHT, "Shell.SendKeys ""r""", STATE_RELEASE , Me
KeyManager.RegisterKey KEY_JOYDOWN, "Shell.SendKeys ""d""", STATE_RELEASE , Me
End Sub
Sub Quit
'Unregister all our key events:
KeyManager.DeregisterAll Me
'Remove emtpy menu
MenuStack.Top.Quit
End Sub
End Class
The result is that the file
C:\Program Files\FMA 2\sframework\plugins\AHK.vbs must exist
4)Start FMA
5)Connect it with your phone via Bluetooth (also USB is supported, but...)
6)When connected it will show a menu on your phone and the first item of the menu is AHK
7)Press on AHK

if you can't see the menĂ¹ and you connect correctly, in your phone go to:
Connectivity -> Accessories -> FMA -> AHK
9) Start the program kiuBT RemoteControl contained in the pack
10) Navigate between possible layers with *(previous) and #(next)(default in this pack: Notepad and MediaPlayerClassic. Add your owns)
(a layer is a set of command for a specified application)
11) Confirm with 0 (the OSD say you that options for this layer have been setted). To test the application, confirm on Notepad
12)Notepad will start...
13) Press a button and...
14)Let's start control your computer with this simple script
This is the link to the application
kiuBT RemoteControl v0.2beta
if you are interested in the source code, post it here
As always,please send any comments/suggestions/criticism