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: J5 Viewer Question - Almost perfect  (Read 4198 times)

0 Members and 1 Guest are viewing this topic.

mccoy178

  • It's hard to work with a straight jacket on
  • Trade Count: (+9)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3127
  • Last login:September 03, 2021, 10:23:42 am
  • Go Bucks!
J5 Viewer Question - Almost perfect
« on: August 11, 2005, 11:44:45 am »
Hello,
I am attempting to use Howard's viewer, and I cannot get it to show up in mamewah.  Could someone please help me get this running?  I used the setup for the viewer, but I don't know if I have it right.  Could someone show what they have in there paths in the setup?  What do I put in the path to the configs to use the mame ones?  Help......me....please............

« Last Edit: August 30, 2005, 02:34:05 am by mccoy178 »

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: J5 Viewer Question
« Reply #1 on: August 11, 2005, 01:03:20 pm »
How far did you get?  Is it working at all on it's own (from the command line?).

Did you read the WIP, User Questions, and AHK scripts here?  Are you using Win2K or XP?

OOOPS - Here was http://forum.arcadecontrols.com/index.php?board=3.0
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.

mccoy178

  • It's hard to work with a straight jacket on
  • Trade Count: (+9)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3127
  • Last login:September 03, 2021, 10:23:42 am
  • Go Bucks!
Re: J5 Viewer Question
« Reply #2 on: August 11, 2005, 01:10:23 pm »
I'm using XP.  I will try command line tonight to see if it is even working.  Thanks!

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: J5 Viewer Question
« Reply #3 on: August 11, 2005, 01:22:25 pm »
XP should have less problems.  There are some fairly major tweaks to get it working under Win98.
« Last Edit: August 13, 2005, 10:56:05 am by Tiger-Heli »
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.

mccoy178

  • It's hard to work with a straight jacket on
  • Trade Count: (+9)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3127
  • Last login:September 03, 2021, 10:23:42 am
  • Go Bucks!
Re: J5 Viewer Question
« Reply #4 on: August 11, 2005, 07:52:53 pm »
The program does work from command prompt.  I'm gonna check my mame.ini in mamewah.  Just to clarify, if I set the exit and toggle button to the pause button, it should enter and exit on pressing "p" in mame? 

mccoy178

  • It's hard to work with a straight jacket on
  • Trade Count: (+9)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3127
  • Last login:September 03, 2021, 10:23:42 am
  • Go Bucks!
Re: J5 Viewer Question
« Reply #5 on: August 11, 2005, 08:14:53 pm »
My mame.ini is correct.  What should the command line part of my mame.ini app 1 say?

BTW: Howard, please help.  Go ahead and castrate me for being stupid, but please help.  Go ahead an belittle me for asking a question, but please help.
« Last Edit: August 17, 2005, 12:13:17 pm by mccoy178 »

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Yesterday at 10:27:17 pm
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: J5 Viewer Question
« Reply #6 on: August 12, 2005, 01:56:39 am »
Afaik mamewah does not yet support the ahk script to get it working

From within mame if that is what you are trying to do.  You'll have to check the thread tiger-heli linked you to to see how he got it working without support via batch files.

Right now I am actually busy with the next release, so I don't have time to troubleshoot.  Regardless questions about the viewer will be addressed over at the controls.dat forum.   


mccoy178

  • It's hard to work with a straight jacket on
  • Trade Count: (+9)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3127
  • Last login:September 03, 2021, 10:23:42 am
  • Go Bucks!
Re: J5 Viewer Question
« Reply #7 on: August 12, 2005, 10:31:07 am »
Thanks for the reply; a very nice one at that!  Okay, I'll attempt to figure this out.

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: J5 Viewer Question
« Reply #8 on: August 13, 2005, 10:54:58 am »
It would also help if Tiger-Heli didn't screw up and post the link to THIS forum.  Can't trust that guy to do anything right.

Link to the discussion on Johnny5, AHK, etc should have gone to here:
http://fe.donkeyfly.com/forum/index.php?board=12.0

My step by step set-up on setting up the batch files is here:
http://forum.arcadecontrols.com/index.php?topic=39449.0

