Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 08-16-2010, 12:20 AM   #16
isotherm
Connoisseur
isotherm is an accomplished Snipe hunter.isotherm is an accomplished Snipe hunter.isotherm is an accomplished Snipe hunter.isotherm is an accomplished Snipe hunter.isotherm is an accomplished Snipe hunter.isotherm is an accomplished Snipe hunter.isotherm is an accomplished Snipe hunter.isotherm is an accomplished Snipe hunter.isotherm is an accomplished Snipe hunter.isotherm is an accomplished Snipe hunter.isotherm is an accomplished Snipe hunter.
 
Posts: 74
Karma: 123797
Join Date: Jul 2010
Device: Kindle 2
Sure. You could either have it always happen when next/prev page is pushed, or have it just happen when one or the other next page is pushed, or have a key combo like alt+next/prev page. You just need to send the alt-g keystroke in the script. For example, put this line in a script called \hotkeys\NEXTR.sh (to enable this when using the right next page key only):
Code:
send_keys WAIT ALT G
You could make more files if you want to map the same action to more keys, i.e. put the same code into \hotkeys\NEXTL.sh etc.
isotherm is offline   Reply With Quote
Old 08-16-2010, 04:08 AM   #17
Zanshin
Connoisseur
Zanshin could sell banana peel slippers to a Deveel.Zanshin could sell banana peel slippers to a Deveel.Zanshin could sell banana peel slippers to a Deveel.Zanshin could sell banana peel slippers to a Deveel.Zanshin could sell banana peel slippers to a Deveel.Zanshin could sell banana peel slippers to a Deveel.Zanshin could sell banana peel slippers to a Deveel.Zanshin could sell banana peel slippers to a Deveel.Zanshin could sell banana peel slippers to a Deveel.Zanshin could sell banana peel slippers to a Deveel.Zanshin could sell banana peel slippers to a Deveel.
 
Zanshin's Avatar
 
Posts: 61
Karma: 3308
Join Date: Aug 2010
Location: France
Device: Kindle 4 (non-touch), Kindle DX Graphite, Asus Transformer
All right, then I really need to get this hack to work on my DX :P
Zanshin is offline   Reply With Quote
Old 08-16-2010, 03:29 PM   #18
Zanshin
Connoisseur
Zanshin could sell banana peel slippers to a Deveel.Zanshin could sell banana peel slippers to a Deveel.Zanshin could sell banana peel slippers to a Deveel.Zanshin could sell banana peel slippers to a Deveel.Zanshin could sell banana peel slippers to a Deveel.Zanshin could sell banana peel slippers to a Deveel.Zanshin could sell banana peel slippers to a Deveel.Zanshin could sell banana peel slippers to a Deveel.Zanshin could sell banana peel slippers to a Deveel.Zanshin could sell banana peel slippers to a Deveel.Zanshin could sell banana peel slippers to a Deveel.
 
Zanshin's Avatar
 
Posts: 61
Karma: 3308
Join Date: Aug 2010
Location: France
Device: Kindle 4 (non-touch), Kindle DX Graphite, Asus Transformer
Quote:
Originally Posted by isotherm View Post
send_keys WAIT ALT G
Ok, I've managed to get the hack to work but it seems that this script doesn't work for me. It's like it can't press ALT and G at the same time.
Zanshin is offline   Reply With Quote
Old 08-17-2010, 12:59 AM   #19
isotherm
Connoisseur
isotherm is an accomplished Snipe hunter.isotherm is an accomplished Snipe hunter.isotherm is an accomplished Snipe hunter.isotherm is an accomplished Snipe hunter.isotherm is an accomplished Snipe hunter.isotherm is an accomplished Snipe hunter.isotherm is an accomplished Snipe hunter.isotherm is an accomplished Snipe hunter.isotherm is an accomplished Snipe hunter.isotherm is an accomplished Snipe hunter.isotherm is an accomplished Snipe hunter.
 
Posts: 74
Karma: 123797
Join Date: Jul 2010
Device: Kindle 2
I never tried sending ALT+ or SHIFT+ with my send_keys macro. Sorry! Until I can fix it, use this script for NEXTR.sh or whatever key combo you want to map:
Code:
echo "sendalt 34">/proc/keypad
I think it will work without waiting at all, but if it doesn't, try:
Code:
send_keys WAIT
echo "sendalt 34">/proc/keypad
I must say it is nice that we have the kernel modules source code, so it is easier to figure these things out.
isotherm is offline   Reply With Quote
Old 08-17-2010, 05:12 AM   #20
Zanshin
Connoisseur
Zanshin could sell banana peel slippers to a Deveel.Zanshin could sell banana peel slippers to a Deveel.Zanshin could sell banana peel slippers to a Deveel.Zanshin could sell banana peel slippers to a Deveel.Zanshin could sell banana peel slippers to a Deveel.Zanshin could sell banana peel slippers to a Deveel.Zanshin could sell banana peel slippers to a Deveel.Zanshin could sell banana peel slippers to a Deveel.Zanshin could sell banana peel slippers to a Deveel.Zanshin could sell banana peel slippers to a Deveel.Zanshin could sell banana peel slippers to a Deveel.
 
