Welcome to the Gamebase 64 forums.                 An attempt to document ALL Commodore 64 gameware before it's too late!

Using JoyTokey

Discuss GameBase, the Universal Emulator Frontend!

Moderator: Jimbo

millansoft
Keen Member
Keen Member
Posts: 60
Joined: Tue Jun 26, 2012 5:47 am

Using JoyTokey

Tue Jul 14, 2015 1:41 am

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!
User avatar
.mad.
Highly Commended Member
Highly Commended Member
Location: Lancashire
Posts: 1600
Joined: Sun Jun 19, 2005 3:30 pm

Tue Jul 14, 2015 10:21 am

Acorn Atom Gamebase uses it like this...

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()
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

Return to “The GameBase Frontend”

Who is online

Users browsing this forum: No registered users and 0 guests