I have strange issue with osk.exe process which is Windows 10's On-Screen Keyboard.
I would like to check if osk.exe is running. If it is, close it, if it is not then open in. Sort of toggle mode.
The scripts i use is:
Code: Select all
#notrayicon
#singleinstance force
Process, Exist, osk.exe
If ErrorLevel != 0
Process, Close, osk.exe
Else
Run, osk.exe
Weird thing is that if i change all osk.exe to foobar2000.exe it works with Foobar2000 app. Anybody has a clue why osk.exe is different? Thank you.