how to get event of sliding keyboard? - Windows Mobile Development and Hacking General

HTC Wizard and so....
recognizes hardware keyboard slide out and changes screen orientation.
should be there some hardware switcher.
if so:
how to determine this swither status and use it in code,
for example to to turn the power on when keyboard is sliding out?

Well, when the screen orientation changes all top-level windows should get a WM_SETTINGCHANGE message. Can't think of anything else off the top of my head.

have you tried...
http://blogs.msdn.com/onoj/archive/2004/03/12/88865.aspx
Not sure if there's an event (the keyboard driver may simply be calling all the required code), but the call in that article should hopefully tell you whether the keyboard is slid out or not; means you'd have to check periodically, I guess.

thanks for suggestions, but it did not helped.
I can recognize if the keyboard slide out/in, by the registry key.
nothing special hard.
but this registry key is defined at the moment when keyboard slide in/out but only when the poer is running. when you change keyboard when device sleep (power off), then when you turn the power up, you observe a second delay before the scrfeen orientation changes and refreshes.
I want to write appliaction which will turn the power up when the keyboard will slide out. I know how to write application which runs even when the device sleeps, but I need any event of keyboard changes.

once you figured out how to correctly detect the keyboard sliding out, maybe you could also make a little application which hides the keyboard in all application once the keyboard is open (for example with a keyboard of zero pixels high) When the keyboard is closed, the last used or standard keyboard should be made active again...
CIAO!
VOODOOS!L

You all will get surprised...but the screen rotation is hrdware dependent and what hardware..is a junction where two magnets meets and the force causes the thing to rotate...similar to the design of Nokia 6800...one can veryfy by using a magnet...and many of our friends hv experienced with the magnetic cover which comes with the handset..

Related

Registry Key for "AutoRotate" setting?

Can someone please help me tweak the setting which makes the screen rotate from landscape to portrait when the screen gets slid back over the keyboard.
I have a hardware button mapped to rotate the screen. I often use the unit in landscape and when doing so I occasionally want access to the keyboard. So I slide the screen up, type whatever I want to type, then slide it back. It's very annoying that doing so forces the screen back to portrait.
The behaviour I want is this:
[When in portrait] sliding open causes rotation to landscape.
[When in landscape] sliding open changes nothing.
[When in landscape] sliding closed changes nothing (currently it causes rotation to portrait).
1 & 2 are the default behaviours. Is it possible to keep them and add 3?
I think I have stumbled accross a solution to your problem.
I use VJOkButt from www.vijay.com mapped to the top right hardware button. This closes rather than minimses the currnet app when pressed. Anyway to achieve your option 3 all I do is Press the camera hardware button, this switches you to Landscape. If you click on the X to close the camera app the screen returns to portrait but if you press the hardware button mapped to VJOkButt the camera closes but the screen remains in landscape. Best of all opening or closing the keyboard does not change screen orientation. You can still manually change orientation back to Portrait from Settings>Screen. Soft reset will return to original functionality e.g. slide the keyboard to change orientation.
Hope this works for you.
Al
>cough< www.vijay555.com >cough<
Guys, anyone using VJOkButt should upgrade to this version, v0.73:
http://www.vijay555.com/vj/Releases/VJOkButt/VJOkButt.exe
I introduced a memory leak in 0.72 and tracked it down this lunch time. I haven't cabbed this up yet, because I'm still testing, but it should be more reliable (long term) then 0.72 which is available on my site at the moment.
Also one bug - I've made the window closing slightly too severe, so occassionally it will close a small dialog AND it's parent. This is only in isolated circumstances, but I'll fix this ASAP.
V
Sorry mate I'm having a typo day today
www.vijay555.com it is.
Thanks for your hard work.
I appreciate the effort you you put in to improving life for the PDAphone community. Programming is a dark art to me but I would love to learn. I used to break out in a sweat just with simple dos scripts.
Al

recognize event of slide keyboard (htc wizard)

any idea? how to get event of slide keyboard was opened?
mean: wizard changes screen orientation where we slide out/in the hardware keyboard. how to get with this event? in coding.
I dont want to recognize just a screen orientation, what I can do now, I want to recognize where is the hardware kayboard.

Detecting and suppressing sliding keybaord event

