View Single Post
Old 12-20-2020, 06:54 AM   #24
Carmelocotonto
Connoisseur
Carmelocotonto began at the beginning.
 
Carmelocotonto's Avatar
 
Posts: 93
Karma: 12
Join Date: Nov 2018
Location: Salamanca
Device: kobo Clara HD, Onyxboox C67
Ok. Very difficult for my programming level. I only copy code from other files.sh... hahaha. Well I will try my idea.

BTW, your latest version of UNCaGED has got a bigger frontend. Now it is perfect for me. Thanks

EDIT: 8(( Reader.lua is running after nickel is killed

Quote:
Originally Posted by sherman View Post
It depends, if you run before koreader launches and Nickel is still running, then yes that should work, otherwise no.

The main thing is that Nickel needs to be running for qndb to work.

Unfortunately, toasts are for a set duration only. I can think of a (really) dirty hack though.

If you call qndb -m dlgConfirmNoBtn <title> <body>, this opens a message dialog. Then 'record' the touch of pressing the 'close' icon using something like cat /dev/input/event1 > touchfile.

Then, you can display the message, and from your shell script you can pipe/redirect the contents of touchfile back into /dev/input/event1 to simulate a touch which should close the message box.

I might see if I can figure out a way of doing something more elegant in NDB itself.

Last edited by Carmelocotonto; 12-20-2020 at 07:33 AM.
Carmelocotonto is offline   Reply With Quote