AlexeiScherbakov / osklib

Library for controlling Windows On Screen Keyboard
MIT License
43 stars 13 forks source link

Does this no longer work? #2

Closed JohnnyPhoton closed 6 years ago

JohnnyPhoton commented 6 years ago

OnScreenKeyboard.IsOpened() always returns false. OnScreenKeyboard.Show will hide the keyboard if it is on screen. Using WPF.

AlexeiScherbakov commented 6 years ago

Ok, I'll check it, when my sister returns me tablet with sensor screen

10 Фев 2018 г. 1:01 пользователь "JohnnyPhoton" notifications@github.com написал:

OnScreenKeyboard.IsOpened() always returns false. OnScreenKeyboard.Show will hide the keyboard if it is on screen. Using WPF.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/AlexeiScherbakov/osklib/issues/2, or mute the thread https://github.com/notifications/unsubscribe-auth/AIQ7O3aWq0SFLZ0jUCIoEG_S-zURSdTVks5tTMAzgaJpZM4SAl4p .

JohnnyPhoton commented 6 years ago

Thanks. I suspect there is a bug in the latest windows version of the OSK as it doesn't work like it used to.

AlexeiScherbakov commented 6 years ago

@JohnnyPhoton , please check new version. If everything is fine - I submit it to NuGet.

Also you can check Osklib.Wpf project for activating Osk for TextBox'es, PasswordBox'es and RichTextBox'es

jb455 commented 6 years ago

Hi @AlexeiScherbakov, in the source code IsOpened is hardcoded to return false. I guess there's no way to tell if the keyboard is currently open then?

AlexeiScherbakov commented 6 years ago

Ops, I forgot about this stub :-D Check

JohnnyPhoton commented 6 years ago

I got busy with other stuff and just got back to this. Seems to be working well, thanks. Sometimes my surface pro just doesn't seem to want to use the OSK unless I disconnect all keyboards but that is the situation I wanted this for. My desktop system has no such issues.

Thanks again!

AlexeiScherbakov commented 6 years ago

I have detected that in some cases ITipInvocation COM/WinRT object calls Toggle without error but no keyboard is showed After I toggle it manually it begin works as expected for a long time. Because this thing is not documented feature - I don't know where is a problem. I think that if sensor keyboard is not used after computer reboot it need some additional step to activate in application.

Also you can check updated version :-)

JohnnyPhoton commented 6 years ago

Much better now. Seems consistent. Thanks! NuGet is not updated though.