Recent developments - You should be using the latest daily Beta for Johnny from
http://fe.donkeyfly.com/forum/index.php?topic=119.msg943#msg943 (download and change from .txt to .exe).

This version contains a glitch in the loffilters.txt reading section, but all (known) other bugs are fixed.  HC has fixed the above glitch but not released that version yet.

The above version also now automatically searches for the parent game if you enter a clone, so you no longer need to send the -cloneof parameter.

This means that you no longer need to pass %2 to the batch file and that you have to edit the AHK script to remove this callout.

If you need more help, post back at what point you are getting stuck.

UPDATE:  Also, I forgot to mention that it works best if MAME, MAMEwah, and your regular desktop are all running at the same resolution (800x600, 1024x768, etc.).  It looks excellent under these circumstances.  If one of these is set different, it may still work, but screen output may not be as pretty.

Also, sometimes you have to press P twice to get the viewer to display or to return and re-start MAME.  Not a big deal, but the final version of the AHK script should fix this, when it's released (if HC or I figure out a solution . . .)
« Last Edit: August 13, 2005, 11:00:42 am by Tiger-Heli »
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.

mccoy178

  • It's hard to work with a straight jacket on
  • Trade Count: (+9)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3127
  • Last login:September 03, 2021, 10:23:42 am
  • Go Bucks!
Re: J5 Viewer Question
« Reply #9 on: August 13, 2005, 01:29:13 pm »
Off to the cabinet I go!

mccoy178

  • It's hard to work with a straight jacket on
  • Trade Count: (+9)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3127
  • Last login:September 03, 2021, 10:23:42 am
  • Go Bucks!
Re: J5 Viewer Question
« Reply #10 on: August 13, 2005, 04:56:50 pm »
Well, I have everything working, except in mamewah.  I have the AHK and the bat files working.  I can use command prompt to fire up mame and J5 works great.  I will try to do some problem solving in mamewah.  Could someone please post there mame.ini from mamewah?  I have a mame.dat in my mame folder, but I don't know how that should look in mamewah's mame.ini.  Thanks for the help.  The light bulb is a little brighter now. :)

EDIT!!!!!!!!!

Okay, I changed my mame.ini in mamewah to execute mame.bat instead of mame.exe.  Now, J5 comes up.  When I hit "p" I get the black screen and have to C A D out of mamewah and project 1.  I will read back again, as I think Tiger mentioned this problem before.  Goodness, I can't think of a better way to spend a Saturday afternoon! j/k
« Last Edit: August 13, 2005, 05:10:49 pm by mccoy178 »

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: J5 Viewer Question
« Reply #11 on: August 13, 2005, 05:51:37 pm »
I think you or I may be getting confused on what you want to do.
Quote
Okay, I changed my mame.ini in mamewah to execute mame.bat instead of mame.exe.  Now, J5 comes up.
You might just have to wait a little bit on the black screen.

What I was setting up was to have MAME run from the frontend, and then have Johnny come up when I paused MAME.  It seemed to work fine under Win2k, although I only ever launched it from the command line, not from the FE itself.

If you are wanting the viewer to come up before MAME starts, and then also when you pause MAME, you would need to edit the batch files.

The problems I was having with Black Screens and having to C-A-D out of Project 1 occurred only under Win98 and from the command prompt also.  BTW, the fix was to run J5 from the command prompt with the -debug tag, and then right-click in the title bar of the batch file that Johnny5 was launching, select Properties and Close on Exit, and then X out of the window.

FWIW.
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.

mccoy178

  • It's hard to work with a straight jacket on
  • Trade Count: (+9)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3127
  • Last login:September 03, 2021, 10:23:42 am
  • Go Bucks!
Re: J5 Viewer Question
« Reply #12 on: August 13, 2005, 06:06:43 pm »
I love lamp!
« Last Edit: August 13, 2005, 07:42:00 pm by mccoy178 »

mccoy178

  • It's hard to work with a straight jacket on
  • Trade Count: (+9)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3127
  • Last login:September 03, 2021, 10:23:42 am
  • Go Bucks!
