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: If is useful, tell me (JoyClose.exe)  (Read 7415 times)

0 Members and 1 Guest are viewing this topic.

zobook

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 63
  • Last login:March 08, 2019, 12:34:43 pm
If is useful, tell me (JoyClose.exe)
« on: December 11, 2007, 06:46:55 am »
Imagine you have you cabinet/CP running and you use a GamePad hack (as i plan to do) and everithings runs fine...wait a minute, not EVERYTHING. Those console emulators you use dont let you configure a shortcut to close the application (as MAME does). You need a program that do that for you.

Using a Delphi class to manage external windows made by Mike Heydon on April 2004 i develop this small application. You pass two parameters to the program.

The first one is the file to execute
The second one is the document to load.

Example Of use

Code: [Select]
"D:\JoyClose\JoyClose.exe" "D:\VirtuaNES\VirtuaNES.exe" "D:\NES\Toki (U).zip"
This will execute the "VirtuaNes" emulator with the game "Toki (U)"

Then, when you press simultaneously the buttons 1 and 4 on the GamePad
the emulator (and the JoyClose itself) will terminate gracefully.

If you close the executed program, the JoyClose will terminate also.
If you close JoyClose, the executed program will terminate also.

Eventually i will add the posibility of configure the buttons you must press in order to quit the program. For now is hard coded in the application for testing purposes.

Currently JoyClose handle the first two parameters only. Any other parameters you
pass will be ignored.

Right now the program uses the obscene amount of 4 Mb of RAM (mainly because of the Delphi VCL). I'm not worried about that but im looking how can i lower the memory usage anyways. I could get rid of the Forms unit but the TDXInput from DelphiX apparently needs a TForm as a parent  ???
If someone with Delphi/DelphiX experience is reading this can give me a clue then i can make the application completely "formless" (im using Delphi 7 Personal)

I like to have feedback

I know there are others program out there that can do this, i'm just a fan of "home-made" sofware. I'm programing this for using on my "GamePad controlled" Front-End (now renamed) Chipi-Chipi, you can check it out here...

http://forum.arcadecontrols.com/index.php?topic=74073.0

Thanks

gonzo90017

  • Trade Count: (+5)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1034
  • Last login:June 23, 2019, 02:41:07 pm
  • I'm a llama!
Re: If is useful, tell me (JoyClose.exe)
« Reply #1 on: December 11, 2007, 12:38:41 pm »
It looks like a pretty good program.
Have you seen closemul http://lustar.free.fr/clusters/closemul/ 
It bascially does the same thing but also alot more. You can define what keys to use to exit
(keyboard only). But if you use a programs like xpadder or joytokey you can use it with a gamepad.

You place the program and the program's ini file in the same folder as the emulator, then you modify
the ini file and tell it what program to launch
Program=Handy.exe
Then you point your frontend to closemul. With mamewah you use it like this:
C:\juegos\lynx\closemul.exe "[rompath]\[name].[romext]"{dosbox}{safelaunch}
When you want to exit you just press the button(s) you defined to exit. It could be one or two buttons.

zobook

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 63
  • Last login:March 08, 2019, 12:34:43 pm
Re: If is useful, tell me (JoyClose.exe)
« Reply #2 on: December 11, 2007, 03:31:50 pm »
i have (but dont have use yet) closemul. I download xpadder also.

I remember using joy2key for a dos emulator with my usb gamepad. a friend of mine used it to control a frontend that i did and was keyboard-only.

But i want a little program to simply close a program with a gamepad, that and no more. And if i can make it miself the better, just for programming-fun   ;D

Quote
It looks like a pretty good program.

R'yu talking about the JoyClose or the Front-End?


gonzo90017

  • Trade Count: (+5)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1034
  • Last login:June 23, 2019, 02:41:07 pm
  • I'm a llama!
Re: If is useful, tell me (JoyClose.exe)
« Reply #3 on: December 11, 2007, 10:43:08 pm »
I haven't tried the frontend. I will have a look at it when I have a chance.

Necro

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1031
  • Last login:November 29, 2022, 08:22:22 pm
  • Building a 'Classic' MAME Cab
Re: If is useful, tell me (JoyClose.exe)
« Reply #4 on: December 12, 2007, 10:50:26 pm »
It seems the Closemul.zip on that page is corrupt.  Anyway someone could send me a copy?

gonzo90017

  • Trade Count: (+5)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1034
  • Last login:June 23, 2019, 02:41:07 pm
  • I'm a llama!
Re: If is useful, tell me (JoyClose.exe)
« Reply #5 on: December 12, 2007, 11:20:52 pm »

zobook

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 63
  • Last login:March 08, 2019, 12:34:43 pm
Re: If is useful, tell me (JoyClose.exe)
« Reply #6 on: December 13, 2007, 10:30:44 am »
Have you seen closemul
It bascially does the same thing but also alot more. You can define what keys to use to exit
(keyboard only). But if you use a programs like xpadder or joytokey you can use it with a gamepad.

So, instead my own, i can use a program that closes my emulator with a keyboard combination generated by other program that transform gamepad button press onto keyboard key press?

:dizzy: :o  :dizzy: :o  :dizzy:

My solution just looks better and better to me ;D

gonzo90017

  • Trade Count: (+5)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1034
  • Last login:June 23, 2019, 02:41:07 pm
  • I'm a llama!
Re: If is useful, tell me (JoyClose.exe)
« Reply #7 on: December 13, 2007, 12:35:32 pm »
That's only true if you're using a gamepad like I am. If you're using a keyboard or keyboard encoder there's no need for an additional program like xpadder or joytokey.

Tiger-Heli

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5447
  • Last login:January 03, 2018, 02:19:23 pm
  • Ron Howard? . . . er, I mean . . . Run, Coward!!!
    • Tiger-Heli
Re: If is useful, tell me (JoyClose.exe)
« Reply #8 on: December 13, 2007, 12:48:55 pm »
It seems the Closemul.zip on that page is corrupt.  Anyway someone could send me a copy?
Closemul.zip on that page is fine, but you need WinRar to open it (perhaps it is a mis-named .rar file?)
It's not what you take when you leave this world behind you, it's what you leave behind you when you go. - R. Travis.
When all is said and done, generally much more is SAID than DONE.

zobook

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 63
  • Last login:March 08, 2019, 12:34:43 pm
Re: If is useful, tell me (JoyClose.exe)
« Reply #9 on: December 13, 2007, 03:10:40 pm »
That's only true if you're using a gamepad like I am

Well, that's the case, i will make my CP hacking a gamepad. So, my program is about closing emulators with gamepad buttons.

gonzo90017

  • Trade Count: (+5)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1034
  • Last login:June 23, 2019, 02:41:07 pm
  • I'm a llama!
Re: If is useful, tell me (JoyClose.exe)
« Reply #10 on: December 13, 2007, 03:16:05 pm »
Cool. Keep us posted.

Necro

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1031
  • Last login:November 29, 2022, 08:22:22 pm
  • Building a 'Classic' MAME Cab
Re: If is useful, tell me (JoyClose.exe)
« Reply #11 on: December 13, 2007, 08:08:56 pm »
It seems the Closemul.zip on that page is corrupt.  Anyway someone could send me a copy?
Closemul.zip on that page is fine, but you need WinRar to open it (perhaps it is a mis-named .rar file?)

Hrm, tried that also...still corrupt. Even tried a diff. pc.  Very weird.  Thanks for the download link Gonzo, it's much appreciated.

And zobook, I definitely see a need for your program - for when Im using a joypad for a PSX emulator, etc.  Good stuff!