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 scripts for emulator with autohotkey for reassign some keys.

We have discussed about it in this post:

http://www.gameex.info/forums/index.php?showtopic=9922

In the script for daphne I have reassign only one key:

esc::f6

f6::esc

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

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

I have used the following command-lines up to now:

Before the launch:

start "" C: \ AutoHotKey \ snintendo.exe

After the launch:

taskkill / f / im snintendo.exe

They have worked for all emulators that I have used except for daphne. It doesnâ??t load exe script.

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

Thanks.

Posted

You could try and run the exe from a bat file and see if it works.

Posted

Maybe GameEx doesn't set the current directory for Daphne? Try moving the script to the Daphne's executable folder and launch it from there.

Posted

Try this:

::Launch your AHK Script
:START
@echo off
::Make sure it's in the right drive first!
C:
::Change the directory
cd "C:\AutoHotKey\"
::Launch the executable
start "" snintendo.exe
:END
::EoF

Here's the BAT file to add in if you don't know how to make one:

Let us know if this method works for you in LaunchBefore. ;)

Posted

Actually I just realised his AutoHotkey script only remaps a few keys so it shouldn't matter what the current directory is.

Adultery is most likely right that there is a problem using "start" to launch it. His batch file might help here.

Posted

I've had similar problems with emulators and batch files usually take care of the issues. :)

Posted
Try this:

::Launch your AHK Script:START@echo off::Make sure it's in the right drive first!C:::Change the directorycd "C:\AutoHotKey\"::Launch the executablestart "" snintendo.exe:END::EoFHere's the BAT file to add in if you don't know how to make one:

LaunchAHK.zip (280bytes)

Number of downloads: 1

Let us know if this method works for you in LaunchBefore.

Excuse me, but Iâ??m a novice about it and I donâ??t understand How must be compile .bat file.

The directory of the file created with autohotkey is: C:\AUTOHOTKEY\daphne.exe

Daphne emulatorâ??s directory is: C:\EMU\daphne

How must it be changed your .bat file?

Which command-line must I insert in gameexâ??s advance configuration launch before and launch after?

Must I leave the current ones?

Before the launch:

start "" C: \ AutoHotKey \ daphne.exe

After the launch:

taskkill / f / im daphne.exe

THANKS!

Posted

I'm at work now, but when I get home I can make these changes and upload.

Posted
::Launch your AHK Script
:START
@echo off
::Make sure it's in the right drive first!
C:
::Change the directory
cd "C:\AutoHotKey\"
::Launch the executable
start "" daphne.exe
:END
::EoF

Posted
::Launch your AHK Script

:START

@echo off

::Make sure it's in the right drive first!

C:

::Change the directorycd "C:\AutoHotKey\"

::Launch the executable

start "" daphne.exe

:END

::EoF

I have inserted following command-lines, but the .exe file created with autohotkey doesn't start.

Before the launch:

start "" C:\daphne.bat

After the launch:

taskkill /f /im daphne.exe

If I click twice on bat file with mouseâ??s left key, the executable file created with autohotkey starts.

The bat file works, maybe I should change the command-line before the launch... How must I change these command-lines?

Thanks.

Posted

All you do is point the line at the batch file like so:

LaunchBefore="C:\AutoHotKey\daphne.bat"

That's assuming of course that the batch file is in the "C:\AutoHotKey" directory.

As Tom would say, Cheers. :)

Posted
All you do is point the line at the batch file like so:

LaunchBefore="C:\AutoHotKey\daphne.bat"

That's assuming of course that the batch file is in the "C:\AutoHotKey" directory.

As Tom would say, Cheers.

Itâ??s works! :)

I have put the bat file in C: \ and I have inserted the following command-line:

LaunchBefore = C: \ AutoHotKey \ daphne.bat ( without â?? â?? )

Thanks!

Posted

You bet! Marking as [RESOLVED]!

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