how can i run a program BEFORE logon


Recommended Posts

hello ppl, i have a question, how can i run the On Screen Keyboard @ the log-in window (classic style) ?

i got a touch screen and i want to get rid of my normal keyboard so i need to know how to set the On screen Keyboard (%systemroot%\system32\osk.exe) to start up so u can "type" your password and loginname.

i used instsrv to install it as a service but tat does not work (the service crashes after about 10 sconds)

plz help :)

Link to comment
https://www.neowin.net/forum/topic/102824-how-can-i-run-a-program-before-logon/
Share on other sites

tnx but it does not really work...i tried 2 scripts:

Set WSHShell = WScript.CreateObject("WScript.Shell")
WSHShell.Run ("osk")

and

start %systemroot%\system32\osk.exe

but for some reason they don;t work...i see the keyboard being launched but it immediatly goes away....should i use another script?

Try looking around in accessibility options. I know the language bar will run during login, so you can enter your name in languages such as Japanese or Korean. Also try looking around on msdn/technet. Sorry I can't be of more help, I've just never seen anyone try to run a program before login.

You could always delete the password, or do autologin, but I'm guessing since you're asking you've already considered those options.

well...i figured it out....

when you start the osk with a startup script it runs as a system process, this means that it's "hidden" after you have logged in.

I solved it by creating a logon script this runs when you logon, after the startup script, this script terminates the osk with kill.exe and then starts it again but this time as the logged in user so the user can use the osk :)

damn...getting sick of this...now i get a weird error!

the OSK starts for a split second and then closes down, when i start it in windows (after logging on) i get this message: "cannot open switching port"

i think i get this @ the startup to, any1 know how to solve this problem?

ok, now it runs...this is how i did it:

i made a startupscript called osk.bat:

c:\windows\system32\osk.exe

than i made another script which i placed into the startupfolder of every user, osk2.bat:

c:\scripts\kill osk.exe
c:\windows\system32\osk.exe

these scripts start de osk and the other1 stops the system process and than starts osk.exe again but now as a process of the logged in user.

i did not have any errors this time...

by the way, i got the kill.exe from the NT 4 Resourcekit....

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • That has AI shoved in as well, and I expect at some point that will become more in your face.
    • Edge on a Mac? Hell no, as bad as Edge on Linux, I did not use Edge on Windows. The Ai rubbish is getting too much, seem like it is being put into every flipping app and devices these days. I have disabled it on my Mac, dead easy to do that, disabled it on Brave. I agree with David Uzondu, why can't browsers be simple like they used to be. Not that Chrome is simple and still have AI shoved into that. I like the Duck Duck go browser, but that have AI even, but it can be disabled, the only problem with the Duck Duck go browser is no support for extensions. Maybe we should back to Mosaic.
    • Another reason to stick with Firefox
    • Yes, the Control Pannel issue has been fixed. As I ask when people claim it hasn't, can you name a single thing in Windows 11 that can only be done by opening Control Panel? Your comment about Error 0x80070643 is so asinine that I debated if you were worth a reply, but here I am. The article mentioned a VERY specific issue with the WinRE partition size being too small in Windows 10 and preventing updates from being installed unless you reinstalled or manually fixed it. That issue does not exist on Windows 11, period. To point to random issues with Windows updates on 11 that don't affect everyone and don't involve that issue is being dishonest. Had the article said "Issues with updates, such as..." then I'd agree with you, but it didn't, it simply mentioned that one specific issue, which despite your claim, does not exist on 11 or on newer builds of 10 (so the article is kind of wrong, it did get fixed, just not gracefully). As far as UX/UI comes more down to opinion, but again, you are saying it is "terrible" which has nothing to do with consistency. Windows 11 has a more consistent interface. You are welcome to say it is constantly bad, but I don't see how any objective person can say it isn't more constant than Windows 10's unholy merger of Windows 7 and Windows 8. To be fair, I really like Windows 10's interface, it worked great, but was it consistent, NO, it was one of the least consistent interfaces MS has ever made. I agree with the lack of competition. Linux continues to get better
  • Recent Achievements

    • Week One Done
      NeoWeen earned a badge
      Week One Done
    • One Month Later
      BA the Curmudgeon earned a badge
      One Month Later
    • First Post
      Doreen768 earned a badge
      First Post
    • One Month Later
      James_kobe earned a badge
      One Month Later
    • Week One Done
      James_kobe earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      671
    2. 2
      ATLien_0
      256
    3. 3
      Xenon
      165
    4. 4
      neufuse
      145
    5. 5
      +FloatingFatMan
      114
  • Tell a friend

    Love Neowin? Tell a friend!