Тема: MobilePhone Plugin
Показать сообщение отдельно
Старый 28.10.2016, 20:23   #276
duzzy
Гуру
 
Регистрация: 01.06.2013
Регион: 78, 98
Машина: SUBARU Impreza WRX
Сообщений: 1,766
duzzy has a reputation beyond reputeduzzy has a reputation beyond reputeduzzy has a reputation beyond reputeduzzy has a reputation beyond reputeduzzy has a reputation beyond reputeduzzy has a reputation beyond reputeduzzy has a reputation beyond reputeduzzy has a reputation beyond reputeduzzy has a reputation beyond repute
По умолчанию

Цитата:
Сообщение от pierrotm777 Посмотреть сообщение
Please, read this link http://pccar.ru/showpost.php?p=372518&postcount=352
But this command is only for the new plugin !
I don't know the command for the original plugin (if its exist ) !


You want save this in ini file for the standard phone plugin ?
I can't for the original plugin but it's possible for my new plugin !
I have no access to the original plugin code !!!
I read this post, and I speak absolutely about another.
Your plugin interacts directly with the program BlueSoleil from icar buttons(simple explanation), right ?
Well then why not make a small program to send commands BlueSoleil to switch from speakers to phone(toggle between speakers and phone) on the already paired phone.

icards user can make button in standard phone screen and run this little program from button to toggle between speakers and phone, and that's all.

fist run prog read from BlueSoleil what phone is paired...
then...
write to ini address of phone(or another opt)
[connected_phone]
phone=(phone address or id dot know how BlueSoleil interact with phone)
then...
write flag about fist run end(need for next run to not check what phone is paired)
[fist_run]
1_run=false

next run prog just read from ini and toggle paired phone from speakers to phone and vice versa...

I just described the simple logic of this program.
This program will be very useful to the user using a standard icards plug-in.
duzzy вне форума   Ответить с цитированием