Guest fraktal Posted January 24, 2007 Report Posted January 24, 2007 Right, maybe i'm being stupidly hopeful here. My phone (a Hermes) knows when it's been slid open, right? I know it knows because it changes screen orientation. Now, why would you slide the phone open if you don't want to use it? You wouldn't. So.. Would it be, in any way, possible to run a program in the background so that when the phone was "opened" it automatically unlocked/woke up? I don't know how programs react when the phone is sleeping, it's just an idea that seems to make sense. (Developer challenge, paul?)
Guest mandt Posted January 24, 2007 Report Posted January 24, 2007 If the Hermes works in the same way as the wizard, the orientation switching is done with magnets (wave one over the screen and see) What my (admittedly non programming and possibly very wrong) brain tells me is that as there isn't an 'app' that swithches the screen, there wouldn't be anything for you to modify Although it is possible I'm hopelessly wrong!
Guest fraktal Posted January 25, 2007 Report Posted January 25, 2007 Hmm...surely there must be a software trigger somewhere, though? I see what you mean about a magnet sensing whether it's open or closed, but I can't believe that the screen is rotated by a connection being triggered mechanically....
Guest mwright Posted January 25, 2007 Report Posted January 25, 2007 Hmm...surely there must be a software trigger somewhere, though? I see what you mean about a magnet sensing whether it's open or closed, but I can't believe that the screen is rotated by a connection being triggered mechanically.... I am sure that there will be a software event associated with either the keyboard opening or, more likely, with the screen rotation that happens as a result of the keyboard slide. A skilled programmer could, I am sure, very easily write something to hook into that event and do what you need.
Guest wally(tm) Posted January 25, 2007 Report Posted January 25, 2007 even if it is "magnet thing" it still triggers some switch which is giving a electric impulse to some controller which is generating a system msg which HAS TO BE RECEIVED BY SOMEBODY :))))) if you can chose to have screen orientated on one way, no mater if it is "slided" or not, it means that software is switching orientation of screen ==== slide => magnets => trigger => rotate_this_stupid_screen(hwnd); more important thing is this that, when hermes if "off" then it's off like a brick, only some thing are actually working ... some buttons, gsm/umts radio, maybe bt ... i think that "orientation switching software" as the rest of thing that responds to any less important trigger are dead as rock when herm is off :D ( as in most of PPC ) I might be wrong, but what ever :D ;D ;F ;S ;X ~~ ^^
Guest Christopher Woods Posted January 26, 2007 Report Posted January 26, 2007 Of course there's a software event, how else would all these screen rotation programs work? :) I'm sure someone like Vijay off the XDA-Developers forums would have some ideas as to how to approach this.
Guest undergrid Posted January 27, 2007 Report Posted January 27, 2007 Of course there's a software event, how else would all these screen rotation programs work? :) I'm sure someone like Vijay off the XDA-Developers forums would have some ideas as to how to approach this. You get a WM_SETTINGCHANGE message when you open and close the device, Note that you can get this message for other reasons too so the wParam contains a flag telling you what's happened. I don't recall the screen rotation event flag. Of course if your using anything other than the Win32 API then you'll have to find out where the WM_SETTINGCHANGE message is mapped to.
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now