|  03-09-2013, 02:55 PM | #31 | 
| THE NOOB            Posts: 708 Karma: 1545649 Join Date: Jan 2012 Location: Italy Device: Kindle Touch 5.3.2 | 
			
			Yep, that's the correct post! This is one half of the communication system and it is "fully" documented. The other part (sending infos from a shell script to a waf) is working but not yet documented. Something could be done to the first part (from waf to shell) to avoid having a script always running even if the waf is closed, but I don't have time to think about it now! | 
|   |   | 
|  03-09-2013, 05:00 PM | #32 | 
| Member            Posts: 14 Karma: 5554 Join Date: Sep 2011 Device: Kindle | 
			
			No worries. Thanks for figuring this stuff out! Good luck with your thesis.
		 | 
|   |   | 
|  03-09-2013, 05:18 PM | #33 | |
| but forgot what it's like            Posts: 741 Karma: 2345678 Join Date: Dec 2011 Location: north (by northwest) Device: Kindle Touch | Quote: 
 Code: kindle.messaging.sendMessage('com.lab126.system', 'sendEvent', ";sh -c 'aplay success.wav'"); | |
|   |   | 
|  03-14-2013, 03:38 PM | #34 | 
| but forgot what it's like            Posts: 741 Karma: 2345678 Join Date: Dec 2011 Location: north (by northwest) Device: Kindle Touch | 
			
			How to hide only title bar (second command is required only if you are planning to have search bar displayed and want it to move upper a bit, onto title bar place): Code: # lipc-set-prop com.lab126.pillow interrogatePillow '{"pillowId": "default_status_bar", "function": "nativeBridge.hideMe();"}'
# lipc-set-prop com.lab126.pillow interrogatePillow '{"pillowId": "search_bar", "function": "nativeBridge.hideMe(); nativeBridge.showMe();"}'Code: # lipc-set-prop com.lab126.pillow interrogatePillow '{"pillowId": "default_status_bar", "function": "nativeBridge.showMe();"}'Last edited by eureka; 03-14-2013 at 03:46 PM. Reason: clarification | 
|   |   | 
|  03-14-2013, 05:38 PM | #35 | 
| ( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr            Posts: 6,586 Karma: 6299993 Join Date: Jun 2012 Location: uti gratia usura (Yao ying da ying; Mo ying da yieng) Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch | 
			
			Ah good man. Helpful
		 | 
|   |   | 
|  03-15-2013, 02:46 PM | #36 | |
| Member            Posts: 14 Karma: 5554 Join Date: Sep 2011 Device: Kindle | Quote: 
 One followup question: is there a good way to execute a command when a WAF is terminating? (reshowing the titlebar is a nice touch) | |
|   |   | 
|  03-15-2013, 03:02 PM | #37 | |
| THE NOOB            Posts: 708 Karma: 1545649 Join Date: Jan 2012 Location: Italy Device: Kindle Touch 5.3.2 | Quote: 
 You could use Code: kindle.appmgr.onunload = function() { };Code: window.onunload = function() { }; | |
|   |   | 
|  03-15-2013, 06:56 PM | #38 | 
| Member            Posts: 14 Karma: 5554 Join Date: Sep 2011 Device: Kindle | 
			
			Maybe it is something worth restoring via the launching .sh file. Is it possible to monitor the process that is launched and execute a shell command on termination?
		 | 
|   |   | 
|  04-09-2013, 10:25 AM | #39 | |
| *            Posts: 35 Karma: 145852 Join Date: Apr 2013 Device: Kindle Touch | Quote: 
 This allow you to hook into "go", "unload" and "pause". "pause" is executed when the app leaves focus and "go" when it comes to focus. I think "unload" should be called when the app is really terminating, but I didn't capture that event yet. When creating the base application with the Kindle template you can use kindle.chrome.createContentWindow() to load your other pages and keep the code active. | |
|   |   | 
|  04-09-2013, 01:45 PM | #40 | 
| THE NOOB            Posts: 708 Karma: 1545649 Join Date: Jan 2012 Location: Italy Device: Kindle Touch 5.3.2 | 
			
			This is exactly what I'm doing in the next release of Komic. I just needed to cut unneeded things away before adding something else. This would also bring back pinch to zoom... | 
|   |   | 
|  | 
| Thread Tools | Search this Thread | 
| 
 | 
|  Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| Classic Nook on screen hints? | Hellmark | Barnes & Noble NOOK | 4 | 08-12-2011 08:54 AM | 
| Tips, Tricks, and Hints | Nate the great | Amazon Kindle | 44 | 03-22-2011 04:15 AM | 
| The Times hints at release of new Kindle | Grumpyreader | News | 0 | 06-04-2010 12:36 PM | 
| Q7 - v3.0 firmware - Hints and Tricks | rogue_ronin | Alternative Devices | 8 | 06-30-2009 02:59 PM | 
| Any hints on first software update? | Leaping Gnome | Sony Reader | 32 | 12-07-2006 10:22 AM |