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

Emulator_Send_Keys - Problem

Discuss GameBase, the Universal Emulator Frontend!

Moderator: Jimbo

Vicman
Cool Member
Cool Member
Location: Germany
Posts: 285
Joined: Mon May 12, 2008 7:51 pm

Emulator_Send_Keys - Problem

Wed Oct 05, 2011 9:31 am

Hi all,

i'm working on the Enterprise 64/128 TOSEC - Set.

For this, i need to rename the "single" gamefiles.

In Example :
The Basic-Game 4-es Jatek.BAS into 4-es Jatek (19xx)(-)(hu)(PD)[basic].BAS

but when i now start the Game automaticly with my Gamebase EP , the words inside the [ ] "square clip" (in german : eckige Klammer) , will be ignored.....
....and the [ ] itself, too.

So, the Name wich will be typed automaticly is :
4-es Jatek (19xx)(-)(hu)(PD).BAS

instead
4-es Jatek (19xx)(-)(hu)(PD)[basic].BAS

is there a way , to solve this problem ?

as i said before....i need to rename the files this way for TOSEC....
and many games (if not all) will have the [ ] in the complete gamefilename....

any idea ?

btw.
GEMUS-Command is :
Run_Emulator_Send_Keys([3]{Enter}[3]{F1}[-1][1]%gamepathfile%[-20]{Enter}[1]||50)
GB done: Philips VG 5000, Sord-M5, Acorn Atom, Enterprise v1.00
User avatar
.mad.
Honoured Member
Honoured Member
Location: Lancashire
Posts: 2256
Joined: Sun Jun 19, 2005 3:30 pm

Wed Oct 05, 2011 6:33 pm

Hi Vicman,

As you know the sendkeys uses [ ] for commands.
[seconds to wait].
so it could be that tripping it out.

maybe it's also conflicting in the emulator, by having too many letters in the BAS filename, or "[]" are not valid in the EXOS filename.

have you tried running a file manually (not via gamebase).
using "[GAME].BAS" as the name.
then you will know for sure.

also i remember too many brackets causing me problems in the past.
so i just renamed all the TOSEC files, removing everything after the first "SPACE (".

i think your only way round it (at the moment) is to have....
the ZIP filename with all the TOSEC ()[] bumf.
4-es Jatek (19xx)(-)(hu)(PD)[basic].ZIP

with the normal filename enclosed.
4-es Jatek.BAS

or put each game .BAS file on it's own EXOS .DSK file.
Vicman
Cool Member
Cool Member
Location: Germany
Posts: 285
Joined: Mon May 12, 2008 7:51 pm

Wed Oct 05, 2011 6:52 pm

Hi .mad. ,
.mad. wrote: As you know the sendkeys uses [ ] for commands.
Yep that's the problem (i think)
maybe it's also conflicting in the emulator, by having too many letters in the BAS filename, or "[]" are not valid in the EXOS filename.
No, the problem is not the Emulator !
All works fine, when typing the gamepathfilename manually.....
i think your only way round it (at the moment) is to have....
the ZIP filename with all the TOSEC ()[] bumf.
4-es Jatek (19xx)(-)(hu)(PD)[basic].ZIP
Yes, i know......
This way i use the "TOSEC" at the moment.....
But the Guy's from TOSEC want to have filenames with fullname & description :roll:

anyway, thanks for your ideas, mad !

I've also wrote to the TOSEC-Forum and post my Problem there...
Still waiting for an answer......

If they really want full name-description in the unzipped file,
i thought about using clrmame pro to make a DAT-File for the
Gamebase EP files....

Maybe Jimbo or K.C. have another solution
GB done: Philips VG 5000, Sord-M5, Acorn Atom, Enterprise v1.00
User avatar
.mad.
Honoured Member
Honoured Member
Location: Lancashire
Posts: 2256
Joined: Sun Jun 19, 2005 3:30 pm

Thu Oct 06, 2011 6:35 am

just thought of something. :idea:

try using this in the emulators.ini

UseShortFilenames=1

it might try to load it in the emulator as "GAME~.BAS"
Vicman
Cool Member
Cool Member
Location: Germany
Posts: 285
Joined: Mon May 12, 2008 7:51 pm

Thu Oct 06, 2011 1:11 pm

Great idea, mad 8)

I've just tested it on a few files, and it seems to work nice :D

Thank You again ! What would we do without you here on GB-Forum ? :wink:
GB done: Philips VG 5000, Sord-M5, Acorn Atom, Enterprise v1.00

Return to “The GameBase Frontend”

Who is online

Users browsing this forum: No registered users and 37 guests