Well, there are a lot of java applications available in market to do this. But nevertheless it would be very useful if you can easily program it according to your use. All you need is a java bluetooth fie exlorer application on your mobile phone like BT FILEMANAGER and Autoit on your PC. So the commands you will give to control should be named as a folder in your PC's Bluetooth remote folder and on autoit we keep checking for the directory to be created and act upon.
Here's a sample code...
#include <Sound.au3>
$file1 = 'F:\New folder\xyz.mp3'
$aSound = _SoundOpen($file1)
_soundplay($aSound)
$file = 'C:\Users\Yourbluetoothsharingfolder\'
MsgBox(0,"","running")
while(1)
If FileExists($file & "pause") Then
_SoundPause($aSound)
sleep(200)
DirRemove ($file & "pause")
EndIf
If FileExists($file & "play") Then
_SoundResume($aSound)
Sleep(200)
DirRemove ($file & "play")
EndIf
WEnd
Exit
0 comments:
Post a Comment