Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: Running a program at startup when there's an alt. shell  (Read 1474 times)

0 Members and 1 Guest are viewing this topic.

SpamMe

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 538
  • Last login:July 01, 2006, 03:19:58 am
  • .creature of bad habit.
    • Mame cabinet blog
Running a program at startup when there's an alt. shell
« on: October 30, 2003, 05:49:20 am »
I'm running mamewah as a shell in WinXP (via the
HKLM>Software>Microsoft>WindowsNT>CurrentVersion>Winlogon>shell
 registry entry) and couldn't be happier, but my gamepads arrived yesterday, and I now need to make sure JoyToKey starts also.

JoyToKey won't run if placed in the C:\Documents and Settings\All Users\Start Menu\Programs\Startup folder, if it's set to run at system startup via Scheduled tasks, or via the HKLM>Software>Microsoft>Windows>CurrentVersion>Run registry entry. I assume all of these depend on explorer starting in some way.

The only way I've been able to get JoyToKey to start at all is via FireDaemon so that it runs as a service, but it causes problems with DirectInput, apparently, and the joypads stop working entirely. Anybody know how this can be done?
« Last Edit: October 30, 2003, 05:50:25 am by SpamMe »

SpamMe

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 538
  • Last login:July 01, 2006, 03:19:58 am
  • .creature of bad habit.
    • Mame cabinet blog
Re:Running a program at startup when there's an alt. shell
« Reply #1 on: October 30, 2003, 01:01:03 pm »
Set FireDaemon to delay JoyToKey's startup by 10 seconds, and I'm not getting the direct input errors now, but it's still not working. It may just not like being run as a service. Anybody have any other suggestions?

Random24

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 87
  • Last login:December 22, 2024, 01:51:59 pm
Re:Running a program at startup when there's an alt. shell
« Reply #2 on: October 30, 2003, 02:07:48 pm »
Are you running it as a service under the same account you are running the FE under?  I have found this to be an issue with firedaemon in the past.  Go to the services section of the control panel and set it to run as a specific user instead of the service account.

I hope this helps.  Please let us know if it works.

SpamMe

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 538
  • Last login:July 01, 2006, 03:19:58 am
  • .creature of bad habit.
    • Mame cabinet blog
Re:Running a program at startup when there's an alt. shell
« Reply #3 on: October 30, 2003, 05:43:27 pm »
Great idea, I'll give that a shot, thanks!

SpamMe

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 538
  • Last login:July 01, 2006, 03:19:58 am
  • .creature of bad habit.
    • Mame cabinet blog
Re:Running a program at startup when there's an alt. shell
« Reply #4 on: October 30, 2003, 07:39:56 pm »
Bleh, this is getting more convoluted all the time.
I was unable to logon as that user until "log on as a service" was set. JoyToKey would run, then, but still wasn't doing anything.

Left the logon and password blank so that I could turn on "interact with the desktop", and that seemed to work.
 From the FireDaemon documentation "If this is left blank the service will run as the LocalSystem user. Services running as any other user except LocalSystem cannot interact with the desktop. This is a Windows limitation."

Also added a nice long delay (10 sec) before JoyToKey boots.
If I pop open notepad, I can 'type' with the gamepads (yay), but once JoyToKey loads this way, I start getting directinput errors from the emulators.
The frontend (shell) will load, and I can quickly open an emulator before FireDaemon starts JoyToKey, and it'll open fine. Escape out of that back to Mamewah.  when opening the emulators. I'm so lost :(

Update
You can set XP to run a script (.bat etc.) at startup or login by running gpedit.msc and navigating to User Configuration > Windows Settings > Scripts > Logon or Computer Configuration > Windows Settings > Scripts > Startup

I've got a .bat that just has
@echo off
start /min <Path to JoyToKey>

and that seems to be doing the trick.
« Last Edit: October 31, 2003, 02:20:48 am by SpamMe »