Jump to content

All my products and services are free. All my costs are met by donations I receive from my users. If you enjoy using any of my products, please donate to support me. My bare hosting costs are currently not met so please consider becoming a contibuting member by either clicking this text or the Patreon link on the right.

Patreon

Recommended Posts

Posted

I've just started setting up some regular PC games and ran into a snag. The game I'm playing uses ESC to exit the game back to a main menu and Q to actually quit the game. This is fine using .lnk files since Map Keys still works and ESC will exit the game. Problem is, I'm using batch files to launch which makes Map Keys not work.

I tried making an Advanced [Emulator] Config with KEYBOARD MAP set to swap ESC and Q key but that didn't work (see below). VK 27 is ESC and 81 is Q.

[KEYBOARDREMAP]

Enabled=True

Remap_1_From_VK=27

Remap_1_To_VK=81

I thought this would remap the ESC key to the Q key. No dice. Haven't worked much with the Advanced [Emulator] Config's, any help greatly appreciated!

Posted

No one eh? I thought this would be a common one as it must happen all the time with PC based games that use the ESC key for other things in game. Alright back to searching...

Posted

I guess I missed this one...

Here is a program.. Launch this in the LAUNCH before section...

In the launch after tskill.exe esc2q.exe or what ever you use.. I like pskill

Have fun

Also Id launch the game directly instead of using the bat or use a shortcut to the EXE and use the *.lnk as your rom filter.

So got anything harder?

ESC2Q.zip

Posted

Haha :lol: well it isn't quite THAT easy. Shortly after I had posted above I DL'd and setup AHK to do exactly this but it still doesn't work. After the program quits it doesn't return to GameEx. It dumps me back on the desktop with GameEx minimized and unable to be maximized (see screenshot) and I end up having to kill it with the task manager.

post-3514-1213486946_thumb.png

Here's my Config

[Emulator_15]
Enabled=True
STARTPAGENAME=PC Games
TITLETEXT=PC Games
StartPageLogo=
ROMFilter=*.bat
RomPath=C:\Roms\PC
SnapPath=
TitlePath=
BoxPath=
CartPath=
ManualPath=
ControlPanelPath=
InstructionsPath=
WorkingPath=C:\Roms\PC
MapKeys=True
WaitBeforeKeys=
SendKeys=
ReplaceDash=True
ReplaceUnder=True
Capitals=True
RemoveBrackets=True
ShowDesktop=False
Debug=False
MAPFile=
AlsoLaunch=
Command=""[ROMPath]\[RomFile]""
OLDatZip=
LaunchBefore=
LaunchAfter=C:\batch\maelstrom_exit.bat
configFile=Close Maelstrom
ExcludedFiles=
CustomBackground=
PlayMusic=
DontShowInfo=
PlaySelectionMusic=
SelectionMusicFolder=
PCGame=False
DATABASE=
GamesIn7Zips=
PlayInScreenSaver=
ShowMostPlayed=
RandomMostPlayed=
CDCheck=
CDCheckFile=
[GENERAL]
DumbyValue=

Also a link to the game below if you want to give it a go. It's a small/free DL. Asteroids type game that originated on the Mac called Maelstrom that I always thought was fun, especially with the dif sound sets.

http://www.devolution.com/~slouken/Maelstrom/

I can't use .lnk's since I'm trying to run xpadder and nomousy via batch:

@echo off

start /d "C:\Program Files\Xpadder" Xpadder.exe dcp2 dcp1 p1 p2

start /d "C:\Program Files\nomousy1.5" nomousy.exe /h

start /d "C:\roms\PC\maelstrom-3.0.6" maelstrom.exe -fullscreen

Just noticed on my last try that the nomousy portion of my batch file doesn't seem to be working. I see a cursor in the game and then when I quit the game and am dumped on the desktop the cursor is gone. Like it's running after the game is quit.

I'm wondering why the Keymapping in the Advanced Emulator Config doesn't work anyway? Seems like I shouldn't have to use AHK to map ESC to Q. I thought that was what the Adv Emu Config is for?

Thanks for the help.

Posted

I thought you had a challenge for me.

All the work is done download this file

EDIT: BTW Nomousy does NOT hide the cursor in this game... This game uses its own curosr. not the wondows one.. Thats whay when you exit back to windows its gone. My loader still launches nomousy but when the game exits it brings back your cursor.

config.zip

Posted
Shaun,

Did it work for ya buddy?

Still no luck but I'm not sure how you meant this to be incorporated. I first tried filtering by .exe and just running the launcher with no luck. Then I kept my filter by .bat so my batch launches the game with your launcher targeted under Launch Also with no luck. I get the error below.

post-3514-1213543909_thumb.png

Can you send me the AHK file so I can see what's going on under the hood?

Thanks man.

Posted
Still no luck but I'm not sure how you meant this to be incorporated. I first tried filtering by .exe and just running the launcher with no luck. Then I kept my filter by .bat so my batch launches the game with your launcher targeted under Launch Also with no luck. I get the error below.

post-3514-1213543909_thumb.png

Can you send me the AHK file so I can see what's going on under the hood?

Thanks man.

See PM

Posted

In the attached Config.zip Ive included 2 things...

1 the gameex config that needs to be imported

2 the program+loader+supplmental files needed

It sounds like you didnt get it all.

EDIT: I did include the source.

I saw your screeny... You defently didnt grab the above config.zip

Posted

Excellent!! You da man.

Sorry, I thought the second file was just a dupe of the first and missed it. I tweaked the AHK to include my full paths+launch/kill xpadder so I wouldn't have to move stuff around (below).

Run, C:\Program Files\nomousy1.5\nomousy.exe /h
Run, C:\roms\PC\maelstrom-3.0.6\maelstrom.exe -fullscreen
Run, C:\Program Files\Xpadder\Xpadder.exe dcp2 dcp1 p1 p2
Run, remap.exe
Process, WaitClose, Maelstrom.exe
Run, C:\Program Files\nomousy1.5\nomousy.exe
Run, PSkill.exe remap.exe
Run, PSkill.exe xpadder.exe
ExitApp

I also created a shortcut to the launcher and filtered by .lnk since I'll eventually want all my PC games under this Emu Config but it works perfectly.

Thanks again for your help Brian.

Guest
This topic is now closed to further replies.
×
×
  • Create New...