Re: J5 Viewer Question
« Reply #13 on: August 13, 2005, 07:15:01 pm »
The software works fine except that the game name is not getting passed onto J5.  All I am seeing is the generic J5 setup screen(not the layout).  What else do I need to do to get this done in mamewah.  Here is my mame.ini from mamewah.

### 000_mame.ini (mamewah v1.61) ###

emulator_title                            M.A.M.E.

### List Generation Settings ###
rom_path                                  C:\mame\roms
rom_extension                             zip
dat_file                                 
nms_file                                 
catver_ini_file                           
list_generation_method                    rom_folder_vs_listxml

### Execution Settings ###
emulator_executable                       C:\mame\mame.exe
commandline_format                        [name]{autodosbox}{nosafelaunch}
alt_commandline_format_1                  [name]{autodosbox}{nosafelaunch}
alt_commandline_format_2                  [name]{autodosbox}{nosafelaunch}
game_specific_config_path                 

### Artwork Locations ###
artwork_1_image_path                      C:\mame\Snap
artwork_2_image_path                      C:\mame\titles
artwork_3_image_path                      C:\mame\cabinets
artwork_4_image_path                      C:\mame\cpanel
artwork_5_image_path                     
artwork_6_image_path                     
artwork_7_image_path                     
artwork_8_image_path                     
artwork_9_image_path                     
artwork_10_image_path                     
movie_preview_path                       
movie_artwork_no                          1

### Screen-Saver Settings ###
enable_music_in_screensaver               1
saver_type                                launch_scr
movie_path                                C:\Mamewah 1.61b\ssmovie
movie_fullscreen                          1
quit_delay                                30
wrapper_executable                       
wrapper_commandline_format                [name]
scr_file                                  C:\Mamewah 1.61b\ssmovie\ms_pacman.scr

### External Application Settings ###
ipc_file_or_path                         
app_1_executable                          c:\j5viewer\j5.bat
app_1_commandline_format                 
app_2_executable                         
app_2_commandline_format                 
app_3_executable                         
app_3_commandline_format                 
auto_launch_apps                          1

### Additional Settings ###
music_path                               
lcd_display_file_path                     
lcd_fe_text                               

### Settings used by MAMEWAH ###
current_list                              1



P.S. I tried to put [name] in the app_1 format, with no results
« Last Edit: August 13, 2005, 11:03:54 pm by mccoy178 »

mccoy178

  • It's hard to work with a straight jacket on
  • Trade Count: (+9)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3127
  • Last login:September 03, 2021, 10:23:42 am
  • Go Bucks!
