loquat 发表于 2010-5-19 19:38:46

MSKeys

原帖在这里:
http://team-sc.ru/viewtopic.php?t=5355

Elf starts shortcuts / entrypoints / elves and open folders on the ET on the buttons specified in a file keys.txt. File Structure: <Number button> - <command> - <Name of shortcut> - <1: long press ,0-short>. No spaces!
Example: 50-4:\ZBin\BalletMini\balletmini.elf-1 Ballet
In the config file specifies the directory with the file keys.txt
Version number 2 can display icons in the folder indicated in the config (with long press in the configuration file). Name Icons: <button code>. Png (for example 51.png)
:::

Shl. list entrypoints and buttons below

貌似是DialExt的进化版。我还不知道txt文件怎么写。
目前没有SG可使用版


http://team-sc.ru/images/icon_clip.gif mskeys21_nsg.elf.zip
http://team-sc.ru/images/icon_clip.gif mskeys21_elka.elf.zip
http://team-sc.ru/images/icon_clip.gif Entrypoints+keys.txt

乱码其实可以看的,网页俄文的直接用google翻译到英文完全可看
文本乱码,就用Opera浏览器,查看-编码-斯拉夫语-win1251,文本就成了俄文。再用google翻译成英文。

outlier 发表于 2010-5-28 20:07:27

本帖最后由 outlier 于 2010-5-28 20:34 编辑

要新建一个keys.txt文件

写法如下:

60-4:\ZBin\radio\radio.elf-radio-1



上例代表长按方向下键打开收音机,一行一个
以下【】为注释
【按键值,十进制的】-【要执行的程序路径或命令】-【自定的该命令或文件的名称】-【1或0,1代表长按,0代表短按】

各项中间用-号连接,没有空格。其中,名称只在短按时显示

配置很简单,第一项设置keys.txt的路径,第二项设置图标位置,设成按键名

可以放到daemons自启动
不过,快捷方式的elf太多了,按各自的习惯用吧,反正我的手机上是没有多余的按键了


中化了elka的

loquat 发表于 2010-5-31 00:36:53

看世乒赛到半夜。看到了RevolteD的回信。
附上了我要求他编译的此ELF的英文版。他还耐心地写了说明。非常感谢RevolteD


一并发上来吧。我就不玩了,有兴趣的大家去玩。

有问题本贴内提问吧,但是我就没法回答滴。因为我也没玩过。。。

RevolteD:
Here you are. But I don't know your phone platform. I have only versions for ELKA and NewsGold. SGold version is seems to be unworking.
Instructions:
MSKeys folder must contain file keys.txt. Icons (*.png) are not obligatory.
Structure of keys.txt:
---
Elf can launch other elfs, java applications, open foldersand etc by hotkey from mainscreen only. Also it supports shortcuts and entrypoints.
Example:
48-4:\ZBin\Utilities-Programs-0 - open folde by pressing button "0"
49-4:\ZBin\NatICQ\naticq.elf-ICQ-1
53-BLUETOOTH-BlueTooth-1
If parameter longpress is "1", on shortpress will be displayed window with icon and name from keys.txt. Otherwise action will be executed. Dialing the number with longpress=1 is the same as without elf, just press next key.
Icons name: .png You can download some icons from here: http://team-sc.ru/down/1440_1251649818.rar_109.rar

自己看看格式,有关打开文件夹的部分应该还是BingK那个代码,benj9提供的参数。

loquat 发表于 2010-5-31 00:38:11

shortcuts和entrypoints这两个我记得NSG有一个是用不了的。函数问题。

loquat 发表于 2010-8-7 10:13:50

更新了。

New version of MSKeys (if you are still intereste)

Changes:
   1) Fixed some bugs
   2) New file*.ini
   3) New commands

   ini structure:

You can launch command pressing one key:
   =<command>
   x=1 - launch command when keyboard is locked, 0 - if is unlocked
   y=1 - long press, 0 - short press
   zz - keycode (2 symbols? for example "35", " 2" - space is obligatory)

...and 2 keys:
   
    x=1 - launch command when keyboard is locked, 0 - if is unlocked
    yy и zz - keycodes: to launch hold key yy and press zz

Examples:
   =BLUETOOTH
   ="MC" - create window named "MC, quotes are obligatory
   =4:\ZBin\MC\MC.elf - launch MC.elf
   =4:\ZBin\Utilities - open folder "Utilities"
   =http://team-sc.ru - open link in BalletMini.elf, "http" is obligatory
   =RELOAD - reload file .ini
   =CALLCFG - open MSKeys.cfg file

Folder must contain file ini and folder "img" with icons. You can download it here: http://team-sc.ru/down/mskeys3_933.zip
页: [1]
查看完整版本: MSKeys