PhoneInfo v0.7.0 : Эльфы : Форум |
Страница 5 из 11: « 1 2 3 4 [5] 6 7 8 9 ... 11 » |
anonymous: |
28.02.08, 16:38 |
ok.thanks for answer.I don't write 'last' post,I translate him:) |
Hussein: |
28.02.08, 17:39 |
jasiek пишет: HierOS It's not possible because, every time if you click short volume down then on standby screen will be showed new messagebox "phoneinfo" If you click short volume down 5 times, then you will see 5 messagebox "phoneinfo". I hope that you understand what i wrote. It's possible... try this code.. Код: #include "..\\include\Lib_Clara.h" #include "..\\include\Dir.h" int EnableVolumeHook(UI_MESSAGE*); int DisableVolumeHook(UI_MESSAGE*); int lamp=0; int level=10; int hook=0; void elf_exit(void) { kill_data(&ELF_BEGIN, (void(*)(void*))mfree_adr()); } int NewKey(int key, int r1 , int mode) { // exit for debug... if (key == KEY_POWER) { ModifyUIHook(UI_STANDBY_UNFOCUS_EVENT,DisableVolumeHook,0); ModifyUIHook(PHONE_IN_STBY_EVENT,EnableVolumeHook,0); ModifyKeyHook(NewKey,0); SetLampLevel(0); SUBPROC(elf_exit); } if (key == KEY_VOL_DOWN) { if (mode == KBD_SHORT_PRESS) { // Insert your code here... SetLampLevel(level>>(lamp^=0x08)); } return(-1); } return(0); } int EnableVolumeHook(UI_MESSAGE*) { hook=1; ModifyKeyHook(NewKey,1); return(0); } int DisableVolumeHook(UI_MESSAGE*) { hook=0; ModifyKeyHook(NewKey,0); return(0); } int main (void) { ModifyUIHook(UI_STANDBY_UNFOCUS_EVENT,DisableVolumeHook,1); ModifyUIHook(PHONE_IN_STBY_EVENT,EnableVolumeHook,1); return(0); } |
jasiek: |
28.02.08, 19:28 |
Hussein пишет: It's possible... try this code.. Thank you very much for your all source code ! Working fine. New version in first post. |
anonymous: |
28.02.08, 20:29 |
jasiek Hussein,public source code or new code for update lib?answer please. |
hott_dogg: |
28.02.08, 21:21 |
jasiek in w810 when I close info phone reboots:( do smth please and it shows resolution 220*176, but it must be 176*220 :) |
Desperanto: |
28.02.08, 21:34 |
jasiek I also have reboot on my w810 when I press OK or BACK in PI 0.3.1/0.4.0. |
jasiek: |
28.02.08, 21:34 |
ХакеR source code hott_dogg I don't know why... resolution will be fixed in next version ;) |
eddmund: |
01.03.08, 15:56 |
Here is a modified version of PhoneInfo v0.4.0 that displays the date in the format "DD.MM.YYY" (eg: "01.03.2008") instead of "DD-MM-YYY". [ Редактировано eddmund в 1.3.08 14:06 ] Прикрепленный к сообщению файл: PhoneInfo_v0.4.0m.elf (3.75 kb; 10 hits) Скачать файл PhoneInfo_v0.4.0m.png (6.29 kb; 11 hits) Скачать файл |
anonymous: |
01.03.08, 16:28 |
eddmund thanks for modified version:) |
jasiek: |
01.03.08, 17:41 |
eddmund Thanks for tips Added to new version, check first post |
Страница 5 из 11: « 1 2 3 4 [5] 6 7 8 9 ... 11 » |
URL этой темы: https://mobilefree.justdanpo.ru/newbb_plus/viewtopic.php?topic_id=2728&start=40 © 2005-2018 supertrubka.org |