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

Hi, :)

I have created a executable script for sega genesis with autohotkey for reassign some keys for kega fusion emulator.

I must insert commandâ?? s correct line in gameexâ??s options for configure kega fusion: launch before and launch after for execute the script.

How Can I do?

Thanks.

Posted

Hi, :)

I have created a executable script for sega genesis with autohotkey for reassign some keys for kega fusion emulator.

I must insert commandâ?? s correct line in gameexâ??s options for configure kega fusion: launch before and launch after for execute the script.

How Can I do?

Thanks.

It it's just an exe then simply just point to it in the launch before/after. If it requires parameters then a little tweaking may need to be done. Since I don't know the details of your script then it's hard to say.

Posted

Sometimes this is finicky though so you may need a batch file (specifically if one needs perameters and is in Also Launch)

Posted
It it's just an exe then simply just point to it in the launch before/after. If it requires parameters then a little tweaking may need to be done. Since I don't know the details of your script then it's hard to say.

The script must start before of emulatorâ??s launch, while the script must close when I go out of the emulator.

Which commands must I insert in Launch Before and Launch After?

Thanks.

Posted

The script must start before of emulatorâ??s launch, while the script must close when I go out of the emulator.

Which commands must I insert in Launch Before and Launch After?

Thanks.

Just point to the file. There is a button in those settings and when selected the open file dialog opens for you to select a file. So just need to select your scripts.

Posted
Just point to the file. There is a button in those settings and when selected the open file dialog opens for you to select a file. So just need to select your scripts.

I have pointed the file in the dialogueâ??s window launch before and launch after. When I start sega genesisâ??s game by gameex, gameexâ??s window disappears by screen. Then on the task bar (low to right ), the script, created with autohotkey, starts.

When the script exe is closed, the game starts with full screen with settings donâ??t modify.

When I push esc, I return in selection menu of the game in gameex and the script exe opens again.

This is my current configuration of kegafusion emulator:

[Emulator_1]

Enabled=True

STARTPAGENAME=Sega Mega Drive

TITLETEXT=Sega Mega Drive

StartPageLogo=Sega Mega Drive

ROMFilter=

RomPath=C:\EMU\Fusion364\MEGA DRIVE\Roms

SnapPath=C:\EMU\Fusion364\MEGA DRIVE\Videos

TitlePath=C:\EMU\Fusion364\MEGA DRIVE\Titles

BoxPath=C:\EMU\Fusion364\MEGA DRIVE\Box Art

CartPath=

ManualPath=

WorkingPath=C:\EMU\Fusion364

RemoveBrackets=True

ShowDesktop=True

Command=Fusion.exe -gen -fullscreen "[ROMPATH]\[ROMFILE]"

DATABASE=[Console] Sega Genesis

RomsInFolders=True

ControlPanelPath=

InstructionsPath=

TVAdPath=

MusicPath=

ImageNotFound=

MapKeys=True

WaitBeforeKeys=

SendKeys=

ReplaceDash=False

ReplaceUnder=True

Capitals=False

Debug=False

MAPFile=

AlsoLaunch=

LaunchBefore=C:\AUTOHOTKEY\megadrive.exe

LaunchAfter=C:\AUTOHOTKEY\megadrive.exe

configFile=[Mapping Off] Exit (Process Close)

ExcludedFiles=

CustomBackground=

PlayMusic=False

DontShowInfo=

PlaySelectionMusic=False

SelectionMusicFolder=

PCGame=False

UseDbName=

GamesIn7Zips=False

MergeSets=

PlayInScreenSaver=False

ShowMostPlayed=True

RandomMostPlayed=True

CDCheck=False

CDCheckFile=

CustomArtName1=

CustomArtPath1=

CustomArtName2=

CustomArtPath2=

CustomArtName3=

CustomArtPath3=

CustomArtName4=

CustomArtPath4=

CustomArtName5=

CustomArtPath5=

GameExtenderCustomArtPath=

GameExtenderConstants=

System=Sega Genesis

Category=Console

Emulator=Fusion

Version=3.64

Rating=8.9

DownloadUrl=http://www.gamesdbase.com/setupwizard/emulators/download/Fusion.7z

RequiredFiles=

Info=Fusion(formerly known as Kega II and Kega Fusion) is a Sega SG1000, SC3000, Master System, Game Gear, Genesis/Megadrive, SegaCD/MegaCD and 32X emulator

OLDatZip=

I have only reassign some keys in the script (see attached).

Then I have converted the script in exucutable with the program: Ahk2Exe script to exe converted.

How can I do? Please!

sgenesis.txt

Posted

What I don't get about this is that you have the exe set to launch before and after, so what's happening is it's gonna run that script twice instead of closing it when you leave the emu. Is there a reason for this?

