If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Rate Thread | Display Modes |
#1
|
|||
|
|||
If the keyboard doesn't come up right away.
Jeff-Relf.Me @. wrote:
Correction... The "random delay" thing is still happening; my latest attempt: #include InitGuid.H typedef LARGE_INTEGER DubInt ; unsigned __int64 u64 ; u64 _Tics, Hz ; double _Secs, _Hz ; #define Tics ( QueryPerformanceCounter( ( DubInt * ) & _Tics ), _Tics ) #define Secs ( _Secs = Tics / _Hz ) QueryPerformanceFrequency( ( DubInt * ) & Hz ), _Hz = Hz ; DEFINE_GUID( CLSID_UIHostNoLaunch, // 4ce576fa-83dc-4F88-951c-9d0782b4e376 0x4CE576FA, 0x83DC, 0x4f88, 0x95, 0x1C, 0x9D, 0x07, 0x82, 0xB4, 0xE3, 0x76); DEFINE_GUID( IID_ITipInvocation, // 37c994e7_432b_4834_a2f7_dce1f13b834b 0x37c994e7, 0x432b, 0x4834, 0xa2, 0xf7, 0xdc, 0xe1, 0xf1, 0x3b, 0x83, 0x4b); struct ITipInvocation : IUnknown { virtual HRESULT STDMETHODCALLTYPE Toggle(HWND wnd) = 0; }; if ( WM == WM_HOTKEY && C == 'K' ) { int Cnt = 1 ; static double Mark ; HWND Keyboard ; ITipInvocation * VirKeyboard ; // Alt+Shift+Ctrl+K: Toggles "Touch Keyboard" On/Off. // If the keyboard doesn't come up right away, // toggle 3 times in less than 3 seconds. !Mark || Secs Mark + 3 ? Mark = Secs, Cnt = 1 : ++Cnt 3 ? Mark = Secs, Cnt = 1, Keyboard = FindWindow( 0, L"Microsoft Text Input Application" ), Keyboard ? SendMessage( Keyboard, WM_SYSCOMMAND, SC_CLOSE, 0 ) : 0, Launch( L"/Windows/SystemApps/InputApp_cw5n1h2txyewy/" L"WindowsInternal.ComposableShell.Experiences.Text Input.InputApp.EXE" ) : 0 ; if ( CoCreateInstance( CLSID_UIHostNoLaunch, 0, CLSCTX_INPROC_HANDLER | CLSCTX_LOCAL_SERVER, IID_ITipInvocation, (void**)&VirKeyboard ) ) Launch( L"/Program Files/Common Files/microsoft shared/ink/TabTip.EXE" ); else VirKeyboard-Toggle( GetDesktopWindow() ), VirKeyboard-Release(); } So you're one of these people then... https://stackoverflow.com/questions/...ersary-edition Paul |
Ads |
#2
|
|||
|
|||
"PROCESS_TERMINATE" in "Jeff-Relf.Me/X.CPP" in "Jeff-Relf.Me/X.ZIP".
Paul wrote:
The "Touch Keyboard" doesn't always come up Right away. So you're one of these people then... stackoverflow.com/questions/38774139/show-touch-keyboard-tabtip-exe-in-windows-10-anniversary-edition Exactly. When the "Touch Keyboard" doesn't come up Right away: Kill( "WindowsInternal.ComposableShell.Experiences.TextI nput.InputApp.EXE" ). Launch( "TabTip.EXE" ). My "Touch Keyboard" toggle is tied to a mouse button; DoubleClicking it does the ReStart. See "PROCESS_TERMINATE" in "Jeff-Relf.Me/X.CPP" in "Jeff-Relf.Me/X.ZIP". |
Thread Tools | |
Display Modes | Rate This Thread |
|
|