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 donating by either clicking this text or the Patreon link on the right.

Patreon

Recommended Posts

Posted

How to exit with multiple button ?

Example : UP + START1 + START2

??? :huh:

Posted

Hi Sbaby;

you can exit emulators with key combinations by using the 'Advanced Config' option in the emulator options page of the config app. Im not sure about exiting mame.

1. Go to 'C:\Program Files\GameEx\CONFIG\EMULATORS' and copy the 'Visual Pinball V2.ini' file.

And rename it to suit.

2. Change 'JoymappingEnabled=True' to false

3. Under the 'GAMEPADEXIT' options; add 'true' next to the buttons you want to include in the combination.

4. Save the file, & select it in the 'Advanced Config' option in the emulator options page of the config app.

P.S. If you desperately want to use "UP + START1 + START2 " try this, but im not sure if the 'ButtonP1 and ButtonP2' will work.

	Left=
Down=
Right=
Up=True
ButtonP1=True
ButtonP2=True
Button1=
Button2=
Button3=
Button4=
Button5=
Button6=

Hope this helps :)

Posted

That was my best shot :)

Im not quite sure what you are trying to do, can you explain in more detail?

Hopefully some other people will have ideas for you.

Posted

My cabinet has keyboard hack but It do not has the button for ESC,

I need a configuration with multiple keys pressed

Posted

Use a program called AutoHotkey and map a multiple key press to escape.

You write a script and compile it to an executable and then run it at the start of GameEx.

The script would look something like this:

a & b::Send {Escape}

Pressing buttons a and b will send escape. Check out some more examples here

Posted

With AutoIt it would be some thing like:

; Prevent duplicate applications from running
If WinExists(@ScriptName) Then Exit
AutoItWinSetTitle(@ScriptName)

; Bind Hot Keys
HotKeySet( 'ab' , 'Escape' )

; Send Key Function
Func Escape()
Send ( '{Escape}' )
EndFunc

; Main Loop
While 1
If ProcessExists ( 'GameEx.exe' ) = 0 Then Exit
Sleep ( 500 )
WEnd

Posted

1. First you need to download and install AutoHotKey.

2. Create a text file called MapExitKey.ahk and write the following into the file:

a & b::Send {Escape}

Replace "a" and "b" with the keys you want as the combination keys for exit. You may need to do some reading here.

3. Compile the script using AutoHotKey. You do this by right clicking your MapExitKey.ahk file in explorer and select "Compile Script". It should create an exe file called MapExitKey.exe.

4. Copy MapExitKey.exe to your GameEx directory.

5. Run the GameEx Configuration program, and go to the "Tweaks/Performance" section and locate the "Launch on Startup dont wait" option and in it type "MapExitKey.exe" without the quotes.

6. Run GameEx and it should have those two keys mapped as the Escape key.

Posted

I have executed your instructions and now ESC-function work but with all application except gameex , why ?

Posted

Nologic AutoIt configuration don't work to.

Error when launch AutoIt script...

Posted

Nologic, with your script altered, Gameex exit holding pressed "a"

I want to exit simultaneously holding pressed a & b :(

Posted

Well actually at this point I'll have to suggest sticking with your original idea of using AutoHotKey...since doing a few forum search's over at the AutoIt site, which only turned up a few answers, all of which are more involved that I was want to get. ;)

Posted
Try changing the following line in the script

HotKeySet( '{ab}' , 'Escape' )

autoerrormk8.png

:(

Posted
autoerrormk8.png

:(

Yeah, that was just a guess, but judging by Nologic's post it's not an easy thing to do multiple keypresses in AutoIt. He's the AutoIt expert around here. My guess is it can only process one key using HotKeySet() which would mean it would get quite complicated to do a multiple key press to exit. Try a AutoHotKey script instead, you might need to do some reading on the AutoHotKey website.

At a quick glance at the documentation on the AutoHotKey site you would need WinGetActiveTitle() to get the title of the currently active window and WinClose() to close the application. That way the script will close whatever application you are currently using.

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