Posted
What I don't get about this is that you have the exe set to launch before and after, so what's happening is it's gonna run that script twice instead of closing it when you leave the emu. Is there a reason for this?

The script must start before of emulatorâ??s launch, while the script must close when I go out of the emulator. How can I do? :(

In the forum I have found this post maybe useful, but I donâ??t know correct command-line to insert in launch before and launch after...

http://www.gameex.info/forums/index.php?showtopic=9481&st=0&p=70915&hl=autohotkey&fromsearch=1entry70915

For example, may the command-line resemble to these?

Launch Before:

start "" "E:\Emulation\Emulators\Nestopia v1.40\batch\NestopiaStartup.bat"

Launch After:

start "" "E:\Emulation\Emulators\Nestopia v1.40\batch\NestopiaExit.bat"

Thanks!

Posted

The script must start before of emulatorâ??s launch, while the script must close when I go out of the emulator. How can I do? :(

In the forum I have found this post maybe useful, but I donâ??t know correct command-line to insert in launch before and launch after...

http://www.gameex.info/forums/index.php?showtopic=9481&st=0&p=70915&hl=autohotkey&fromsearch=1entry70915

For example, may the command-line resemble to these?

Launch Before:

start "" "E:\Emulation\Emulators\Nestopia v1.40\batch\NestopiaStartup.bat"

Launch After:

start "" "E:\Emulation\Emulators\Nestopia v1.40\batch\NestopiaExit.bat"

Thanks!

I deleted your double post.

It really depends on what you're trying to accomplish and the details of your script. Maybe post your script.

Posted
I deleted your double post.

Thanks

It really depends on what you're trying to accomplish and the details of your script. Maybe post your script.

This is the script's contents.

Then I have converted the script in .exe with the program: Ahk2Exe script to exe converted.

sgenesis.txt

Posted

So it's just a simple remap. There's different ways to go about it but I'll just work with what you have.

Try the following please:

Launch Before:

start "" C:\AUTOHOTKEY\megadrive.exe

Launch After

taskkill /f /im megadrive.exe

Posted

I have made it like you have say. When I start a sega genesisâ??s game by gameex, gameexâ??s window disappears by screen. The script on the task bar (down to right ), created with autohotkey, starts.

When I close the script exe, the game starts with full screen with settings donâ??t modify.

When I push esc, I return in selection menu of the game in gameex and the script exe doesnâ??t open.

The command-line launch after seems correct , instead the command-line launch before starts the script exe, but the screen doesnâ??t visualize the game started.

How Can I modify the command-lines?

Thanks

Posted

I have made it like you have say. When I start a sega genesisâ??s game by gameex, gameexâ??s window disappears by screen. The script on the task bar (down to right ), created with autohotkey, starts.

When I close the script exe, the game starts with full screen with settings donâ??t modify.

When I push esc, I return in selection menu of the game in gameex and the script exe doesnâ??t open.

The command-line launch after seems correct , instead the command-line launch before starts the script exe, but the screen doesnâ??t visualize the game started.

How Can I modify the command-lines?

Thanks

Try my post above. I made a small change to the launch before. If this doesn't work then I suggest meeting me in the chat room for real-time support so I can figured out how your system functions.

Posted

I have made it like you have say. When I start a sega genesisâ??s game by gameex, gameexâ??s window disappears by screen. The script on the task bar (down to right ), created with autohotkey, starts.

When I close the script exe, the game starts with full screen with settings donâ??t modify.

When I push esc, I return in selection menu of the game in gameex and the script exe doesnâ??t open.

. . .

How Can I modify the command-lines?

Thanks

If the taskkill command doesn't work for you, you might want to give the tskill command a shot. Not sure what OS you're using but taskkill wasn't available in all versions of XP. I'm not sure about the various flavors of Vista, but I think it's available in all versions of Windows 7

taskkill vs. tskill

Good luck!

Posted
So it's just a simple remap. There's different ways to go about it but I'll just work with what you have.

Try the following please:

Launch Before:

start "" C:\AUTOHOTKEY\megadrive.exe

Launch After:

taskkill /f /im megadrive.exe

It works! Thank you very much! :D

Can I use these command-lines, if I create another script exe for reassign some keys for other emulators?

For example the command-lines for the emulator zsnes will be:

Before the launch:

start "" C: \ AutoHotKey \ snintendo.exe

After the launch:

taskkill / f / im snintendo.exe

Posted

It works! Thank you very much! :D

Can I use these command-lines, if I create another script exe for reassign some keys for other emulators?

For example the command-lines for the emulator zsnes will be:

Before the launch:

start "" C: \ AutoHotKey \ snintendo.exe

After the launch:

taskkill / f / im snintendo.exe

No problem. Marking as resolved. Yes this should work as long as your use the same methods for doing things. Enjoy! ;)

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