Zanshin's Avatar
 
Posts: 61
Karma: 3308
Join Date: Aug 2010
Location: France
Device: Kindle 4 (non-touch), Kindle DX Graphite, Asus Transformer
Quote:
Originally Posted by isotherm View Post
I never tried sending ALT+ or SHIFT+ with my send_keys macro. Sorry! Until I can fix it, use this script for NEXTR.sh or whatever key combo you want to map:
Code:
echo "sendalt 34">/proc/keypad
I think it will work without waiting at all, but if it doesn't, try:
Code:
send_keys WAIT
echo "sendalt 34">/proc/keypad
I must say it is nice that we have the kernel modules source code, so it is easier to figure these things out.
Woot, that worked!

It's a little weird to have a double flash when turning pages but no more ghosting.
Thanks a lot for your work.
Zanshin is offline   Reply With Quote
Old 08-24-2010, 08:16 PM   #21
meem
A Reader who can think..!
meem has read every ebook posted at MobileReadmeem has read every ebook posted at MobileReadmeem has read every ebook posted at MobileReadmeem has read every ebook posted at MobileReadmeem has read every ebook posted at MobileReadmeem has read every ebook posted at MobileReadmeem has read every ebook posted at MobileReadmeem has read every ebook posted at MobileReadmeem has read every ebook posted at MobileReadmeem has read every ebook posted at MobileReadmeem has read every ebook posted at MobileRead
 
Posts: 255
Karma: 65662
Join Date: Jul 2010
Location: Earth Planet
Device: Kindle 3 WiFi - Kindle DX (B004)
It's a nice job.
But the thread title is Hotkeys for Kindle 2 ..

So is it compatible with new updates of Kindle 3 / Kindle DX / DXG ?

And can I execute a custom command-line with a hotkey ?
meem is offline   Reply With Quote
Old 08-24-2010, 09:28 PM   #22
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 5,280
Karma: 5220867
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW & PW2; Kobo H2O
DX/DXG: Probably.

3: Not out yet.

Run anything from the hotkey scripts: Probably, haven't tried it though.
NiLuJe is offline   Reply With Quote
Old 08-25-2010, 11:13 AM   #23
isotherm
Connoisseur
isotherm is an accomplished Snipe hunter.isotherm is an accomplished Snipe hunter.isotherm is an accomplished Snipe hunter.isotherm is an accomplished Snipe hunter.isotherm is an accomplished Snipe hunter.isotherm is an accomplished Snipe hunter.isotherm is an accomplished Snipe hunter.isotherm is an accomplished Snipe hunter.isotherm is an accomplished Snipe hunter.isotherm is an accomplished Snipe hunter.isotherm is an accomplished Snipe hunter.
 
Posts: 74
Karma: 123797
Join Date: Jul 2010
Device: Kindle 2
Yes, you can do anything you can do from a /bin/sh script, including execution of arbitrary commands.
isotherm is offline   Reply With Quote
Old 08-26-2010, 12:12 PM   #24
meem
A Reader who can think..!
meem has read every ebook posted at MobileReadmeem has read every ebook posted at MobileReadmeem has read every ebook posted at MobileReadmeem has read every ebook posted at MobileReadmeem has read every ebook posted at MobileReadmeem has read every ebook posted at MobileReadmeem has read every ebook posted at MobileReadmeem has read every ebook posted at MobileReadmeem has read every ebook posted at MobileReadmeem has read every ebook posted at MobileReadmeem has read every ebook posted at MobileRead
 
Posts: 255
Karma: 65662
Join Date: Jul 2010
Location: Earth Planet
Device: Kindle 3 WiFi - Kindle DX (B004)
Good idea with bad done.
After I tried it I saw it's not compatible with Kindle DX and it's very buggy with display there is a confusion and disturbance with "Error" word appears !

It must done by kindle_update_tool.py to make update package installer/uninstaller.

Check this thread: How to create packages for Kindle ..

Last edited by meem; 08-26-2010 at 12:18 PM.
meem is offline   Reply With Quote
Old 08-26-2010, 02:45 PM   #25
Zanshin
Connoisseur
Zanshin could sell banana peel slippers to a Deveel.Zanshin could sell banana peel slippers to a Deveel.Zanshin could sell banana peel slippers to a Deveel.Zanshin could sell banana peel slippers to a Deveel.Zanshin could sell banana peel slippers to a Deveel.Zanshin could sell banana peel slippers to a Deveel.Zanshin could sell banana peel slippers to a Deveel.Zanshin could sell banana peel slippers to a Deveel.Zanshin could sell banana peel slippers to a Deveel.Zanshin could sell banana peel slippers to a Deveel.Zanshin could sell banana peel slippers to a Deveel.
 
Zanshin's Avatar
 
