A Windows XP help forum. PCbanter

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.

Go Back   Home » PCbanter forum » Windows 10 » Windows 10 Help Forum
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

If the keyboard doesn't come up right away.



 
 
Thread Tools Rate Thread Display Modes
  #1  
Old July 16th 18, 02:38 PM posted to comp.os.linux.advocacy,alt.comp.os.windows-10,comp.lang.c++
Paul[_32_]
external usenet poster
 
Posts: 11,873
Default 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  
Old July 16th 18, 06:31 PM posted to comp.os.linux.advocacy,alt.comp.os.windows-10,comp.lang.c++
Jeff-Relf.Me @.
external usenet poster
 
Posts: 234
Default "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
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off






All times are GMT +1. The time now is 07:14 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 PCbanter.
The comments are property of their posters.