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: Mamewah - Winvice - Zip - And the Wrapper.  (Read 2699 times)

0 Members and 1 Guest are viewing this topic.

DreamWeb

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 375
  • Last login:July 25, 2020, 08:36:59 pm
  • I want to build my own arcade controls!
Mamewah - Winvice - Zip - And the Wrapper.
« on: January 22, 2006, 06:46:35 pm »
Hi guys.  I downloaded the entire gb64ren Commodore 64 collection.

The problem is.. is that if I unzip the files the naming scheme makes it very difficult to determine what game is what.  However, the names of the zips are great.

So, I started investigating whether or not Winvice had ZIP support.  It does... but you have to download and throw an unzip.exe into the main directory.

Great!  So, I set everything up in Mamewah... BUT..  after winvice loads, it minimizes itself.  It works fine..  but it's minimized.  If you ALT-TAB it back, everything is good.

this is fine if you're using a keyboard... but, I'm not.

I have a feeling that the addition of the unzip.exe step causes the wrapper to do something funky... resulting in winvice becoming minimized.

Has anyone else had any experience with this?  Any luck?  I've tried all combinations of dosbox/safelaunch.  No luck.

d.

Minwah

  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 7662
  • Last login:January 18, 2019, 05:03:20 am
    • MAMEWAH
Re: Mamewah - Winvice - Zip - And the Wrapper.
« Reply #1 on: January 24, 2006, 06:13:38 am »
I have a feeling that the addition of the unzip.exe step causes the wrapper to do something funky... resulting in winvice becoming minimized.

Or unzip might just be stealing focus, then closing leaving nothing with focus.  My only advice is to unzip your games, they're tiny anyway...incidentally this is partly what got me to finally add support for multiple rom extensions (see the beta at the Mamewah board) - I know there are several C64 extensions!

LJHalfbreed

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 58
  • Last login:April 13, 2006, 09:10:21 am
  • I'm a mammal!
Re: Mamewah - Winvice - Zip - And the Wrapper.
« Reply #2 on: January 24, 2006, 10:58:13 am »
A friend of mine had this problem, and we made an AutoHotkey script to run as part of the 'pre-emulator' program.

Autohotkey is nifty, because it lets you make small scripts that you can actually run as exe files.

What he ended up doing was making a script that, when mamewah opened a game, first ran this program, then ran the game. It waited for about half a second, then put focus on winvice (instead of on the unzip.exe). Then, he made another script that 'killed' the first one for when you closed the emulator in mamewah (to prevent 40000000 copies of the script running on your computer).


I'm trying to remember how it went, but I think the ahk script was something like:

sleep, 1000
Controlfocus, Winvice (or whatever the title of the window/process is)


and the killscript was:

Process, close, WinviceHelper.exe


Check out autohotkey if you can... it's free, and can do just about anything from joystick-to-keyboard mapping to advanced things like keyboard/mouse macros. It's awesome for cab software, and a great compliment to frontends since not all emulators allow for easy configuring of controls/functions.

http://www.autohotkey.com/

Fiddle around with it a bit, and use my advice, and I'm sure you can create two tiny scripts that get the effect you want in no time.




DreamWeb

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 375
  • Last login:July 25, 2020, 08:36:59 pm
  • I want to build my own arcade controls!
Re: Mamewah - Winvice - Zip - And the Wrapper.
« Reply #3 on: January 24, 2006, 08:45:17 pm »
Thanks guys.

Minwah... I initially had it setup with unzipped files... but... all of the games have 8 character filenames..  Which makes figuring out the title of a certain game difficult.  The zips, however, have the full name of the game.

There are over 17 thousand games...  so, renaming them isn't an option.

Definitely losing focus.. yes.

I'll check out autohotkey!  Thanks

David

LJHalfbreed

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 58
  • Last login:April 13, 2006, 09:10:21 am
  • I'm a mammal!
Re: Mamewah - Winvice - Zip - And the Wrapper.
« Reply #4 on: January 24, 2006, 10:05:48 pm »
whoops... it was 'winactivate' (had to open up ahk earlier and figure it out....)

So... you'll make a small script that has the sleep command (wait x milliseconds) and the second command would be Winactivate, Winvice   (or whatever the proggy's window name is)