Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > sci.physics > #694116

If the keyboard doesn't come up right away.

From Jeff-Relf.Me @.
Message-ID <Jeff-Relf.Me@Jul.16--6.12am.Seattle.2018> (permalink)
References (2 earlier) <a960d541-aed5-43b0-9fd9-7e6ec469940a@googlegroups.com> <Jeff-Relf.Me@Jul.10--2.24am.Seattle.2018> <Jeff-Relf.Me@Jul.10--1.52pm.Seattle.2018> <0eet1f-5ld.ln1@news.neodome.net> <Jeff-Relf.Me@Jul.15--10.09pm.Seattle.2018>
Newsgroups comp.os.linux.advocacy, sci.physics, alt.comp.os.windows-10, news.software.readers, comp.lang.c++, alt.checkmate
Subject If the keyboard doesn't come up right away.
Organization usenet-news.net
Date 2018-07-16 06:12 -0700

Cross-posted to 6 groups.

Show all headers | View raw


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.TextInput.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();  }

Back to sci.physics | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Toggling "Touch Keyboard" On/Off, Firefox and Chrome. Jeff-Relf.Me  @. - 2018-07-10 13:52 -0700
  Re: Toggling "Touch Keyboard" On/Off, Firefox and Chrome. % <persent@gmail.com> - 2018-07-10 13:56 -0700
  ReKilling Cortana zombies. Jeff-Relf.Me  @. - 2018-07-13 01:47 -0700
  Re: Toggling "Touch Keyboard" On/Off, Firefox and Chrome. Storage Unit <storage.unit@mailinator.com> - 2018-07-15 22:01 -0500
    As I get older, I give fewer and fewer fucks. Jeff-Relf.Me  @. - 2018-07-15 22:09 -0700
      If the keyboard doesn't come up right away. Jeff-Relf.Me  @. - 2018-07-16 06:12 -0700
        ITipInvocation.Toggle() fails BIG TIME if it's called more than once a second. Jeff-Relf.Me  @. - 2018-07-23 03:12 -0700
          I'm narrowing it down, hopefully. Jeff-Relf.Me  @. - 2018-07-23 16:34 -0700
            InputApp and TabTIP are _always_ killed. Jeff-Relf.Me  @. - 2018-07-25 05:48 -0700
              Kill&ReStart the "touch keyboard" before bringing it "up" ( on screen ). Jeff-Relf.Me  @. - 2018-07-28 12:31 -0700
                Kill&ReStart the "touch keyboard" before bringing it "up" ( on screen ). Jeff-Relf.Me  @. - 2018-07-30 06:15 -0700
        Re: Another fail, another post... "Colonel Edmund J. Burke" <burkesbabes@bigass-babes.com> - 2018-07-25 07:00 -0700
    Re: Toggling "Touch Keyboard" On/Off, Firefox and Chrome. Lewis <g.kreme@gmail.com.dontsendmecopies> - 2018-07-16 16:05 +0000
      Re: Toggling "Touch Keyboard" On/Off, Firefox and Chrome. Paavo Helde <myfirstname@osa.pri.ee> - 2018-07-16 19:31 +0300
      Switch SysFolders to Short, Friendly Paths, all under "C:\__" ( Home ). Jeff-Relf.Me  @. - 2018-07-16 10:15 -0700
      Re: Toggling "Touch Keyboard" On/Off, Firefox and Chrome. Storage Unit <storage.unit@mailinator.com> - 2018-07-17 05:32 -0500
        Re: Toggling "Touch Keyboard" On/Off, Firefox and Chrome. % <Persent@gmail.com> - 2018-07-18 06:23 -0700
  Re: Toggling "Touch Keyboard" On/Off, Firefox and Chrome. "reber G=emc^2" <herbertglazier0@gmail.com> - 2018-07-22 10:43 -0700
    Re: Toggling "Touch Keyboard" On/Off, Firefox and Chrome. "hanson" <hanson@quick.net> - 2018-07-22 11:06 -0700
    You can convert your speech into text, instead of typing. Jeff-Relf.Me  @. - 2018-07-22 11:48 -0700
      Re: You can convert your speech into text, instead of typing. Double-A <double-a3@hush.com> - 2018-07-22 16:22 -0700
  Re: Toggling "Touch Keyboard" On/Off, Firefox and Chrome. "reber G=emc^2" <herbertglazier0@gmail.com> - 2018-07-31 19:46 -0700
    NewsPapers and HandWritten letters are still good; just not as good. Jeff-Relf.Me  @. - 2018-07-31 20:18 -0700

csiph-web