🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #262802

I'm narrowing it down, hopefully.

#262802
From: Jeff-Relf.Me
Date: Mon, 23 Jul 2018 23:34
39 lines
3519 bytes
stackoverflow.com/questions/50623154/c-sharp-wpf-windows-10-1803-touchkeyboard-unreliable-issue-prism-clickonce
I'm narrowing it down, hopefully.
To toggle the keyboard on and off:

if ( WM == WM_HOTKEY && C == 'K' ) {  //  A mouse button takes me here.
  static double  Mark ;               //  Jeff-Relf.Me/g600.PNG

  //  "TabTIP.EXE" ( Tablet Touch Input Pane ) must be invoked at least once;
  //  it needs to be launched periodically as well, I think, 
  //  but I'm not sure how often; more than once a minute is bad, I think.

  Secs > Mark + 60 ?
    Launch( L"%CommonProgramW6432%/microsoft shared/ink/TabTIP.EXE" ),
    Mark = _Secs : 0;

  static const GUID CLSID_UIHostNoLaunch = { 0x4CE576FA, 0x83DC, 0x4f88,
     0x95, 0x1C, 0x9D, 0x07, 0x82, 0xB4, 0xE3, 0x76 };
  static const GUID IID_ITipInvocation   = { 0x37c994e7, 0x432b, 0x4834,
     0xa2, 0xf7, 0xdc, 0xe1, 0xf1, 0x3b, 0x83, 0x4b };
  struct ITipInvocation : IUnknown {  virtual HRESULT STDMETHODCALLTYPE
     Toggle( HWND wnd ) = 0;  }  * KB = 0 ;
  CoCreateInstance( CLSID_UIHostNoLaunch, 0, CLSCTX_INPROC_HANDLER |
     CLSCTX_LOCAL_SERVER, IID_ITipInvocation, (void**) & KB );
  
  //  Toggle the keyboard ( Firefox and Chrome require this ):
  KB ? KB->Toggle( GetDesktopWindow() ), KB->Release() : 0 ;   }
.......
typedef LARGE_INTEGER  DubInt ;  unsigned __int64  u64 ;
u64  _Tics, Hz ;  double _Secs, _Hz ;
#define  Tics ( QueryPerformanceCounter( ( DubInt * ) & _Tics ), _Tics )
#define  Secs ( _Secs = Tics / _Hz )
//  CoInitialize(0), QueryPerformanceFrequency( (DubInt *) &Hz ), _Hz = Hz ;

Launch( wchar  *Cmd ) {  wchar  _Cmd[333];  static PROCESS_INFORMATION Stat ;
  static STARTUPINFO SU = { sizeof SU };
  SetEnvironmentVariable( L"__compat_layer", L"RunAsInvoker" );
  ExpandEnvironmentStrings( Cmd, _Cmd, 333 ), Cmd = _Cmd ;
  if ( CreateProcess( 0, Cmd, 0,0,1,0,0,0, &SU , &Stat ) )
    CloseHandle( Stat.hProcess ), CloseHandle( Stat.hThread );  }
Technical Details
Message-ID: <Jeff-Relf.Me@Jul.23--4.34pm.Seattle.2018>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.lang.c++.(381507).mbox.7z!not-for-mail
References: <fq0renFglc7U1@mid.individual.net> <phfok1$fmb$3@dont-email.me> <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> <Jeff-Relf.Me@Jul.16--6.12am.Seattle.2018> <Jeff-Relf.Me@Jul.16--9.02am.Seattle.2018> <Jeff-Relf.Me@Jul.17--1.14am.Seattle.2018> <Jeff-Relf.Me@Jul.17--8.40pm.Seattle.2018> <Jeff-Relf.Me@Jul.21--2.32am.Seattle.2018> <Jeff-Relf.Me@Jul.22--10.17am.Seattle.2018> <Jeff-Relf.Me@Jul.23--3.12am.Seattle.2018>

Show Full Headers
Complete Article Headers
Message-ID: <Jeff-Relf.Me@Jul.23--4.34pm.Seattle.2018>
Subject: I'm narrowing it down, hopefully.
Date: Mon, 23 Jul 2018 23:34:52 +0000
From: Jeff-Relf.Me @.
References: <fq0renFglc7U1@mid.individual.net> <phfok1$fmb$3@dont-email.me> <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> <Jeff-Relf.Me@Jul.16--6.12am.Seattle.2018> <Jeff-Relf.Me@Jul.16--9.02am.Seattle.2018> <Jeff-Relf.Me@Jul.17--1.14am.Seattle.2018> <Jeff-Relf.Me@Jul.17--8.40pm.Seattle.2018> <Jeff-Relf.Me@Jul.21--2.32am.Seattle.2018> <Jeff-Relf.Me@Jul.22--10.17am.Seattle.2018> <Jeff-Relf.Me@Jul.23--3.12am.Seattle.2018>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.lang.c++.(381507).mbox.7z!not-for-mail
Content-Type: Text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Newsgroups: comp.os.linux.advocacy,sci.physics,alt.comp.os.windows-10,news.software.readers,comp.lang.c++,alt.checkmate
User-Agent: Jeff-Relf.Me/X.HTM
Lines: 39
X-Complaints-To: abuse@usenet-news.net
NNTP-Posting-Date: Mon, 23 Jul 2018 23:34:51 UTC
Organization: usenet-news.net
X-Received-Bytes: 3338
X-Received-Body-CRC: 3086037639