Re: J5 Viewer Question (Minwah, you're needed here!)
« Reply #14 on: August 14, 2005, 12:24:09 am »
In summary, when I run command prompt as such:
c:\j5viewer\j5 1942
c:\cd\
c:\cd mame
c:\mame\mame 1942

the system works perfectly except for the pause bug.  The controls are there and properly displayed with the proper res.

In mamewah, when "p" is pushed, the blank Johnny5.exe screen comes up.  What is wierd here is that the "p" delay is not present.  J5 shuts down and the game unpauses like it should.  I don't get it?  Seems as though J5 is not getting the game upon starting up.  It seems as though when J5 does get the game like above in command prompt, it causes the delay issue where mame stays paused.  At this point, I'm on standby untill the big boys can get there hands on this thread.

Minwah

  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 7662
  • Last login:January 18, 2019, 05:03:20 am
    • MAMEWAH
Re: J5 Viewer Question (Minwah, you're needed here!)
« Reply #15 on: August 14, 2005, 02:43:57 pm »
Hmmm.  Well I haven't used J5 for a looong time, and I've just had 9 days of solid drinking etc...so I'm not feeling too clever atm.

However, it looks to me like you need to set this:

app_1_commandline_format  [name]

This should send the romname after the app_1_executable.


mccoy178

  • It's hard to work with a straight jacket on
  • Trade Count: (+9)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3127
  • Last login:September 03, 2021, 10:23:42 am
  • Go Bucks!
Re: J5 Viewer Question (Minwah, you're needed here!)
« Reply #16 on: August 14, 2005, 03:27:34 pm »
I tried that you drunken fool! j/k ;D

Minwah

  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 7662
  • Last login:January 18, 2019, 05:03:20 am
    • MAMEWAH
Re: J5 Viewer Question (Minwah, you're needed here!)
« Reply #17 on: August 14, 2005, 04:12:43 pm »
I tried that you drunken fool! j/k ;D

Sorry, I missed that in your post.  You definately need it tho, so put it back in!

mccoy178

  • It's hard to work with a straight jacket on
  • Trade Count: (+9)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3127
  • Last login:September 03, 2021, 10:23:42 am
  • Go Bucks!
Re: J5 Viewer Question (Minwah, you're needed here!)
« Reply #18 on: August 14, 2005, 07:45:46 pm »
I reinstalled it, and still no dice.  There is also the pause issue, but that is already stated to be a bug.  Anybody know how to add a delay in the AHK script so "p" isn't received before mame is ready?

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Yesterday at 10:27:17 pm
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: J5 Viewer Question (Minwah, you're needed here!)
« Reply #19 on: August 15, 2005, 12:58:05 am »
let me try to shed some light... although minwah is going to have to fill in the gaps.

Tiger already told you this, but since you promptly ignored him I'll say it yet again.

You are trying to do two different things by adding cfg for one. 


Getting the viewer to work in mamewah requires the ability for mamewah to launch "johnny5.exe romname" at the press of the key of your choice.  The j5.bat has NOTHING to do with this. 

Now.... getting the viewer to work while in mame requires mamewah to be able to launch "j5.bat romname"  just before mame is launched and then launch  mame as normal.   The bat actually contains code to launch the ahk script.   The ahk script assumes that you use "esc" to exit out of mame.  When you press "esc" while in mame, the ahk script terminates itself.  Also and this is important.  While while in mame, mamewah should NOT be trying to handle the launch of j5. 


From your cfgs I see that you are trying to get it to do one thing.  And my guess is the wrong thing.  (To me that section looks like something mamewah launches once you stop moving through the list, but I dunno, minwah will have to help you. 

I hope this helps.  And minwah, I hope you do any modifications necessary to your fe to get this supported.  It's shaping up to be the viewer to end all viewers. ;)

At this point this is all the help I can offer, as I'm not familair enough with your fe to tell specifically what is wrong. 

mccoy178

  • It's hard to work with a straight jacket on
  • Trade Count: (+9)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3127
  • Last login:September 03, 2021, 10:23:42 am
  • Go Bucks!
Re: J5 Viewer Question (Minwah, you're needed here!)
« Reply #20 on: August 15, 2005, 01:13:37 am »
My understanding of mamewah is this, by having the app 1 set to run j5.bat, it is in effect telling j5.bat [name] to run while mame is firing up.  When I run a command prompt, I do the following:
c:\j5viewer\j5 1942
c:\cd\
c:\cd mame
c:\mame\mame 1942

and the program runs fine except for the pause issue.  Is that not the same thing that mamewah is doing?  Giving the go ahead for j5.bat to run with the rom name in front, then firing up mame with that rom?

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Yesterday at 10:27:17 pm
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: J5 Viewer Question (Minwah, you're needed here!)
« Reply #21 on: August 15, 2005, 01:27:11 am »
I have no clue.  Like I just told you above, I don't know anything about mamewah.  I have my own fe you know.  :)

mccoy178

  • It's hard to work with a straight jacket on
  • Trade Count: (+9)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3127
  • Last login:September 03, 2021, 10:23:42 am
  • Go Bucks!
Re: J5 Viewer Question (Minwah, you're needed here!)
« Reply #22 on: August 15, 2005, 01:32:18 am »
I don't really believe I promptly ignored Tiger since we talked for about an hour on Saturday about this, but thanks for the help.  I know you have your own front end.  Congrats.  I love how blunt you are.  Let me know when the pause bug gets fixed.  Untill then I'm gonna shelve it.  I'm sure its just a matter of time untill someone stumbles across this issue and resolves it.  I think it's a great program, too bad I'm not on the same wavelength.
Thanks,
mccoy178

Minwah

  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 7662
  • Last login:January 18, 2019, 05:03:20 am
    • MAMEWAH
Re: J5 Viewer Question (Minwah, you're needed here!)
« Reply #23 on: August 15, 2005, 05:49:20 am »
let me try to shed some light... although minwah is going to have to fill in the gaps.

Thanks Howard, makes it pretty simple for me to get...haven't messed around with anything like this for >6 months...

Quote
Getting the viewer to work in mamewah requires the ability for mamewah to launch "johnny5.exe romname" at the press of the key of your choice.  The j5.bat has NOTHING to do with this. 

This is how to achieve this:

app_1_executable                          c:\j5viewer\johnny5.exe
app_1_commandline_format              [name]

Quote
Now.... getting the viewer to work while in mame requires mamewah to be able to launch "j5.bat romname"  just before mame is launched and then launch  mame as normal.   The bat actually contains code to launch the ahk script.   The ahk script assumes that you use "esc" to exit out of mame.  When you press "esc" while in mame, the ahk script terminates itself.  Also and this is important.  While while in mame, mamewah should NOT be trying to handle the launch of j5. 

This is how to achieve this:

app_1_executable                          c:\j5viewer\j5.bat
app_1_commandline_format              [name]
auto_launch_apps                          1

Quote
I hope this helps.  And minwah, I hope you do any modifications necessary to your fe to get this supported.  It's shaping up to be the viewer to end all viewers. ;)

Well from what I can tell it should already work...but my latest beta has a better system of launching pre-emulator and post-emulator apps, although come to think of it I might need to check that batch files work...I think I may have done a check for an .exe file...

Sounds good tho, I really must find the time to check out your latest...

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: J5 Viewer Question (Minwah, you're needed here!)
« Reply #24 on: August 15, 2005, 06:54:24 am »
McCoy is trying to launch J5 when MAME is paused, not before starting the games.

I experimented with this over the weekend and see the same problems he is having.  I believe it is a script problem with the script getting confused between the MAMEwah window and the MAME window.

Will be posting more replies on the Controls.dat and MameWah forum.
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.

2600

  • Trade Count: (+7)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1630
  • Last login:June 05, 2017, 10:20:56 am
  • I want my own arcade controls!
Re: J5 Viewer Question (Minwah, you're needed here!)
« Reply #25 on: August 15, 2005, 04:23:42 pm »
Tiger-heli was nice enough to go to the respective forums, but I'm going to shoot two birds with one stone.  There are other ways to do this, but I thought this one was pretty clean.


ScenarioA: I believe this is what Tiger-Heli is doing.  Basically instead of executing mame.exe from mamewah you are executing mame.bat.  Change autodosbox to dosbox for commandline_format  under Execution Settings.


ScenarioB: I believe this is what mccoy178 is doifng. i.e. Launching an external app. Your app_1_commandline_format  should be:
app_1_commandline_format                  [name]{dosbox}{nosafelaunch}



Both Scenarios: Script not calling MAME correctly when used with mamewah.  I changed the script so that I get the exact title of MAME.  Basically, In the Ahk script put this line:

WinGetActiveTitle, Title

near the top, then substitue all instances of MAME for %Title%


I didn't work on the pause issue because I think Howard is working on it and it's his script so better to use his solution.

EDIT: Will crap.  Looks like I took too long to triple check my work and Tiger-Heli beat me to the punch.  Thought I tried his method and it didn't work, but I may be wrong.
« Last Edit: August 15, 2005, 04:29:34 pm by 2600 »

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: J5 Viewer Question (Minwah, you're needed here!)
« Reply #26 on: August 16, 2005, 07:01:02 am »
Tiger-heli was nice enough to go to the respective forums, but I'm going to shoot two birds with one stone.  There are other ways to do this, but I thought this one was pretty clean.
Unfortunately, we have too many discussions on the same topic on different forums now.  I hope Howard sees this.
Quote
ScenarioA: I believe this is what Tiger-Heli is doing.  Basically instead of executing mame.exe from mamewah you are executing mame.bat.  Change autodosbox to dosbox for commandline_format  under Execution Settings.
I didn't change this (wasn't familiar enough with MAMEwah to know I should), but I'll take your word for it . . .
Quote
ScenarioB: I believe this is what mccoy178 is doifng. i.e. Launching an external app. Your app_1_commandline_format  should be:
app_1_commandline_format                  [name]{dosbox}{nosafelaunch}
Basically, I think mccoy178 and I are doing the same thing in different ways - he is launching johnny5.ahk from MAMEwah prior to launching MAME, and I am launching a batch file which calls johnny5.ahk and then launches MAME, but I think it's the same in the end.
Quote
Both Scenarios: Script not calling MAME correctly when used with mamewah.  I changed the script so that I get the exact title of MAME.  Basically, In the Ahk script put this line:

WinGetActiveTitle, Title

near the top, then substitue all instances of MAME for %Title%
Sharp!!! I simply changed MAME to MAME: in the script.  Seemed to work, but your method is a lot more fail-safe.  I hope Howard will try both methods and incorporate the one that works best.
Quote
I didn't work on the pause issue because I think Howard is working on it and it's his script so better to use his solution.
Agreed.  BTW, I think there are two pause issues, but HC is working on both of them, so I'll let him work out the details.
Quote
EDIT: Will crap.  Looks like I took too long to triple check my work and Tiger-Heli beat me to the punch.  Thought I tried his method and it didn't work, but I may be wrong.
I did a quick test last night in MAMEwah.  The script is not getting confused between MAME and MAMEwah any longer when I pause and unpause MAME, but I still have to press Esc TWICE to get back to MAMEwah (first press launches MAME from the beginning of the game again).  Then agian, I MIGHT have only changed the first set of calls (the P key section) in the script.  I only ran one test and quit for the night.
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.

Minwah

  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 7662
  • Last login:January 18, 2019, 05:03:20 am
    • MAMEWAH
Re: J5 Viewer Question (Minwah, you're needed here!)
« Reply #27 on: August 16, 2005, 10:28:31 am »
I did a quick test last night in MAMEwah.  The script is not getting confused between MAME and MAMEwah any longer when I pause and unpause MAME, but I still have to press Esc TWICE to get back to MAMEwah (first press launches MAME from the beginning of the game again).  Then agian, I MIGHT have only changed the first set of calls (the P key section) in the script.  I only ran one test and quit for the night.

Now I've read this I'm pretty sure I know what the problem is.  If you are using mame.bat as your executable, then you need to stop using the {autodosbox} flag - try {nodosbox} instead.

FYI the {autodosbox} thing runs MAME twice; firstly with the -verifyroms switch (to determine whether or not to show the dos window for bad dumps etc.), and secondly to run the game.  This is why the game is being launched from the start for the second time.

Hope that helps, sorry I didn't spot it before.

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: J5 Viewer Question (Minwah, you're needed here!)
« Reply #28 on: August 16, 2005, 10:31:50 am »
Now I've read this I'm pretty sure I know what the problem is.  If you are using mame.bat as your executable, then you need to stop using the {autodosbox} flag - try {nodosbox} instead.

Hope that helps, sorry I didn't spot it before.
Awesome!!! Thanks Minwah!!!
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.

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Yesterday at 10:27:17 pm
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: J5 Viewer Question (Minwah, you're needed here!)
« Reply #29 on: August 16, 2005, 12:51:37 pm »
I just wanted to clarify something....

The reason I search for "MAME" and not "MAME:" in the script is incase someone uses a non official build (like mameplus, ect)  see not all builds of mame have the caption "MAME:" but almost all have mame somewhere in the title.  But if mamewah has the ability to send the widnow title then that'd probably be best for that fe as anyone using a non-official buld would be screwed. 

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: J5 Viewer Question (Minwah, you're needed here!)
« Reply #30 on: August 16, 2005, 12:56:27 pm »
But if mamewah has the ability to send the widnow title then that'd probably be best for that fe as anyone using a non-official buld would be screwed. 
I don't think 2600 meant that MAMEwah can send the window title, I think he meant that the AHK script can read it and assign it to a variable, and I think this is a good idea to add to the script, FWIW.
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.

Minwah

  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 7662
  • Last login:January 18, 2019, 05:03:20 am
    • MAMEWAH
Re: J5 Viewer Question (Minwah, you're needed here!)
« Reply #31 on: August 17, 2005, 10:02:44 am »
If anyone needs me to add an option to change the window caption to something not containing 'MAMEWAH' then let me know...

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Yesterday at 10:27:17 pm
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: J5 Viewer Question (Minwah, you're needed here!)
« Reply #32 on: August 17, 2005, 10:26:18 pm »
I think it might not be a bad idea.  A lot of resident emu-related apps look for "mame." On teh other hand I might just start looking for the class name, (which is also mame).     

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: J5 Viewer Question (Minwah, you're needed here!)
« Reply #33 on: August 18, 2005, 07:44:44 am »
I think it might not be a bad idea.  A lot of resident emu-related apps look for "mame." On teh other hand I might just start looking for the class name, (which is also mame).     
Howard,

I just tested 2600's suggestion under Win2K and it seems to work flawlessly.  I highly recommend implementing it.  Three reasons:

First - Will work with any build - If you had a custom build without MAME in the name - even with Zinc - This would work, and no conflicts with similarly named apps.

Second - Will work with any app - For example, if you launched Johnny5.ahk prior to loading your frontend, you could press P and the controls viewer would come up and P again and go back to the frontend (but you wouldn't be passing a game name to it).

Third - If you or someone were to make say a Daphne viewer, the same script could be used (I think) to launch it by changing the Johnny5 line to Daphne5 or whatever.

Basically, it makes the script say:  Launch the specified program and then return focus to the current window.

BTW, here is what the changes are:

else
   {
      WinGetActiveTitle, Title
      J5=Johnny5.exe %1%

And then in eight places you replace MAME with %Title%, as follows:

WinActivate,%Title%

I also deleted the two SetTitleMatchMode lines as they were no longer required, and I think this sped up script execution.

FWIW.
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.

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Yesterday at 10:27:17 pm
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: J5 Viewer Question (Minwah, you're needed here!)
« Reply #34 on: August 18, 2005, 01:34:53 pm »
Works for me.  Expect some sort of test script tonight.

mccoy178

  • It's hard to work with a straight jacket on
  • Trade Count: (+9)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3127
  • Last login:September 03, 2021, 10:23:42 am
  • Go Bucks!
Re: J5 Viewer Question (Minwah, you're needed here!)
« Reply #35 on: August 19, 2005, 09:59:37 pm »
On the other forum, Howard said a new testing release will come out tonight and hopefully a final tomorrow.  Good news! :)

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: J5 Viewer Question (Minwah, you're needed here!)
« Reply #36 on: August 20, 2005, 07:58:54 am »
Viewer is out on the other forum, haven't tested it yet.  Test script is not out yet, AFAIK.
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.

mccoy178

  • It's hard to work with a straight jacket on
  • Trade Count: (+9)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3127
  • Last login:September 03, 2021, 10:23:42 am
  • Go Bucks!
Re: J5 Viewer Question (Minwah, you're needed here!)
« Reply #37 on: August 27, 2005, 11:15:05 pm »
 ;)
« Last Edit: August 28, 2005, 01:10:50 am by mccoy178 »

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: J5 Viewer Question (Minwah, you're needed here!)
« Reply #38 on: August 29, 2005, 06:40:53 am »
Viewer got broken with 0.99u3 changes.  Howard is working on it.  Test Script is on hold until that gets sorted out.
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.

mccoy178

  • It's hard to work with a straight jacket on
  • Trade Count: (+9)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3127
  • Last login:September 03, 2021, 10:23:42 am
  • Go Bucks!
Re: J5 Viewer Question (Minwah, you're needed here!)
« Reply #39 on: August 30, 2005, 12:54:11 am »
For the most part, everything seems okay with the latest update except the pause issue still.  I'll see what I can find.