madrista
|
2010-06-06
, 04:59
|
Posts: 8 |
Thanked: 0 times |
Joined on May 2010
|
#41
|
|
2010-06-06
, 13:11
|
|
Posts: 609 |
Thanked: 243 times |
Joined on Jan 2010
@ Eastern USA
|
#42
|
|
2010-06-14
, 14:46
|
Posts: 8 |
Thanked: 1 time |
Joined on May 2010
|
#43
|
Update:
New video with sound:
http://www.youtube.com/watch?v=xwVr3qjWbUU
The video says all:
http://www.youtube.com/watch?v=7ZeERqY9vFw
(To create rotate.py on the N900, download Leafpad, copy and paste the script in, and save as rotate.py )
Please note: Forcing the N900 to rotate can cause stability issues that lead to a reboot. Please be careful when using this script.
This is in no way a day-to-day usable keyboard, it's only a proof of concept.
Also, I claim no ownership of either discovery, just the result of putting the two together.
desktop = get_desk_top do every second: { rotate_state = get_rotate_state if rotate_state = horizontal rotate_window(desktop,horizontal) else roate_state = vertical rotate_window(desktop,vertical) }
old_rotate_state = get_rotate_state do every second: { rotate_state = get_rotate_state if rotate_state != old_rotete_state { window = find_topmost_window send_key_code_combination_message(window,'ctl+shift+r') } old_rotate_state = rotate_state }