Thread View: news.software.readers
24 messages
24 total messages
Started by Jeff-Relf.Me
Tue, 10 Jul 2018 20:52
Toggling "Touch Keyboard" On/Off, Firefox and Chrome.
Author: Jeff-Relf.Me
Date: Tue, 10 Jul 2018 20:52
Date: Tue, 10 Jul 2018 20:52
34 lines
2676 bytes
2676 bytes
Previously, I wrote:
> I love my ArmMounted, 40 inch, 4k, curved monitor, at arm's length,
> in bed; but, with no real desk or touch screen,
> hardware keyboards are a major pain in the ass.
>
> So I was thrilled by the "Touch Keyboard" recently introduced
> to the Windows 10, MouseOnly DesktopMode;
> what's more, it lets me (voice) dictate text.
>
> Now, "Jeff-Relf.Me/X.HTM" supports these SystemWide "HotKeys"
> ( assigned to g600 mouse buttons, Jeff-Relf.Me/g600.PNG ):
>
> Alt+Shift+Ctrl+K: Toggles "Touch Keyboard" On/Off.
> Alt+Shift+Ctrl+M: Toggles Monitor On/Off(asleep).
Compared to other apps, Firefox and Chrome are very picky
about how they interact with the Touch Keyboard;
so " Show Touch Keyboard button ", in SysTray, Must be Enabled.
"Randomly", the keyboard is slow to come up; I'm working on it.
HWND Win, TaskBar, SysTray, Keyboard ; MSG Msg ;
...
TaskBar = FindWindow( L"Shell_TrayWnd", 0 );
SysTray = FindWindowEx( TaskBar, 0, L"TrayNotifyWnd", 0 );
Keyboard = FindWindowEx( SysTray, 0, L"TIPBand", 0 );
....
RegisterHotKey(
Win, 'K', MOD_CONTROL | MOD_ALT | MOD_SHIFT | MOD_NOREPEAT, 'K' );
....
if ( Msg.message == WM_HOTKEY && Msg.wParam == 'K' )
Launch( L"/Program Files/Common Files/microsoft shared/ink/TabTip.EXE" ),
PostMessage( Keyboard, WM_LBUTTONDOWN, 0, 0 ),
PostMessage( Keyboard, WM_LBUTTONUP, 0, 0 );
Re: Toggling "Touch Keyboard" On/Off, Firefox and Chrome.
Author: %
Date: Tue, 10 Jul 2018 20:56
Date: Tue, 10 Jul 2018 20:56
37 lines
2999 bytes
2999 bytes
On 2018-07-10 1:52 PM, Jeff-Relf.Me@. wrote: > Previously, I wrote: >> I love my ArmMounted, 40 inch, 4k, curved monitor, at arm's length, >> in bed; but, with no real desk or touch screen, >> hardware keyboards are a major pain in the ass. >> >> So I was thrilled by the "Touch Keyboard" recently introduced >> to the Windows 10, MouseOnly DesktopMode; >> what's more, it lets me (voice) dictate text. >> >> Now, "Jeff-Relf.Me/X.HTM" supports these SystemWide "HotKeys" >> ( assigned to g600 mouse buttons, Jeff-Relf.Me/g600.PNG ): >> >> Alt+Shift+Ctrl+K: Toggles "Touch Keyboard" On/Off. >> Alt+Shift+Ctrl+M: Toggles Monitor On/Off(asleep). > > Compared to other apps, Firefox and Chrome are very picky > about how they interact with the Touch Keyboard; > so " Show Touch Keyboard button ", in SysTray, Must be Enabled. > > "Randomly", the keyboard is slow to come up; I'm working on it. > > HWND Win, TaskBar, SysTray, Keyboard ; MSG Msg ; > ... > TaskBar = FindWindow( L"Shell_TrayWnd", 0 ); > SysTray = FindWindowEx( TaskBar, 0, L"TrayNotifyWnd", 0 ); > Keyboard = FindWindowEx( SysTray, 0, L"TIPBand", 0 ); > .... > RegisterHotKey( > Win, 'K', MOD_CONTROL | MOD_ALT | MOD_SHIFT | MOD_NOREPEAT, 'K' ); > .... > if ( Msg.message == WM_HOTKEY && Msg.wParam == 'K' ) > Launch( L"/Program Files/Common Files/microsoft shared/ink/TabTip.EXE" ), > PostMessage( Keyboard, WM_LBUTTONDOWN, 0, 0 ), > PostMessage( Keyboard, WM_LBUTTONUP, 0, 0 ); > wait until you see what a real computer can do
ReKilling Cortana zombies.
Author: Jeff-Relf.Me
Date: Fri, 13 Jul 2018 08:47
Date: Fri, 13 Jul 2018 08:47
22 lines
2048 bytes
2048 bytes
Previously, I wrote:
> Alt+Shift+Ctrl+K: Toggles "Touch Keyboard" On/Off.
> "Randomly", the keyboard is slow to come up; I'm working on it.
The fix was to ReKill Cortana.
Windows Update brings Cortana back from the dead, as a zombie;
Zombie Cortana then randomly blocks "Touch Keyboard".
Find the Cortana process in the TaskManager -> "Open File Location".
ReTake, ReGain ownership of the Cortana folder.
Try to rename the folder [ a prompt will come up ];
kill Cortana so you can _Quickly_ hit "Try again",
thus renaming it before Cortana returns from the dead.
Copy Over a TextFile and give it the same name as the Cortana folder,
so (hopefully) the folder won't get ReCreated.
Merge the following into the registry and ReBoot:
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Search]
"AllowCortana"=dword:0
Re: Toggling "Touch Keyboard" On/Off, Firefox and Chrome.
Author: Storage Unit
Date: Mon, 16 Jul 2018 03:01
Date: Mon, 16 Jul 2018 03:01
45 lines
3836 bytes
3836 bytes
Jeff-Relf.Me @. writes:
> Previously, I wrote:
>> I love my ArmMounted, 40 inch, 4k, curved monitor, at arm's length,
>> in bed; but, with no real desk or touch screen,
>> hardware keyboards are a major pain in the ass.
>>
>> So I was thrilled by the "Touch Keyboard" recently introduced
>> to the Windows 10, MouseOnly DesktopMode;
>> what's more, it lets me (voice) dictate text.
>>
>> Now, "Jeff-Relf.Me/X.HTM" supports these SystemWide "HotKeys"
>> ( assigned to g600 mouse buttons, Jeff-Relf.Me/g600.PNG ):
>>
>> Alt+Shift+Ctrl+K: Toggles "Touch Keyboard" On/Off.
>> Alt+Shift+Ctrl+M: Toggles Monitor On/Off(asleep).
>
> Compared to other apps, Firefox and Chrome are very picky
> about how they interact with the Touch Keyboard;
> so " Show Touch Keyboard button ", in SysTray, Must be Enabled.
>
> "Randomly", the keyboard is slow to come up; I'm working on it.
>
> HWND Win, TaskBar, SysTray, Keyboard ; MSG Msg ;
> ...
> TaskBar = FindWindow( L"Shell_TrayWnd", 0 );
> SysTray = FindWindowEx( TaskBar, 0, L"TrayNotifyWnd", 0 );
> Keyboard = FindWindowEx( SysTray, 0, L"TIPBand", 0 );
> ....
> RegisterHotKey(
> Win, 'K', MOD_CONTROL | MOD_ALT | MOD_SHIFT | MOD_NOREPEAT, 'K' );
> ....
> if ( Msg.message == WM_HOTKEY && Msg.wParam == 'K' )
> Launch( L"/Program Files/Common Files/microsoft shared/ink/TabTip.EXE" ),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Things like that are the reason why Windows programs suddenly break when
something is not installed to default location.
By the way, Jeff, why no HTML posts anymore?
> PostMessage( Keyboard, WM_LBUTTONDOWN, 0, 0 ),
> PostMessage( Keyboard, WM_LBUTTONUP, 0, 0 );
--
Emacs OS
As I get older, I give fewer and fewer fucks.
Author: Jeff-Relf.Me
Date: Mon, 16 Jul 2018 05:09
Date: Mon, 16 Jul 2018 05:09
15 lines
1890 bytes
1890 bytes
"Storage_Unit" [sic] replied to me : > > if ( Msg.message == WM_HOTKEY && Msg.wParam == 'K' ) > > Launch( L"/Program Files/Common Files/microsoft shared/ink/TabTip.EXE" ), > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > Things like that are the reason why Windows programs suddenly break > when something is not installed to default location. Amen to that, it's a _damn_serious_ problem. My code, on the other hand, affects no one but me. > By the way, Jeff, why no HTML posts anymore? <PRE> is thee _only_ way to post a "table" (report); otherwise, it won't display properly on Google Groups. As I get older, I give fewer and fewer fucks.
As I get older, I give fewer and fewer fucks.
Author: Jeff-Relf.Me
Date: Mon, 16 Jul 2018 13:05
Date: Mon, 16 Jul 2018 13:05
29 lines
2595 bytes
2595 bytes
<PRE Style='Font-Family: OCR A, monospace !important;'>
> > > if ( Msg.message == WM_HOTKEY && Msg.wParam == 'K' )
> > > Launch( L"/Program Files/Common Files/microsoft shared/ink/TabTip.EXE" ),
The "random delay" thing is still happening; my latest attempt:
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(); }
If the keyboard doesn't come up right away.
Author: Jeff-Relf.Me
Date: Mon, 16 Jul 2018 13:12
Date: Mon, 16 Jul 2018 13:12
46 lines
3126 bytes
3126 bytes
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(); }
TerminateProcess( aProc, 9 ).
Author: Jeff-Relf.Me
Date: Mon, 16 Jul 2018 16:02
Date: Mon, 16 Jul 2018 16:02
55 lines
3579 bytes
3579 bytes
<PRE Style='Font-Family: OCR A, monospace !important;'>
Yet another Correction... see "TerminateProcess( aProc, 9 )".
From "Jeff-Relf.Me/X.CPP" in "Jeff-Relf.Me/X.ZIP".
#include <InitGuid.H>
#include <tlhelp32.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' ) {
static int Cnt ; static double Mark ; ITipInvocation * VirKeyboard ;
HANDLE PIDs, aProc ; PROCESSENTRY32 aPID;
// 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.
if ( !Mark || Secs > Mark + 3 ? Cnt = 0, Mark = Secs : 0, ++Cnt > 3 ) {
PIDs = CreateToolhelp32Snapshot( TH32CS_SNAPPROCESS, 0 );
aPID.dwSize = sizeof( PROCESSENTRY32 ), Process32First( PIDs, &aPID );
NextProc:
if ( Eqi( aPID.szExeFile,
L"WindowsInternal.ComposableShell.Experiences.TextInput.InputApp.EXE" ) )
aProc = OpenProcess( PROCESS_TERMINATE, 0, aPID.th32ProcessID ),
aProc ? TerminateProcess( aProc, 9 ), CloseHandle(aProc) : 0,
Launch( L"/Program Files/Common Files/microsoft shared/ink/TabTip.EXE" );
if ( Process32Next( PIDs, &aPID ) ) goto NextProc ;
CloseHandle( PIDs ); }
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(); }
Re: Toggling "Touch Keyboard" On/Off, Firefox and Chrome.
Author: Lewis
Date: Mon, 16 Jul 2018 16:05
Date: Mon, 16 Jul 2018 16:05
48 lines
3736 bytes
3736 bytes
In message <0eet1f-5ld.ln1@news.neodome.net> Storage Unit <storage.unit@mailinator.com> wrote: > Jeff-Relf.Me @. writes: >> Previously, I wrote: >>> I love my ArmMounted, 40 inch, 4k, curved monitor, at arm's length, >>> in bed; but, with no real desk or touch screen, >>> hardware keyboards are a major pain in the ass. >>> >>> So I was thrilled by the "Touch Keyboard" recently introduced >>> to the Windows 10, MouseOnly DesktopMode; >>> what's more, it lets me (voice) dictate text. >>> >>> Now, "Jeff-Relf.Me/X.HTM" supports these SystemWide "HotKeys" >>> ( assigned to g600 mouse buttons, Jeff-Relf.Me/g600.PNG ): >>> >>> Alt+Shift+Ctrl+K: Toggles "Touch Keyboard" On/Off. >>> Alt+Shift+Ctrl+M: Toggles Monitor On/Off(asleep). >> >> Compared to other apps, Firefox and Chrome are very picky >> about how they interact with the Touch Keyboard; >> so " Show Touch Keyboard button ", in SysTray, Must be Enabled. >> >> "Randomly", the keyboard is slow to come up; I'm working on it. >> >> HWND Win, TaskBar, SysTray, Keyboard ; MSG Msg ; >> ... >> TaskBar = FindWindow( L"Shell_TrayWnd", 0 ); >> SysTray = FindWindowEx( TaskBar, 0, L"TrayNotifyWnd", 0 ); >> Keyboard = FindWindowEx( SysTray, 0, L"TIPBand", 0 ); >> .... >> RegisterHotKey( >> Win, 'K', MOD_CONTROL | MOD_ALT | MOD_SHIFT | MOD_NOREPEAT, 'K' ); >> .... >> if ( Msg.message == WM_HOTKEY && Msg.wParam == 'K' ) >> Launch( L"/Program Files/Common Files/microsoft shared/ink/TabTip.EXE" ), > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > Things like that are the reason why Windows programs suddenly break when > something is not installed to default location. Are you even able to install microsoft crap in a custom location? Microsoft has been reliant on hard-coded paths since before Windows, and Windows 10 is no different. -- 'Winners never talk about glorious victories. That's because they're the ones who see what the battlefield looks like afterwards. It's only the losers who have glorious victories.' --Small Gods
Re: Toggling "Touch Keyboard" On/Off, Firefox and Chrome.
Author: Paavo Helde
Date: Mon, 16 Jul 2018 16:31
Date: Mon, 16 Jul 2018 16:31
22 lines
2760 bytes
2760 bytes
On 16.07.2018 19:05, Lewis wrote: > In message <0eet1f-5ld.ln1@news.neodome.net> Storage Unit <storage.unit@mailinator.com> wrote: >> Jeff-Relf.Me @. writes: >>> Launch( L"/Program Files/Common Files/microsoft shared/ink/TabTip.EXE" ), >> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ >> Things like that are the reason why Windows programs suddenly break when >> something is not installed to default location. > > Are you even able to install microsoft crap in a custom location? > > Microsoft has been reliant on hard-coded paths since before Windows, > and Windows 10 is no different. There are lots of computers where there is no C:\Program Files, but for example C:\Programme or C:\Archivos de programa. Not to speak about missing C: in the original example, the code would fail every time the current drive happens to be not C:. There are Windows SDK functions for figuring out the locations of such folders, but apparently if the program happened to work once somewhere it's not broken.
Switch SysFolders to Short, Friendly Paths, all under "C:\__" ( Home ).
Author: Jeff-Relf.Me
Date: Mon, 16 Jul 2018 17:15
Date: Mon, 16 Jul 2018 17:15
106 lines
8044 bytes
8044 bytes
> > > Launch( L"/Program Files/Common Files/microsoft shared/ink/TabTip.EXE" ),
> > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> > Things like that are the reason why Windows programs suddenly break when
> > something is not installed to default location.
>
> Are you even able to install microsoft crap in a custom location?
>
> Microsoft has been reliant on hard-coded paths since before Windows,
> and Windows 10 is no different.
I've been doing the following for many years now [ Jeff-Relf.Me/Win10.REG ]:
; Remove "Desktop, Documents, Downloads, Music, Pictures, Videos" folders From "This PC".
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{B4BFCC3A-DB2C-424C-B029-7FE99A87C641}]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{B4BFCC3A-DB2C-424C-B029-7FE99A87C641}]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{A8CDFF1C-4878-43be-B5FD-F8091C1C60D0}]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{d3162b92-9365-467a-956b-92703aca08af}]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{A8CDFF1C-4878-43be-B5FD-F8091C1C60D0}]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{d3162b92-9365-467a-956b-92703aca08af}]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{374DE290-123F-4565-9164-39C4925E467B}]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{088e3905-0323-4b02-9826-5d99428e115f}]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{374DE290-123F-4565-9164-39C4925E467B}]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{088e3905-0323-4b02-9826-5d99428e115f}]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{1CF1260C-4DD0-4ebb-811F-33C572699FDE}]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{3dfdf296-dbec-4fb4-81d1-6a3438bcf4de}]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{1CF1260C-4DD0-4ebb-811F-33C572699FDE}]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{3dfdf296-dbec-4fb4-81d1-6a3438bcf4de}]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{3ADD1653-EB32-4cb0-BBD7-DFA0ABB5ACCA}]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{24ad3ad4-a569-4530-98e1-ab02f9417aa8}]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{3ADD1653-EB32-4cb0-BBD7-DFA0ABB5ACCA}]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{24ad3ad4-a569-4530-98e1-ab02f9417aa8}]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{A0953C92-50DC-43bf-BE83-3742FED03C9C}]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{f86fa3ab-70d2-4fc7-9c99-fcbf05467f3a}]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{A0953C92-50DC-43bf-BE83-3742FED03C9C}]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{f86fa3ab-70d2-4fc7-9c99-fcbf05467f3a}]
; SystemWide Environment Variables:
; HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment
; "TMP"="%SystemRoot%\\Tmp"
; Reqires a ReBoot.
[HKEY_CURRENT_USER\Environment]
"TMP"="C:\\__\\Tmp"
"TEMP"="C:\\__\\Tmp"
; Telnet.EXE, Zip.EXE, UnZip.EXE, 7z.EXE, nirCmd.EXE, Brc.EXE, pcre.DLL, ffmPeg.EXE
"Path"="C:\\__\\EXEs\\Shell"
; Switch SysFolders to Short, Friendly Paths, all under "C:\__" ( Home ).
;
; First, "RightClick Properties -> Location -> Move" each special folder.
; Make Sure "MyDocumentsLocation", "Shell Folders"/"Personal",
; and "User Shell Folders"/"Personal" ( below ) agree with each other.
[HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\15.0]
"MyDocumentsLocation"="C:\\__\\Sys"
"VisualStudioLocation"="C:\\__\\Sys\\AppData\\Microsoft\\VisStudio"
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders]
"Personal"="C:\\__\\Sys"
"{374DE290-123F-4565-9164-39C4925E467B}"="c:\\__\\Sys"
"Startup"="C:\\__\\Startup"
"SendTo"="C:\\__\\SendTo"
"AppData"="c:\\__\\Sys\\AppData"
"Local AppData"="C:\\__\\Sys\\AppData"
"Local Settings"="C:\\__\\Sys"
"Local AppDataLow"="C:\\__\\Sys\\AppData\\LocalLow"
"Cache"="C:\\__\\Sys\\AppData\\IE-Tmp"
"Desktop"="C:\\__\\Sys\\AppData\\Desktop"
"PrintHood"="C:\\__\\Sys\\AppData\\PrintHood"
"NetHood"="C:\\__\\Sys\\AppData\\NetHood"
"Cookies"="C:\\__\\Sys\\AppData\\Cookies"
"Recent"="C:\\__\\Sys\\AppData\\Recent"
"Start Menu"="C:\\__\\Sys\\AppData\\Start Menu"
"Programs"="C:\\__\\Sys\\AppData\\Programs"
"History"="C:\\__\\Sys\\AppData\\History"
"Templates"="C:\\__\\Sys\\AppData\\Templates"
"Favorites"="C:\\__\\Sys\\AppData\\-Crap-"
"My Pictures"="C:\\__\\Sys\\AppData\\-Crap-"
"My Music"="C:\\__\\Sys\\AppData\\-Crap-"
"My Video"="C:\\__\\Sys\\AppData\\-Crap-"
"{A520A1A4-1780-4FF6-BD18-167343C5AF16}"="C:\\__\\Sys\\AppData\\LocalLow"
[-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders]
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders]
"Personal"="C:\\__\\Sys"
"{374DE290-123F-4565-9164-39C4925E467B}"="c:\\__\\Sys"
"Startup"="C:\\__\\Startup"
"SendTo"="C:\\__\\SendTo"
"AppData"="c:\\__\\Sys\\AppData"
"Local AppData"="C:\\__\\Sys\\AppData"
"Local Settings"="C:\\__\\Sys"
"Local AppDataLow"="C:\\__\\Sys\\AppData\\LocalLow"
"Cache"="C:\\__\\Sys\\AppData\\IE-Tmp"
"Desktop"="C:\\__\\Sys\\AppData\\Desktop"
"PrintHood"="C:\\__\\Sys\\AppData\\PrintHood"
"NetHood"="C:\\__\\Sys\\AppData\\NetHood"
"Cookies"="C:\\__\\Sys\\AppData\\Cookies"
"Recent"="C:\\__\\Sys\\AppData\\Recent"
"Start Menu"="C:\\__\\Sys\\AppData\\Start Menu"
"Programs"="C:\\__\\Sys\\AppData\\Programs"
"History"="C:\\__\\Sys\\AppData\\History"
"Templates"="C:\\__\\Sys\\AppData\\Templates"
"Favorites"="C:\\__\\Sys\\AppData\\-Crap-"
"My Pictures"="C:\\__\\Sys\\AppData\\-Crap-"
"My Music"="C:\\__\\Sys\\AppData\\-Crap-"
"My Video"="C:\\__\\Sys\\AppData\\-Crap-"
"{A520A1A4-1780-4FF6-BD18-167343C5AF16}"="C:\\__\\Sys\\AppData\\LocalLow"
The best way to toggle the Touch Keyboard.
Author: Jeff-Relf.Me
Date: Tue, 17 Jul 2018 08:14
Date: Tue, 17 Jul 2018 08:14
63 lines
3788 bytes
3788 bytes
<PRE Style='Font-Family: OCR A, monospace !important;'>
As it turns out...
The best way to toggle the Touch Keyboard,
is to "Kill/ReStart" it each time.
"KB->Toggle()" still has to be called, as Firefox and Chrome need it.
From "X.CPP" in "Jeff-Relf.Me/X.ZIP".
if ( WM == WM_HOTKEY && C == 'K' ) { // A mouse button takes me here.
HANDLE PIDs, aProc ; PROCESSENTRY32 aPID; ITipInvocation * KB = 0 ;
PIDs = CreateToolhelp32Snapshot( TH32CS_SNAPPROCESS, 0 );
aPID.dwSize = sizeof( PROCESSENTRY32 ), Process32First( PIDs, &aPID );
NextProc:
if ( Eqi( aPID.szExeFile, L"TabTip.EXE" ) ) {
if ( aProc = OpenProcess( PROCESS_TERMINATE, 0, aPID.th32ProcessID ) )
TerminateProcess( aProc, 9 ), CloseHandle( aProc );
goto ReStart ; }
if ( Process32Next( PIDs, &aPID ) ) goto NextProc ;
ReStart: CloseHandle( PIDs );
Launch( L"%CommonProgramW6432%/microsoft shared/ink/TabTip.EXE" );
LoopJ(9) if ( CoCreateInstance( CLSID_UIHostNoLaunch, 0,
CLSCTX_INPROC_HANDLER | CLSCTX_LOCAL_SERVER, IID_ITipInvocation, (void**)&KB ), !KB )
Sleep(99); else { KB->Toggle( GetDesktopWindow() ), KB->Release(); break ; } }
.....
#include <InitGuid.H>
#include <tlhelp32.H>
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; };
#define Eqi !strCmpI
#define LoopJ( N ) int J = -1, eJ = ( N ) - 1 ; while ( ++J <= eJ )
void Launch( LnP Cmd ) { int Err, rv ;
wchar _Cmd[333]; ExpandEnvironmentStrings( Cmd, _Cmd, 333 ), Cmd = _Cmd ;
static PROCESS_INFORMATION Stat ; static STARTUPINFO SU = { sizeof SU };
SetEnvironmentVariable( L"__compat_layer", L"RunAsInvoker" );
rv = CreateProcess( 0, Cmd, 0,0,1,0,0,0, &SU , &Stat ), CD( LocDir );
if ( !rv ) {
Err = GetLastError(), *_B_Sh = 0 ;
FormatMessage( FORMAT_MESSAGE_FROM_SYSTEM, 0, Err, 0, _B_Sh, 999, 0 );
Sh( L"Error: %d, %s\n\n <%s> wasn't launched", Err, _B_Sh, Cmd );
return; }
CloseHandle( Stat.hProcess ), CloseHandle( Stat.hThread ); }
Re: Toggling "Touch Keyboard" On/Off, Firefox and Chrome.
Author: Storage Unit
Date: Tue, 17 Jul 2018 10:32
Date: Tue, 17 Jul 2018 10:32
60 lines
4772 bytes
4772 bytes
Lewis <g.kreme@gmail.com.dontsendmecopies> writes: > In message <0eet1f-5ld.ln1@news.neodome.net> Storage Unit <storage.unit@mailinator.com> wrote: >> Jeff-Relf.Me @. writes: > >>> Previously, I wrote: >>>> I love my ArmMounted, 40 inch, 4k, curved monitor, at arm's length, >>>> in bed; but, with no real desk or touch screen, >>>> hardware keyboards are a major pain in the ass. >>>> >>>> So I was thrilled by the "Touch Keyboard" recently introduced >>>> to the Windows 10, MouseOnly DesktopMode; >>>> what's more, it lets me (voice) dictate text. >>>> >>>> Now, "Jeff-Relf.Me/X.HTM" supports these SystemWide "HotKeys" >>>> ( assigned to g600 mouse buttons, Jeff-Relf.Me/g600.PNG ): >>>> >>>> Alt+Shift+Ctrl+K: Toggles "Touch Keyboard" On/Off. >>>> Alt+Shift+Ctrl+M: Toggles Monitor On/Off(asleep). >>> >>> Compared to other apps, Firefox and Chrome are very picky >>> about how they interact with the Touch Keyboard; >>> so " Show Touch Keyboard button ", in SysTray, Must be Enabled. >>> >>> "Randomly", the keyboard is slow to come up; I'm working on it. >>> >>> HWND Win, TaskBar, SysTray, Keyboard ; MSG Msg ; >>> ... >>> TaskBar = FindWindow( L"Shell_TrayWnd", 0 ); >>> SysTray = FindWindowEx( TaskBar, 0, L"TrayNotifyWnd", 0 ); >>> Keyboard = FindWindowEx( SysTray, 0, L"TIPBand", 0 ); >>> .... >>> RegisterHotKey( >>> Win, 'K', MOD_CONTROL | MOD_ALT | MOD_SHIFT | MOD_NOREPEAT, 'K' ); >>> .... >>> if ( Msg.message == WM_HOTKEY && Msg.wParam == 'K' ) >>> Launch( L"/Program Files/Common Files/microsoft shared/ink/TabTip.EXE" ), >> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ >> Things like that are the reason why Windows programs suddenly break when >> something is not installed to default location. > > Are you even able to install microsoft crap in a custom location? It's been many years, but if I remember correctly many system folders are called differently in different versions of Windows (French, Japanese, Chinese, etc.) because their names are translated to native language of the user. For example, I'm 100% sure that Desktop and Documents folders' names are always translated. I guess Desktop is not that important, but Documents folder is the default place where many programs keep their files, which mean that they try to access it at the startup. Even programs that allow custom paths to folders are often break when those paths contain non-ASCII characters. > Microsoft has been reliant on hard-coded paths since before Windows, > and Windows 10 is no different. -- Emacs OS
Hopefully, I got it right this time ( only time will tell ).
Author: Jeff-Relf.Me
Date: Wed, 18 Jul 2018 03:40
Date: Wed, 18 Jul 2018 03:40
74 lines
4609 bytes
4609 bytes
<PRE Style='Font-Family: OCR A, monospace !important;'>
Hopefully, I got it right this time ( only time will tell ).
stackoverflow.com/questions/38774139/show-touch-keyboard-tabtip-exe-in-windows-10-anniversary-edition
To toggle the Touch Keyboard, and not have it randomly stall,
Kill "TabTip.EXE" -and-
"WindowsInternal.ComposableShell.Experiences.TextInput.InputApp.EXE"
each time ( each toggle ).
If both were running, then the keyboard _was_ up ( now down, killed );
otherwise, ReLaunch them, and run "KB->Toggle()" ( for Firefox&Chrome ).
From "X.CPP" in "Jeff-Relf.Me/X.ZIP".
if ( WM == WM_HOTKEY && C == 'K' ) { // A mouse button takes me here.
ITipInvocation * KB = 0 ; // Jeff-Relf.Me/g600.PNG
if ( Kill( L"TabTip.EXE" ) + Kill( L"WindowsInternal.ComposableShell"
L".Experiences.TextInput.InputApp.EXE" ) < 2 ) {
Launch( L"%WinDir%/SystemApps/InputApp_cw5n1h2txyewy/"
L"WindowsInternal.ComposableShell.Experiences."
L"TextInput.InputApp.EXE" );
Launch( L"%CommonProgramW6432%/microsoft shared/ink/TabTip.EXE" );
LoopJ(9)
if ( CoCreateInstance(
CLSID_UIHostNoLaunch, 0, CLSCTX_INPROC_HANDLER
| CLSCTX_LOCAL_SERVER, IID_ITipInvocation, (void**)&KB ), !KB )
Sleep(99); else {
KB->Toggle( GetDesktopWindow() ), KB->Release(); break ; } } }
.....
#include <InitGuid.H>
#include <tlhelp32.H>
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; };
#define Eqi !strCmpI
#define LoopJ( N ) int J = -1, eJ = ( N ) - 1 ; while ( ++J <= eJ )
int Kill( LnP EXE ) { HANDLE PIDs, aProc = 0 ; PROCESSENTRY32 aPID;
PIDs = CreateToolhelp32Snapshot( TH32CS_SNAPPROCESS, 0 );
aPID.dwSize = sizeof( PROCESSENTRY32 ), Process32First( PIDs, &aPID );
NextProc:
if ( Eqi( aPID.szExeFile, EXE ) ) {
if ( aProc = OpenProcess( PROCESS_TERMINATE, 0, aPID.th32ProcessID ) )
TerminateProcess( aProc, 9 ), CloseHandle( aProc ); goto Close ; }
if ( Process32Next( PIDs, &aPID ) ) goto NextProc ;
Close: CloseHandle( PIDs ); return !!aProc ; }
void Launch( LnP Cmd ) { int Err, rv ;
wchar _Cmd[333]; ExpandEnvironmentStrings( Cmd, _Cmd, 333 ), Cmd = _Cmd ;
static PROCESS_INFORMATION Stat ; static STARTUPINFO SU = { sizeof SU };
SetEnvironmentVariable( L"__compat_layer", L"RunAsInvoker" );
rv = CreateProcess( 0, Cmd, 0,0,1,0,0,0, &SU , &Stat ), CD( LocDir );
if ( !rv ) {
Err = GetLastError(), *_B_Sh = 0 ;
FormatMessage( FORMAT_MESSAGE_FROM_SYSTEM, 0, Err, 0, _B_Sh, 999, 0 );
Sh( L"Error: %d, %s\n\n <%s> wasn't launched", Err, _B_Sh, Cmd );
return; }
CloseHandle( Stat.hProcess ), CloseHandle( Stat.hThread ); }
Re: Toggling "Touch Keyboard" On/Off, Firefox and Chrome.
Author: %
Date: Wed, 18 Jul 2018 13:23
Date: Wed, 18 Jul 2018 13:23
60 lines
4279 bytes
4279 bytes
On 2018-07-17 3:32 AM, Storage Unit wrote: > Lewis <g.kreme@gmail.com.dontsendmecopies> writes: > >> In message <0eet1f-5ld.ln1@news.neodome.net> Storage Unit <storage.unit@mailinator.com> wrote: >>> Jeff-Relf.Me @. writes: >> >>>> Previously, I wrote: >>>>> I love my ArmMounted, 40 inch, 4k, curved monitor, at arm's length, >>>>> in bed; but, with no real desk or touch screen, >>>>> hardware keyboards are a major pain in the ass. >>>>> >>>>> So I was thrilled by the "Touch Keyboard" recently introduced >>>>> to the Windows 10, MouseOnly DesktopMode; >>>>> what's more, it lets me (voice) dictate text. >>>>> >>>>> Now, "Jeff-Relf.Me/X.HTM" supports these SystemWide "HotKeys" >>>>> ( assigned to g600 mouse buttons, Jeff-Relf.Me/g600.PNG ): >>>>> >>>>> Alt+Shift+Ctrl+K: Toggles "Touch Keyboard" On/Off. >>>>> Alt+Shift+Ctrl+M: Toggles Monitor On/Off(asleep). >>>> >>>> Compared to other apps, Firefox and Chrome are very picky >>>> about how they interact with the Touch Keyboard; >>>> so " Show Touch Keyboard button ", in SysTray, Must be Enabled. >>>> >>>> "Randomly", the keyboard is slow to come up; I'm working on it. >>>> >>>> HWND Win, TaskBar, SysTray, Keyboard ; MSG Msg ; >>>> ... >>>> TaskBar = FindWindow( L"Shell_TrayWnd", 0 ); >>>> SysTray = FindWindowEx( TaskBar, 0, L"TrayNotifyWnd", 0 ); >>>> Keyboard = FindWindowEx( SysTray, 0, L"TIPBand", 0 ); >>>> .... >>>> RegisterHotKey( >>>> Win, 'K', MOD_CONTROL | MOD_ALT | MOD_SHIFT | MOD_NOREPEAT, 'K' ); >>>> .... >>>> if ( Msg.message == WM_HOTKEY && Msg.wParam == 'K' ) >>>> Launch( L"/Program Files/Common Files/microsoft shared/ink/TabTip.EXE" ), >>> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ >>> Things like that are the reason why Windows programs suddenly break when >>> something is not installed to default location. >> >> Are you even able to install microsoft crap in a custom location? > > It's been many years, but if I remember correctly many system folders > are called differently in different versions of Windows (French, > Japanese, Chinese, etc.) because their names are translated to native > language of the user. For example, I'm 100% sure that Desktop and > Documents folders' names are always translated. I guess Desktop is not > that important, but Documents folder is the default place where many > programs keep their files, which mean that they try to access it at the > startup. > > Even programs that allow custom paths to folders are often break when > those paths contain non-ASCII characters. > >> Microsoft has been reliant on hard-coded paths since before Windows, >> and Windows 10 is no different. > then why aren't you using 10
Another fail, another post...
Author: Jeff-Relf.Me
Date: Sat, 21 Jul 2018 09:32
Date: Sat, 21 Jul 2018 09:32
111 lines
5882 bytes
5882 bytes
<PRE Style='Font-Family: OCR A, monospace !important;'>
Another fail, another post...
stackoverflow.com/questions/50623154/c-sharp-wpf-windows-10-1803-touchkeyboard-unreliable-issue-prism-clickonce
I wrote an app that toggles the "Touch Keyboard" on and off
at the hit of a mouse button ( Jeff-Relf.Me/g600.PNG ).
Occasionally, it doesn't work for a minute ( Win10 Ver 1803 ).
I think I'm confusing it, somehow,
as it wasn't designed for heavy mouse users like me.
Killing "...TextInput.InputApp.EXE" makes it work again;
apparently, it's more "Modern/Metro" than Windows desktop.
Now, my ( poorly tested ) KeyboardToggle will:
- Use "IFrameworkInputPane.Location()" to determine if
the keyboard toggle hasn't worked, last 3 times;
if so, kill "...TextInput.InputApp.EXE".
- Ensure that "TabTip.EXE" is running;
launch it as many times as it takes, Zero or more times,
until it shows up in the process list.
- Use "ITipInvocation.Toggle()" to toggle the keyboard.
From "X.CPP" in " Jeff-Relf.Me/X.ZIP ":
if ( WM == WM_HOTKEY && C == 'K' ) { // A mouse button takes me here.
static int FailCnt ; static int PrevUp = -1 ; u64 *u ;
int Up = -2 ; RECT _Up ; IFrameworkInputPane *kb = 0 ;
// - Use "IFrameworkInputPane.Location()" to determine if
// the keyboard toggle hasn't worked, last 3 times;
// if so, kill "...TextInput.InputApp.EXE".
CoCreateInstance( CLSID_FrameworkInputPane, 0,
CLSCTX_INPROC_SERVER, IID_IFrameworkInputPane, (void**) &kb);
kb ? kb->Location( &_Up ), u = (u64*) &_Up,
Up = !!( *u + u[1] ), kb->Release() : 0 ;
if ( Up == PrevUp ? FailCnt++ : FailCnt = 0, PrevUp = Up, FailCnt >= 3 )
FailCnt = 0, KillProc = 1, Running( L"WindowsInternal.ComposableShell"
L".Experiences.TextInput.InputApp.EXE" );
// - Ensure that "TabTip.EXE" is running;
// launch it as many times as it takes, Zero or more times,
// until it shows up in the process list.
Verify = 1, Launch(
L"%CommonProgramW6432%/microsoft shared/ink/TabTip.EXE" );
// - Use "ITipInvocation.Toggle()" to toggle the keyboard.
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 );
// Firefox and Chrome require this:
KB ? KB->Toggle( GetDesktopWindow() ), KB->Release() : 0 ; }
.....
// Poorly documented, "NTDDI_WIN10" is _vital_:
#define NTDDI_VERSION NTDDI_WIN10
// To get the process list, and kill stuff:
#include <tlhelp32.H>
// To know if the keyboard is up or not:
#include <ShObjIdl.H>
#define Eqi !strCmpI
#define FromEnd wcsrchr
typedef wchar *LnP ;
typedef unsigned __int64 u64 ;
int KillProc ;
int Running( LnP EXE ) { int Found ;
HANDLE PIDs, aProc ; PROCESSENTRY32 aPID = { sizeof aPID };
PIDs = CreateToolhelp32Snapshot( TH32CS_SNAPPROCESS, 0 );
Process32First( PIDs, &aPID );
while ( Found = Eqi( aPID.szExeFile, EXE ),
KillProc && Found &&
( aProc = OpenProcess( PROCESS_TERMINATE, 0, aPID.th32ProcessID ) )
? TerminateProcess( aProc, 9 ), CloseHandle( aProc ) : 0,
!Found && Process32Next( PIDs, &aPID ) );
KillProc = 0, CloseHandle( PIDs ); return Found ; }
int Verify ;
void Launch( LnP Cmd ) { LnP EXE ; wchar _Cmd[333];
static PROCESS_INFORMATION Stat ;
static STARTUPINFO SU = { sizeof SU };
SetEnvironmentVariable( L"__compat_layer", L"RunAsInvoker" );
ExpandEnvironmentStrings( Cmd, _Cmd, 333 ), Cmd = _Cmd ;
P = FromEnd( Cmd, '/' ), EXE = Verify && P ? ++P : 0 ;
ReRun: if ( EXE && Running( EXE ) ) goto CleanUp ;
if ( !CreateProcess( 0, Cmd, 0,0,1,0,0,0, &SU , &Stat ) ) goto CleanUp ;
CloseHandle( Stat.hProcess ), CloseHandle( Stat.hThread );
if ( Verify ) { Sleep(99) ; goto ReRun ; }
CleanUp: Verify = 0 ; }
Another fail, another post...
Author: Jeff-Relf.Me
Date: Sun, 22 Jul 2018 17:17
Date: Sun, 22 Jul 2018 17:17
104 lines
5921 bytes
5921 bytes
<PRE Style='Font-Family: OCR A, monospace !important;'>
stackoverflow.com/questions/50623154/c-sharp-wpf-windows-10-1803-touchkeyboard-unreliable-issue-prism-clickonce
More like this:
// - Ensure InputApp and TabTip are running
// ( may have to ReStart Explorer ).
// - If the previous keyboard toggle Failed, kill InputApp, try again.
// - Toggle the keyboard.
if ( WM == WM_HOTKEY && C == 'K' ) { // A mouse button takes me here.
int Fail, Up ; static int PrevUp = -1 ;
u64 u[2] ; IFrameworkInputPane *kb ;
// - Ensure InputApp and TabTip are running
// ( may have to ReStart Explorer ):
ReTry: !InputApp ? eXplorer, InputApp : 0, TabTip ;
Fail = 1, Up = -1, kb = 0, CoCreateInstance( CLSID_FrameworkInputPane, 0,
CLSCTX_INPROC_SERVER, IID_IFrameworkInputPane, (void**) &kb);
kb ? kb->Location( (RECT*)&u ), Up = !!( *u + u[1] ),
Fail = Up == PrevUp, PrevUp = Up, kb->Release() : 0 ;
// - If the previous keyboard toggle Failed, kill InputApp, try again:
if ( Fail ) {
PrevUp = -1, KillProc = 1, Running( L"WindowsInternal.ComposableShell"
L".Experiences.TextInput.InputApp.EXE" ); goto ReTry ; }
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 ; }
.....
// Poorly documented, "NTDDI_WIN10" is _vital_:
#define NTDDI_VERSION NTDDI_WIN10
// To get the process list, and kill stuff:
#include <tlhelp32.H>
// To know if the keyboard is up or not:
#include <ShObjIdl.H>
#define Eqi !strCmpI
#define FromEnd wcsrchr
#define eXplorer ( Verify = 1, Launch( \
L"%ComSpec% /C \"taskkill /f /im explorer && start explorer\"" ) )
#define InputApp ( Verify = 1, Launch( \
L"%WinDir%/SystemApps/InputApp_cw5n1h2txyewy/" \
L"WindowsInternal.ComposableShell.Experiences" \
L".TextInput.InputApp.EXE" ) )
#define TabTip ( Verify = 1, Launch( \
L"%CommonProgramW6432%/microsoft shared/ink/TabTip.EXE" ) )
typedef wchar *LnP ;
typedef unsigned __int64 u64 ;
int KillProc ;
int Running( LnP EXE ) { int Found ;
HANDLE PIDs, aProc ; PROCESSENTRY32 aPID = { sizeof aPID };
PIDs = CreateToolhelp32Snapshot( TH32CS_SNAPPROCESS, 0 );
Process32First( PIDs, &aPID );
while ( Found = Eqi( aPID.szExeFile, EXE ),
KillProc && Found &&
( aProc = OpenProcess( PROCESS_TERMINATE, 0, aPID.th32ProcessID ) )
? TerminateProcess( aProc, 9 ), CloseHandle( aProc ) : 0,
!Found && Process32Next( PIDs, &aPID ) );
KillProc = 0, CloseHandle( PIDs ); return Found ; }
int Verify ;
int Launch( LnP Cmd ) {
int V = Verify ; Verify = 0 ; LnP EXE ; wchar _Cmd[333];
static PROCESS_INFORMATION Stat ;
static STARTUPINFO SU = { sizeof SU };
SetEnvironmentVariable( L"__compat_layer", L"RunAsInvoker" );
ExpandEnvironmentStrings( Cmd, _Cmd, 333 ), Cmd = _Cmd ;
P = FromEnd( Cmd, '/' ), EXE = V && P ? ++P : 0 ;
ReRun: if ( EXE && Running( EXE ) ) return 1 ;
if ( V == -1 ) {
Sh( L"<%s> dies after launching.", Cmd ); return 0 ; }
if ( !CreateProcess( 0, Cmd, 0,0,1,0,0,0, &SU , &Stat ) ) {
int Err = GetLastError(); wchar Msg[333]; *Msg = 0 ;
FormatMessage( FORMAT_MESSAGE_FROM_SYSTEM, 0, Err, 0, Msg, 333, 0 );
Sh( L"Error: %d, %s\n\n <%s> wasn't launched", Err, Msg, Cmd );
return 0 ; }
CloseHandle( Stat.hProcess ), CloseHandle( Stat.hThread );
if ( !V ) return 1 ; V = -1, Sleep(999); goto ReRun ; }
ITipInvocation.Toggle() fails BIG TIME if it's called more than once a second.
Author: Jeff-Relf.Me
Date: Mon, 23 Jul 2018 10:12
Date: Mon, 23 Jul 2018 10:12
28 lines
2972 bytes
2972 bytes
stackoverflow.com/questions/50623154/c-sharp-wpf-windows-10-1803-touchkeyboard-unreliable-issue-prism-clickonce
ITipInvocation.Toggle() fails* if it's called more than once a second; so:
[ *: BIG TIME; long stalls, Explorer ReStarts, etc. ]
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 ;
if ( WM == WM_HOTKEY && C == 'K' ) { // A mouse button takes me here.
static double Mark ;
// Ensure that 1 second has passed since the last keyboard toggle:
Secs < Mark + 1 ? Sleep( 999 - 999*( _Secs - Mark ) ) : 0, Mark = _Secs ;
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 ; }
I'm narrowing it down, hopefully.
Author: Jeff-Relf.Me
Date: Mon, 23 Jul 2018 23:34
Date: Mon, 23 Jul 2018 23:34
39 lines
3519 bytes
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 ); }
InputApp and TabTIP are _always_ killed.
Author: Jeff-Relf.Me
Date: Wed, 25 Jul 2018 12:48
Date: Wed, 25 Jul 2018 12:48
67 lines
4160 bytes
4160 bytes
stackoverflow.com/questions/50623154/c-sharp-wpf-windows-10-1803-touchkeyboard-unreliable-issue-prism-clickonce
When the keyboard toggle ( ITipInvocation.Toggle() )
doesn't work for a minute ( Win10 Ver 1803 ),
killing "...TextInput.InputApp.EXE" is the fix.
So, to toggle the keyboard on and off ( from X.CPP in Jeff-Relf.Me/X.ZIP ):
if ( WM == WM_HOTKEY && C == 'K' ) {
// A mouse button takes me here. Jeff-Relf.Me/g600.PNG
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 };
static struct ITipInvocation : IUnknown { virtual HRESULT STDMETHODCALLTYPE
Toggle( HWND wnd ) = 0; } * KB ;
#define ToggleKB ( KB = 0, CoCreateInstance( CLSID_UIHostNoLaunch, \
0, CLSCTX_INPROC_HANDLER | CLSCTX_LOCAL_SERVER, \
IID_ITipInvocation, (void**) & KB ), \
KB ? KB->Toggle( GetDesktopWindow() ), KB->Release() : 0 )
// InputApp and TabTIP are _always_ killed.
// IfAndOnlyIf InputApp _was_ running:
// The keyboard was up, and ToggleKB worked,
// taking the keyboard down ( Firefox&Chrome require ToggleKB ).
if ( ToggleKB, KillProc = 1, Running( L"TabTIP.EXE" ),
KillProc = 1, !Running( L"WindowsInternal.ComposableShell"
L".Experiences.TextInput.InputApp.EXE" ) )
// InputApp was _not_ running,
// launch "TabTIP" ( Tablet Touch Input Pane ):
Launch( L"%CommonProgramFiles%/microsoft shared/ink/TabTIP.EXE" ),
// Wait first (important),
// then bring the keyboard up ( Firefox&Chrome require ToggleKB ):
Sleep(99), ToggleKB ; }
.. . . . . . .
// To get the process list, and kill stuff:
#include <tlhelp32.H>
int KillProc ;
int Running( LnP EXE ) { int Found ; HANDLE PIDs, aProc ;
PROCESSENTRY32 aPID = { sizeof aPID };
PIDs = CreateToolhelp32Snapshot( TH32CS_SNAPPROCESS, 0 );
Process32First( PIDs, &aPID );
while ( Found = Eqi( aPID.szExeFile, EXE ),
KillProc && Found && (
aProc = OpenProcess( PROCESS_TERMINATE, 0, aPID.th32ProcessID ),
aProc ? TerminateProcess( aProc, 9 ), CloseHandle( aProc ) : 0 ),
!Found && Process32Next( PIDs, &aPID ) );
KillProc = 0, CloseHandle( PIDs ); return Found ; }
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 ); }
// CoInitialize(0);
Re: Toggling "Touch Keyboard" On/Off, Firefox and Chrome.
Author: Colonel Edmund J. Burke
Date: Wed, 25 Jul 2018 13:59
Date: Wed, 25 Jul 2018 13:59
8 lines
1673 bytes
1673 bytes
On 7/10/2018 1:56 PM, assworm babbled: > wait until you see what a real computer can do And living up in the Arctic Circle, one is always a step ahead of the mainstream electronics crowd. LOL IDIOT!
Re: Another fail, another post...
Author: Colonel Edmund J. Burke
Date: Wed, 25 Jul 2018 14:00
Date: Wed, 25 Jul 2018 14:00
1 lines
1682 bytes
1682 bytes
Quit poasting this horseshit, you anus!
Kill&ReStart the "touch keyboard" before bringing it "up" ( on screen ).
Author: Jeff-Relf.Me
Date: Sat, 28 Jul 2018 19:31
Date: Sat, 28 Jul 2018 19:31
82 lines
4858 bytes
4858 bytes
https://stackoverflow.com/questions/38774139/show-touch-keyboard-tabtip-exe-in-windows-10-anniversary-edition#51376030
The keyboard toggle ( ITipInvocation.Toggle() )
does _ N O T _ always bring up the "touch keyboard"
( Win10 DesktopMode Ver 1803 ).
The solution: use IFrameworkInputPane.Location() to see if the keyboard
is "down" ( off screen ) and, if it is, kill the keyboard processes
and relaunch them before bringing it "up" ( on screen ) again.
This solution has been tested by me, over several days,
and confirmed to work every time, no ( R A N D O M ) stalling.
To toggle the keyboard on and off ( from X.CPP in Jeff-Relf.Me/X.ZIP ):
if ( WM == WM_HOTKEY && C == 'K' ) {
// A mouse button takes me here. Jeff-Relf.Me/g600.PNG
unsigned __int64 u[2] ; IFrameworkInputPane *Loc ;
Loc = 0, CoCreateInstance( CLSID_FrameworkInputPane, 0,
CLSCTX_INPROC_SERVER, IID_IFrameworkInputPane, (void**) & Loc );
// "__int64 u[2]" is the same size as "RECT";
// both are four 32 bit ints: top, left, bottom, right.
if ( !Loc || ( Loc->Location( (RECT*)&u ), Loc->Release(), !*u && !u[1] ) )
// The keyboard is "down" ( off screen ),
// Kill&ReStart it before bringing it "up" ( on screen ).
KillProc = 1, Running( L"TabTIP.EXE" ), KillProc = 1, Running(
L"WindowsInternal.ComposableShell.Experiences.TextInput.InputApp.EXE" ),
Launch( L"%CommonProgramFiles%/microsoft shared/ink/TabTIP.EXE" ),
Sleep(99);
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 };
static struct ITipInvocation : IUnknown { virtual HRESULT
STDMETHODCALLTYPE Toggle( HWND wnd ) = 0 ; } * Tog ;
Tog = 0, CoCreateInstance( CLSID_UIHostNoLaunch, 0, CLSCTX_INPROC_HANDLER
| CLSCTX_LOCAL_SERVER, IID_ITipInvocation, (void**) & Tog );
// Toggle the keyboard On|Off:
Tog ? Tog->Toggle( GetDesktopWindow() ), Tog->Release() : 0 ; }
- - - - - - - - - - - - -
// Poorly documented, "NTDDI_WIN10" is _vital_:
#define NTDDI_VERSION NTDDI_WIN10
// To get the process list, and kill stuff:
#include <tlhelp32.H>
// To know if the keyboard is up or not:
#include <ShObjIdl.H>
int KillProc ;
int Running( wchar * EXE ) { int Found ; HANDLE PIDs, aProc ;
PROCESSENTRY32 aPID = { sizeof aPID };
PIDs = CreateToolhelp32Snapshot( TH32CS_SNAPPROCESS, 0 );
Process32First( PIDs, &aPID );
while ( Found = !strCmpI( aPID.szExeFile, EXE ),
KillProc && Found && (
aProc = OpenProcess( PROCESS_TERMINATE, 0, aPID.th32ProcessID ),
aProc ? TerminateProcess( aProc, 9 ), CloseHandle( aProc ) : 0 ),
!Found && Process32Next( PIDs, &aPID ) );
KillProc = 0, CloseHandle( PIDs ); return Found ; }
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 ); }
// CoInitialize(0);
Kill&ReStart the "touch keyboard" before bringing it "up" ( on screen ).
Author: Jeff-Relf.Me
Date: Mon, 30 Jul 2018 13:15
Date: Mon, 30 Jul 2018 13:15
70 lines
4476 bytes
4476 bytes
https://stackoverflow.com/a/51376030/5732431
In Win10 Ver 1803, DesktopMode, there is no reliable way to
toggle the "Touch Keyboard" on|off [ ITipInvocation.Toggle() ];
nor can you _reliably_ discover if it's "up" ( on screen )
[ IFrameworkInputPane.Location() ]; both routines fail _randomly_.
Instead, ensure that "TabTIP.EXE" and "....InputApp.EXE"
only run when the keyboard is "up" ( on screen ).
To toggle the keyboard on and off ( from X.CPP in Jeff-Relf.Me/X.ZIP ):
if ( WM == WM_HOTKEY && C == 'K' ) {
// A mouse button takes me here. Jeff-Relf.Me/g600.PNG
if ( KillProc = 1, Running( L"TabTIP.EXE" ), KillProc = 1, Running(
L"WindowsInternal.ComposableShell.Experiences.TextInput.InputApp.EXE"
) )
// The keyboard was _On_ ( i.e. its processes were running ),
// so it was "turned _Off_" (killed); and we're done.
goto Done ;
// The keyboard was _Off_ ( i.e. no running processes ).
// Turn it _On_:
Launch( L"%CommonProgramFiles%/microsoft shared/ink/TabTIP.EXE" );
Sleep(99);
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 };
static struct ITipInvocation : IUnknown { virtual HRESULT
STDMETHODCALLTYPE Toggle( HWND wnd ) = 0 ; } * Tog ;
Tog = 0, CoCreateInstance( CLSID_UIHostNoLaunch, 0, CLSCTX_INPROC_HANDLER
| CLSCTX_LOCAL_SERVER, IID_ITipInvocation, (void**) & Tog );
// Firefox and Chrome need this:
Tog ? Tog->Toggle( GetDesktopWindow() ), Tog->Release() : 0 ; }
- - - - - - - - - - - - -
// To get the process list, and kill stuff:
#include <tlhelp32.H>
int KillProc ;
int Running( wchar * EXE ) { int Found ; HANDLE PIDs, aProc ;
PROCESSENTRY32 aPID = { sizeof aPID };
PIDs = CreateToolhelp32Snapshot( TH32CS_SNAPPROCESS, 0 );
Process32First( PIDs, &aPID );
while ( Found = !strCmpI( aPID.szExeFile, EXE ),
KillProc && Found && (
aProc = OpenProcess( PROCESS_TERMINATE, 0, aPID.th32ProcessID ),
aProc ? TerminateProcess( aProc, 9 ), CloseHandle( aProc ) : 0 ),
!Found && Process32Next( PIDs, &aPID ) );
KillProc = 0, CloseHandle( PIDs ); return Found ; }
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 ); }
// CoInitialize(0);
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads