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: AHK or Bat for demul  (Read 3914 times)

0 Members and 1 Guest are viewing this topic.

defre19766

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 29
  • Last login:March 16, 2020, 03:46:47 pm
  • I want to build my own arcade controls!
AHK or Bat for demul
« on: January 24, 2019, 01:36:40 pm »
Please can somebody help me with this . I just can't get it to work .

I want to launch a game in Demul using AHK or Bat .

game location => D:\Dreamcast Games\Crazy Taxi 2 (Europe)\Crazy Taxi 2 (Europe).gdi
Emulation location => D:\Hyperspin Rocketlauncher\Hyperspin\Emulators\Demul Dreamcast Crazy Taxi 2\Demul.exe

I tried following but no luck .
Bat =>
demul.exe -run=dc -rom="D:\Dreamcast Games\Crazy Taxi 2 (Europe)\Crazy Taxi 2 (Europe).gdi"
demul.exe -run=dc -rom= "D:\Dreamcast Games\Crazy Taxi 2 (Europe)\Crazy Taxi 2 (Europe).gdi"
demul.exe -run=dc -rom=D:\Dreamcast Games\Crazy Taxi 2 (Europe)\Crazy Taxi 2 (Europe).gdi
demul.exe -run=dc -rom= D:\Dreamcast Games\Crazy Taxi 2 (Europe)\Crazy Taxi 2 (Europe).gdi

No luck with this bat , i can get Demul open , but game don't run ??

AHK =>

Run, D:\Hyperspin Rocketlauncher\Hyperspin\Emulators\Demul Dreamcast Crazy Taxi 2\demul.exe -run=dc -image=D:\Dreamcast Games\Crazy Taxi 2 (Europe).gdi
Process, Close, demul.exe
ExitAPP
return

Run, D:\Hyperspin Rocketlauncher\Hyperspin\Emulators\Demul Dreamcast Crazy Taxi 2\demul.exe -run=dc -image="D:\Dreamcast Games\Crazy Taxi 2 (Europe).gdi"
Process, Close, demul.exe
ExitAPP
return

Also here Demul start up , but not the game . What am i doing wrong here .

Please help




DrakeTungsten

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 287
  • Last login:August 14, 2022, 06:36:45 pm
  • I effed with the wrong person!
    • No Quarter - a basic FE, WIP
Re: AHK or Bat for demul
« Reply #1 on: January 24, 2019, 02:03:29 pm »
Older versions of Demul require that the rom path and name be in a certain cfg or ini file. If you are using Windows XP, then I think you must be using such a version of Demul.

Why are you using a -rom argument in the batch files but a -image argument in the AHK file? I think only -image is correct. But again, that argument is meaningless with older versions (or at least insufficient)  Maybe the name of that option is different between versions, but -image works for me.


« Last Edit: January 24, 2019, 02:21:13 pm by DrakeTungsten »
No Quarter - a basic FE, WIP

processedmeat

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 253
  • Last login:July 24, 2025, 02:02:02 pm
  • Ikeakade Here I come!
Re: AHK or Bat for demul
« Reply #2 on: January 24, 2019, 02:26:13 pm »
When I was using Attract Mode to launch bat files this is what eventually worked for me:

@echo off
cd C:\YokeMame\Supermodel
Supermodel.exe swtrilgy.zip -fullscreen -res=1600,1200 -new3d -flip-stereo -sound-volume=100 -music-volume=100 -ppc-frequency=57

Not sure why, but I had to cd to the directory first and then run the executable.

Here's my mame version:

@echo off
cd C:\YokeMame\Mame
mame64.exe starwars

I think I was able to get Demul running the same way to run the star wars pod race game.

defre19766

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 29
  • Last login:March 16, 2020, 03:46:47 pm
  • I want to build my own arcade controls!
Re: AHK or Bat for demul
« Reply #3 on: January 25, 2019, 02:02:02 pm »
Run,D:\Hyperspin Rocketlauncher\Hyperspin\Emulators\Demul Dreamcast Ready to Rumble 2\demul.exe -run=dc -image="D:\Dreamcast Games\Ready 2 Rumble Boxing (Europe)\Ready 2 Rumble Boxing (Europe).gdi"
sleep, 1500
Send {Enter}
ExitScript:
ExitApp

that's the one guys . and works perfect .
make shortcut of this ahk , put it somewhere in a folder inside hyperspin folder named dreamcast shortcuts .
In don's hyperspin tools open create a new hyperspin list .
Go to open rom folder , build hyperspin xlm file from your dreamcast shortcut folder . In database rename " Sega Dreamcast " .

Open HyperHQ under wheel settings select dreamcast .
execution Normal
pc game enabled
extensions INK
winstat normal .

Et voila , works perfect for me .
I just copy the emu folder from demul for every game i want . Offcourse its al little more work , but for me it works perfect . I also don't need all the dreamcast games , just the games  that i like .

the send enter you see in the AHK file is for bypassing the error (pademul ) its a bug in demul . When you connect xbox controllers and logitech wheel at the same time . You just need to enter to bypass it and game works perfect .

As for the exit key , i use joytokey i config button 32 with Alt and F4 .
then under optons configure under butter 32 , you put in my case button 7 and 8 . That's select and start on my xbox 360 controller .


defre19766

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 29
  • Last login:March 16, 2020, 03:46:47 pm
  • I want to build my own arcade controls!
Re: AHK or Bat for demul
« Reply #4 on: January 25, 2019, 02:39:53 pm »
Oh i forgot to say . I use windows 10 and the latest demul build.
Works perfect.