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

    • Lmao. Cries about not playing those games not installed and yet don't ever want to touch them.
    • If I want to merge folder trees that have a similar structure, Beyond Compare is always my first choice. It's not free but it's awesome. If I want to just scan a whole drive/folder and find duplicates that are taking up space, I like Czkawka.
    • Claude Code gets throttled as Anthropic rolls out fresh usage caps by David Uzondu Claude Code, the AI-in-terminal utility developed by Anthropic and launched back in February, is getting updated usage limits following weeks of user complaints about being abruptly cut off. Many developers on the "$200/month Max plan" found their access blocked after just a few requests, with no explanation from the company. In a recent thread posted to X, the AI lab explained that it has seen "unprecedented demand since launch," pointing to some of its heaviest users who were running the tool continuously in the background 24/7, with one person reportedly consuming tens of thousands of dollars in model usage on a single $200 subscription. Anthropic also claimed that some users were violating its usage policy by sharing and reselling accounts, which impacts system capacity for everyone. These factors all led the company to announce new weekly limits that will be added on top of the existing five-hour caps, effective August 28. Max plan subscribers will have the option to buy additional usage at standard API rates if they hit their cap. Here's what the new weekly limits look like: Pro Plan ($20/month): An estimated 40 to 80 hours of usage with the Sonnet 4 model. Max Plan ($100/month): An estimated 140 to 280 hours with Sonnet 4 and 15 to 35 hours with the top-tier Opus 4 model. Max Plan ($200/month): An estimated 240 to 480 hours with Sonnet 4 and 24 to 40 hours with Opus 4. Per TechCrunch, the company provided these hour-based estimates, noting that the actual numbers may vary based on the size of a project's codebase. What's interesting is how this new structure compares to the old marketing. Anthropic previously advertised its $200 Max plan as offering 20 times more usage than the Pro plan. Based on these new hourly estimates, that multiple is now closer to six. It is possible the 20x figure still applies when measured in tokens or raw compute, but, according to TechCrunch, the company has not clarified that point.
    • I don't give a rat's f### what Trumpette, the Putin puppet likes!
  • Recent Achievements

    • First Post
      Gladiattore earned a badge
      First Post
    • Reacting Well
      Gladiattore earned a badge
      Reacting Well
    • 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
  • Popular Contributors

    1. 1
      +primortal
      642
    2. 2
      ATLien_0
      260
    3. 3
      Xenon
      165
    4. 4
      neufuse
      142
    5. 5
      +FloatingFatMan
      107
  • Tell a friend

    Love Neowin? Tell a friend!