Solved On-Screen Keyboard will only run from elevated command prompt

c2357

New member
Local time
6:09 PM
Messages
2
I recently noticed that I couldn't start the On-Screen Keyboard (osk.exe) from my start menu. Tried all kinds of clean-ups, but it would not run - not from the %windir%\system32 folder, not from start>run, not from an ordinary command shell. But it loads fine from an elevated command shell. It also runs from other user accounts. And it runs fine on log-on if enabled in the Ease of Access Center.
Does anyone know where its idiosyncratic behavior could originate from.:sarc:
 

My Computer

Computer Manufacturer/Model Number
Packard Bell / imedia S3210
OS
Windows 7 Home Premium (x64) Service Pack 1 (build 7601)
CPU
AMD LE-1660 2.80 GHz
Motherboard
Packard Bell WMCP78M
Memory
4,00 GB
Graphics Card(s)
NVIDIA GeForce 315
Monitor(s) Displays
NVIDIA GeForce 315
Hard Drives
WDC WD64 00AAKS-22A7B SCSI Disk Device (640,13 GB)
WD 10EACS External USB Device [Hard drive] (1000,20 GB)
Welcome to Seven Forums c2357. Does it run fine in Safe Mode? If so, you might try performing a clean start to see if there is a conflict.

http://www.sevenforums.com/tutorial...ation-conflicts-performing-clean-startup.html

See if unchecking Tablet PC Components in windows features correct this behavior

http://www.sevenforums.com/tutorials/5023-windows-features-turn-off.html

If not, try the System Files Checker

http://www.sevenforums.com/tutorials/1538-sfc-scannow-command-system-file-checker.html

It may be a permission issue, but then the question is what changed it, and how?

A Guy
 

My Computer

Computer type
PC/Desktop
OS
Windows 10 Home x64
CPU
INTEL Core i5-750 Quad-Core 3.37GHz
Motherboard
ASUS P7P55D
Memory
HyperX Fury Black Series 8GB (2 x 4GB) 1866Mhz
Graphics Card(s)
EVGA GeForce GTX 750 Superclocked 1GB 128-Bit GDDR5
Monitor(s) Displays
LG 32MA68HY 32" IPS
Screen Resolution
1920 x 1080
Hard Drives
Samsung 840 Evo 120GB, SEAGATE 500GB Barracuda® 7200.12, SATA 3 Gb/s, 7200 RPM, 16MB cache
PSU
ANTEC TruePower New TP-550, 80 PLUS, 550W
Case
ANTEC Three Hundred Illusion
Cooling
COOLER MASTER Hyper 212 Plus, 4 x 120mm 1 x 140mm Noctua's
Internet Speed
85 + Mbps
Antivirus
Avast
Browser
Vivaldi
Thanks A Guy!
I had performed the 2 last suggestions to no avail, but by performing a Clean Startup I was able to identify the culprit. As I suspected (since osk ran fine in another profile) it loaded as it should after a clean start-up. But it allowed me to pin down the villain by starting my usual start up programs one by one. It quickly turned out that it was AutoHotkey (i.e. AutoHotkey_L) that interfered with osk. As soon as AH was running osk wouldn't.
I'm no expert, but in hindsight, its not that surprising - both hook to the keyboard. My guess is that AH's keyboard hook prevents osk from acting as keyboard input device. Except when osk is run from an elevated shell, in which case it overrules AH and takes the hook. Haven't tried it, but I suspect AH malfunctions in the later case.

(one minute later)

Well, after trying launching osk from an elevated command prompt AH manged to stay in business (hooking to the physical keyboard, not the osk induced soft keyboard) - but some struggle was taking place under the hood - the cursor/mouse coordination became rather erratic.

The solution seems to be to suspend AH before launching osk, since the shortcuts won't work on the on-screen keyboard anyway.
 

My Computer

Computer Manufacturer/Model Number
Packard Bell / imedia S3210
OS
Windows 7 Home Premium (x64) Service Pack 1 (build 7601)
CPU
AMD LE-1660 2.80 GHz
Motherboard
Packard Bell WMCP78M
Memory
4,00 GB
Graphics Card(s)
NVIDIA GeForce 315
Monitor(s) Displays
NVIDIA GeForce 315
Hard Drives
WDC WD64 00AAKS-22A7B SCSI Disk Device (640,13 GB)
WD 10EACS External USB Device [Hard drive] (1000,20 GB)
Great, glad you figured it out, well done. Glad we could be of assistance. Thanks for posting your findings, it may help others. A Guy
 

My Computer

Computer type
PC/Desktop
OS
Windows 10 Home x64
CPU
INTEL Core i5-750 Quad-Core 3.37GHz
Motherboard
ASUS P7P55D
Memory
HyperX Fury Black Series 8GB (2 x 4GB) 1866Mhz
Graphics Card(s)
EVGA GeForce GTX 750 Superclocked 1GB 128-Bit GDDR5
Monitor(s) Displays
LG 32MA68HY 32" IPS
Screen Resolution
1920 x 1080
Hard Drives
Samsung 840 Evo 120GB, SEAGATE 500GB Barracuda® 7200.12, SATA 3 Gb/s, 7200 RPM, 16MB cache
PSU
ANTEC TruePower New TP-550, 80 PLUS, 550W
Case
ANTEC Three Hundred Illusion
Cooling
COOLER MASTER Hyper 212 Plus, 4 x 120mm 1 x 140mm Noctua's
Internet Speed
85 + Mbps
Antivirus
Avast
Browser
Vivaldi
Back
Top