Quote:
Originally Posted by Reventlov
Yup, that was it ! Thank you for this answer.
Another question, now: how to display images using the scripts that come with ksm 0.8 ? I found the following binaries // scripts: kbimageviewer, kbimageviewer.sh, imageviewer.sh, but I didn't find any example (for the options).
My ultimate goal is to download one image from the internet (I've done this part thanks to the wifi weather scripts) and to display it on the kobo, until it's "touched" (after a touch from the user, going back to the main menu).
I don't know if thoses scripts support "automatically" going back to where I was before opening them. I tried to launch them from the ksm terminal, it worked, but I wasn't able to do anything after that but a hard reboot.
Anyway, thank you for your work.
|
If I understand correctly what you mean by
Quote:
Originally Posted by Reventlov
"automatically" going back to where I was before opening them.
|
then the answer is yes.
Simply displaying an image with kbimageviewer:
Spoiler:
Code:
$ksmroot/kbimageviewer.sh "filepath/imagefilename"
You can watch it work:
- select tools > explore > explore mynotes.msh > pofftest > imgs > sleeping noboarder.png
Imagine that the screen is divided in 9 even fields
123
456
789 that you can tap.
1,3 (both have the same function): zoom out
7,9 (both have the same function): zoom in
2: move up
8: move down
4: move left
6: move right
5: open top menu (exit by selecting File > Exit)
Disadvantages: heavy ghosting; application hangs if you zoom in too much (what is to much depends on the image size and so on)
Simply displaying an image with kbmessage:
Spoiler:
Wrap the image into an html file and display it with
Code:
$ksmroot/kbmessage.sh "-f $pofile filepath/imagefilename"
You can find some example htmls in .adds/kbmenu_user/mynotes/pofftest. To see it work:
- select tools > explore > explore mynotes.msh > pofftest > file01.html
tap at the middle of the screen to open the bottom menu, press then "close" to exit.
Best way to inspect the scripts of KSM is to extract the content of the download package on the pc.