Use built-in Windows touch keyboard #530
FantasyTeddy
started this conversation in
Ideas
Replies: 3 comments 8 replies
-
|
It doesn’t hide when you press enter :) |
Beta Was this translation helpful? Give feedback.
1 reply
-
using System;
using System.Diagnostics;
using System.Runtime.InteropServices;
class SoftKeyboardCloser
{
[DllImport("user32.dll", SetLastError = true)]
private static extern bool PostMessage(IntPtr hWnd, uint Msg, IntPtr wParam, IntPtr lParam);
private const uint WM_SYSCOMMAND = 0x0112;
private const int SC_CLOSE = 0xF060;
static void CloseTouchKeyboard()
{
foreach (Process process in Process.GetProcessesByName("TabTip"))
{
IntPtr hWnd = process.MainWindowHandle;
if (hWnd != IntPtr.Zero)
{
PostMessage(hWnd, WM_SYSCOMMAND, (IntPtr)SC_CLOSE, IntPtr.Zero);
Console.WriteLine("Touch Keyboard closed.");
}
}
}
static void Main(string[] args)
{
CloseTouchKeyboard();
}
}Not tried it yet tho - and asking the process to close seems a little harsh, but maybe that's the way it works? Spawns a new tabtip.exe each time the keyboard pops up? |
Beta Was this translation helpful? Give feedback.
3 replies
-
|
Whatever you do don't ditch the AOG keyboard. the windows keyboard is a pain in the a** as it moves windows or hide the text zone. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The popup keyboard that is currently used supports 3 keyboard layouts: default (English), "fr" (French) & "de" (German).
Bildschirmaufnahme.2025-01-05.102830.mp4
While this works fine for the existing layouts, adding additional keyboard layouts is not trivial and would require a lot of manual work.
Windows has built-in support for a touch keyboard since Windows 10, if it is enabled in the settings.
By using the built-in version instead of the custom keyboard, support for any additional keyboard layout is automatically provided by Windows.
Bildschirmaufnahme.2025-01-05.103206.mp4
Beta Was this translation helpful? Give feedback.
All reactions