Reply
Thread Tools
Posts: 8 | Thanked: 0 times | Joined on May 2010
#41
no such file or directory help please
 
xomm's Avatar
Posts: 609 | Thanked: 243 times | Joined on Jan 2010 @ Eastern USA
#42
Originally Posted by madrista View Post
no such file or directory help please
The file should be where you downloaded or created it.

Paste your exact command here, and tell us where you put the file.
__________________
==In school once again. Free time limited to night, holidays and weekends.==
Hi! I'm Andy, a Maemo Greeter! I'm also a moderator of the Applications, Nokia N900, and Maemo 5/Fremantle forums.
Useful Links: Maemo Wiki Main Page, New users start here, Beginners' wiki page, Maemo5 101, Frequently Asked Questions (FAQ)
Also, pin yourself in the map! Maemo Map. Send me a PM (Private Message) if I leave you hanging on a problem (or if you need more help).
Owner of both a N800 and N900; Active community member since Jan 2010. You've been xommified! - My blog.
 
Posts: 8 | Thanked: 1 time | Joined on May 2010
#43
Originally Posted by xomm View Post
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.

i looked that code and tested, it worked
i also heard that with combination of ctrl+shift+r will rotate the application topmost
and another keys combination ctrl+j+k+m+space+l (press l at last), will rotate the whole desktop

that make me thinking, all those rotate action are activated by a key combination

the python code of author, in a comment brief:

Code:
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)
}
inconvenience of this is, the window witch rotated is not prefect( return button untouchable, window title not completely visible sometimes)

so the idea is:

Code:
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
}
is that possible? the X windows architecture are working with a message loop? any function like "SendMessage" or "postEvent" in X libs?

since i never used X libs and python, i don t known how to introduce a structure and pointer into python, and i found a few doc of X libs

any suggestions?
 
Reply


 
Forum Jump


All times are GMT. The time now is 10:21.