Hi,
on my WM device, when the sliding keyboard is opened and i am on the Today screen, the keyboard enters a "number lock state". what that means is that the when the w,e,r,s,d,f,z,x,c keys are pressed, they are mapped to number keys which are outputted instead of the letters. I would like to disable this. It is possible i believe, since when Pocket Word or other editors are open and in focus, it works fine..the the letters are outputted when pressed and if you would like to enter a number, you press FN key then the letter corresponding to the number.
However, when the today screen is showing, it does not work. My question is...does anyone know what events are fired or what messages are sent when the keyboard is slid open? Or what causes devices with sliding keyboard to exhibit the behavior described above when on the Today screen, but not when an app such as Pocket Word is open.
i have tried spying various windows while sliding out and closing the keyboard, but have not noticed anything relevant.
thank you
Hi,
For owners with a device with a slide-out keyboard, when you are ON TODAY SCREEN and press one of the overloaded keys that also acts as the number keys, is a number outputted and does it take you directly to the phone screen?
That is the behavior of my device. I have to think that since this behavior only occurs on the Today screen, it can be turned off so that the keyboard act as it normally would (i.e. when the user is in Word for instance).
What i am not sure about is whether this is a native Windows Mobile behavior or controled by the keyboard driver or some other lib.
On my Cingular 8125 if I push a number key (along with the red 'alt' key to designate it as a number) it does in fact open the phonepad with that number entered in.
Qtek 9100 (HTC Wizard) -- doesn't switch into numlock mode when the keyboard slides out. On this kbd, the top row (QWERTY) is overloaded with the digits 1-0. Pressing the Q key doesn't do anything; however, pressing the symshift (dot key on lower left) then Q opens the phone app & enters the digit '1'.
My old phone (Siemens SX66 -- HTC Blue Angel) exhibits the behavior you describe.
I'm wondering what driver function might be called to toggle between these modes. I notice many of these keyboard drivers implement these functions, including the one used in my device:
http://msdn.microsoft.com/library/d...wceddk40/html/cxgrflayoutmanagerfunctions.asp
http://msdn.microsoft.com/library/d...ceddk40/html/cxgrfkeyboarddriverfunctions.asp
Could one of these be responsible for toggling the mode?

Turn off device when slide keyboard closed

I almost ALWAYS power on my device (Wing) by sliding the keyboard open. I have to wait for the screen to rotate, UNLESS I power off BEFORE sliding the keyboard shut. Then, the next time I open it, it is already in landscape mode. I have gotten into the habit of pushing the power button, and THEN sliding keyboard shut. Is there a way to have my device power off (sleep whatever) when I slide the keyboard shut, just like it wakes up when I slide the keyboard open?
If not, how about a way to make the default orientation landscape--opposite of what it is now.
hi,
you can combine sliding keyboard sounds with Vijay555 DeviceLock.
wfg
starbase64
Sounds like a great solution. I can't get SlideSound to work ... I activate it, but it doesn't make the sounds or run the programs when I open/close the keyboard. I have Keyboard Sliding Sounds installed as part of my ROM. Even with that disabled, it doesn't work. Not sure what I'm doing wrong. I have posted the question on PPC geeks.

[Q] Keyboard shortcuts with apple keyboard

Hey there everyone, I just got an Apple Bluetooth Keyboard and I was wandering if there is some kind of list that tells the possible keyboard shortcuts available.
so far, I´ve found that cmd+f4 puts it to sleep or wakes it up, but I cannot "unlock" it. That is the main thing I want to find out how to do, but as much as I try, I cannot find the shortcut.
This might not be the same for you since I have a nook, not a tab, but...
For me the cmd key doesn't seem functional. Cmd-f4 and f4 both toggle the screen on/off and lock it (but not unlock)
The menu button seems to be mapped to to f1. Hitting escape seems to behave like the back button (gg vi from the terminal emulator).
The thing seems to very much map to the soft-keyboard. For example, alt-a makes a # (pound sign). Even more like the soft keyboard, you don't have to hold the alt. Push alt, release. Push a release, and you have #.
Also sometimes when I am just typing away it pops up randomly with a little window with options for random accented characters. I haven't found a pattern with that yet, but it is extremely annoying.
Hitting shift twice turns on caps lock, but the real caps lock doesn't work.
This line up with the Tab's behaviour? Anyone else find any useful shortcuts, or know a good reference? I'm betting a lot of these behaviours are shared between android devices and random bluetooth keyboards.

Categories

Resources