Posts: 61
Karma: 3308
Join Date: Aug 2010
Location: France
Device: Kindle 4 (non-touch), Kindle DX Graphite, Asus Transformer
It worked perfectly for my DX.
The difficult part was installing the usbnetwork hack. After that, I had no problem with the hotkeys hack. (of course, it would be easier with an installer)
Zanshin is offline   Reply With Quote
Old 08-26-2010, 06:00 PM   #26
isotherm
Connoisseur
isotherm is an accomplished Snipe hunter.isotherm is an accomplished Snipe hunter.isotherm is an accomplished Snipe hunter.isotherm is an accomplished Snipe hunter.isotherm is an accomplished Snipe hunter.isotherm is an accomplished Snipe hunter.isotherm is an accomplished Snipe hunter.isotherm is an accomplished Snipe hunter.isotherm is an accomplished Snipe hunter.isotherm is an accomplished Snipe hunter.isotherm is an accomplished Snipe hunter.
 
Posts: 74
Karma: 123797
Join Date: Jul 2010
Device: Kindle 2
I'm afraid those threads don't really provide me enough information for me to figure out how to make this into an update. If there is a good summary somewhere, I will look into it sometime. I know that it would be more useful as an update package.
isotherm is offline   Reply With Quote
Old 08-26-2010, 11:41 PM   #27
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 5,280
Karma: 5220867
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW & PW2; Kobo H2O
Basically, you need to create a simple shell script that copy/chmod/symlink/whatever what you need (one for install, another for uninstall) to the root fs, and then you package all the needed files with the python packaging tool. (Not sure I'm making much sense here, you could also take a look at my packages in the fonts hack thread, the install/uninstall scripts & buildscript are there, and they're usually over-commented).

I can whip up a quick install/uninstall script & package set if need be. Although that'll have to wait 'til next week, since I'm busy this week-end .
NiLuJe is offline   Reply With Quote
Old 08-27-2010, 10:05 AM   #28
meem
A Reader who can think..!
meem has read every ebook posted at MobileReadmeem has read every ebook posted at MobileReadmeem has read every ebook posted at MobileReadmeem has read every ebook posted at MobileReadmeem has read every ebook posted at MobileReadmeem has read every ebook posted at MobileReadmeem has read every ebook posted at MobileReadmeem has read every ebook posted at MobileReadmeem has read every ebook posted at MobileReadmeem has read every ebook posted at MobileReadmeem has read every ebook posted at MobileRead
 
Posts: 255
Karma: 65662
Join Date: Jul 2010
Location: Earth Planet
Device: Kindle 3 WiFi - Kindle DX (B004)
Ok, We wait for you.
meem is offline   Reply With Quote
Old 08-29-2010, 09:46 PM   #29
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 5,280
Karma: 5220867
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW & PW2; Kobo H2O
Here goes!

(Untested, but hopefully I didn't mess anything up ;p).
Attached Files
File Type: zip kindle-hotkeys-1.0.N.zip (50.6 KB, 124 views)
NiLuJe is offline   Reply With Quote
Old 08-30-2010, 12:11 PM   #30
isotherm
Connoisseur
isotherm is an accomplished Snipe hunter.isotherm is an accomplished Snipe hunter.isotherm is an accomplished Snipe hunter.isotherm is an accomplished Snipe hunter.isotherm is an accomplished Snipe hunter.isotherm is an accomplished Snipe hunter.isotherm is an accomplished Snipe hunter.isotherm is an accomplished Snipe hunter.isotherm is an accomplished Snipe hunter.isotherm is an accomplished Snipe hunter.isotherm is an accomplished Snipe hunter.
 
Posts: 74
Karma: 123797
Join Date: Jul 2010
Device: Kindle 2
Excellent, thanks! I will try it out on my K2 later. Now that I see how the update packaging works, will you mind if I take it over and post it in the first post (leaving in place credit for you, of course)?

In the meantime, perhaps we should discuss what hotkeys should be installed by default (such as some of the ones I posted on the thread). I guess ALT plus the top row of keys can't be considered for hotkeys, as they give numbers on some devices? Should we add hotkeys for the symbols for these devices (e.g. SHIFT-ALT-Q gives exclamation point)? My impression is that it's already too hard to remember which number goes with each letter, much less which symbol.

I'm thinking I should include hotkeys to launch web browser (ALT-B) and to enable usb networking (ALT-N), as described earlier in this thread. I also hope to include a script for geolocation on US devices (ALT-L). Any other suggestions?
isotherm is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
The Frugal Kindle ~ Frugal Finds Under $9 for the Kindle (Kindle eBook Resource) eTrubrown Self-Promotions by Authors and Publishers 3 10-10-2010 07:12 PM
Transfer Kindle books from Kindle PC to Kindle 3 ppearce Amazon Kindle 15 09-16-2010 06:11 PM
Font hacks for the Kindle 2, Kindle International and Kindle DX edge777 Kindle Developer's Corner 17 04-30-2010 05:11 PM
$0.01 in Kindle Store: Interactive Sudoku for Kindle 2 and Kindle DX - Volume 1 Xia Deals, Freebies, and Resources (No Self-Promotion) 2 11-07-2009 11:06 AM


All times are GMT -4. The time now is 01:21 AM.


MobileRead.com is a privately owned, operated and funded community.