Hello,
I was trying to use JoyToKey in the following way, execute a game from GameBase, the script open JoyToKey, open emulator, close JoyToKey (when exiting the emulator was my idea).
Run_Program(%dbpath%\JoyToKey\JoyToKey.exe||||NOWAIT)
Add_CLP(%gamepathfile%)
Run_Emulator()
Kill_Process(%dbpath%\JoyToKey\JoyToKey.exe)
But it kills the process just after it executes the emulator. Is there any way to keep it waiting the emulator to close, before kill the joytokey process?
Thanks!
Welcome to the Gamebase 64 forums. An attempt to document ALL Commodore 64 gameware before it's too late!
Using JoyTokey
Moderator: Jimbo
- .mad.
- Honoured Member
- Location: Lancashire
Post
Acorn Atom Gamebase uses it like this...
Kill Joy2Key process before running any game.
If JSProfile exists in GEMUS run Joy2Key, if not just run emulator.
Now every time you select a new game it will quit Joy2key if it's running.
;jsprofile = joy2key config file (put in same dir as joytokey.exe)
;GEMUS
;jsprofile=Profile 1
Code: Select all
Kill_Process(JoyToKey.exe)
Wait(1000)
If %JSProfile_value% CONTAINS(*)
Run_Program(%dbpath%\Joy2Key\JoyToKey.exe||"%jsprofile_value%"||nowait)
End If
Add_CLP(%gamepathfile%)
Run_Emulator()
If JSProfile exists in GEMUS run Joy2Key, if not just run emulator.
Now every time you select a new game it will quit Joy2key if it's running.
;jsprofile = joy2key config file (put in same dir as joytokey.exe)
;GEMUS
;jsprofile=Profile 1
Return to “The GameBase Frontend”
Who is online
Users browsing this forum: No registered users and 12 guests