View Single Post
Old 04-10-2018, 01:06 PM   #231
ItalianUruguayan
Connoisseur
ItalianUruguayan makes transoceanic flights without the assistance of an airplaneItalianUruguayan makes transoceanic flights without the assistance of an airplaneItalianUruguayan makes transoceanic flights without the assistance of an airplaneItalianUruguayan makes transoceanic flights without the assistance of an airplaneItalianUruguayan makes transoceanic flights without the assistance of an airplaneItalianUruguayan makes transoceanic flights without the assistance of an airplaneItalianUruguayan makes transoceanic flights without the assistance of an airplaneItalianUruguayan makes transoceanic flights without the assistance of an airplaneItalianUruguayan makes transoceanic flights without the assistance of an airplaneItalianUruguayan makes transoceanic flights without the assistance of an airplaneItalianUruguayan makes transoceanic flights without the assistance of an airplane
 
ItalianUruguayan's Avatar
 
Posts: 52
Karma: 55058
Join Date: Mar 2018
Location: Spain
Device: Kobo Glo HD
Quote:
Originally Posted by tshering View Post
You can. But you have to create the menu entries yourself. This is an example:
Code:
selection=$($ksmroot/kobomenu.sh give_me_coffee:gear.png give_me_tea:execute.png )
case $selection in
  give_me_coffee )
   // Do here something, for instance call a script that orders coffee.
  ;;
  give_me_tea )
   // Do here something, for instance call a script that orders tea.
  ;;
esac
You can only use icons that are embedded in the binary file "kobomenu." You can see a list of all available icons by calling menu_icons.sh (Call it by selecting "scripts" > "tests.msh" > "menu icons.sh"; or similar. I do not have my reader with me, and cannot remember exactly.)
Thanks! Where should I place the code?
ItalianUruguayan is offline   Reply With Quote