Thread: pickel dude
View Single Post
Old 10-09-2015, 03:55 PM   #16
tshering
Wizard
tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.
 
Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
spelufo, I tried your script of post #13 on a Touch via telnet. There is a problem with the coordinates:
Code:
[root@(none) ~]# sh -x /mnt/onboard/.adds/kbmenu_user/scripts/tests/tap_actiond.
sh ok
+ [ 1 -gt 0 ]
+ fbset
+ grep ^mode
+ cut -d " -f 2
+ FB_MODE=800x600-0
+ FB_MODE=800x600
+ FB_W=800
+ FB_H=600
+ w=200
+ h=120
+ listen=true
+ true
+ waithit 3 4
+ coords=600 480 200 120
+ /usr/local/Kobo/pickel wait-for-hit 600 480 200 120 0 0 1 1
^C
600x480 is outside of the screen. 480x600 would be the field at the right side of the bottom.
After exchanging FB_H and FB_W it works, if I tap a the bottom starting at the right side and continuing to the left side. (Works also when started from the device, rather then by telnet.)
Code:
+ fbset
+ grep ^mode
+ cut -d " -f 2
+ FB_MODE=800x600-0
+ FB_MODE=800x600
+ FB_H=800
+ FB_W=600
+ w=150
+ h=160
+ listen=true
+ true
+ waithit 3 4
+ coords=450 640 150 160
+ /usr/local/Kobo/pickel wait-for-hit 450 640 150 160 0 0 1 1
+ [ 1 -eq 1 ]
+ date +%s
+ start=1444422967
+ waithit 2 4
+ coords=300 640 150 160
...

Last edited by tshering; 10-09-2015 at 04:39 PM.
tshering is offline   Reply With Quote