Gamebase 64 Forum

RegisterRegister Log inLog in

Emulator_Send_Keys - Problem

 
Post new topic   Reply to topic    -= GB64 Forum =- Forum Index -> The GameBase Frontend
View previous topic :: View next topic  
Author Message
Vicman
Cool Member
Cool Member


Joined: 12 May 2008
Posts: 239
GB64-Points: 240
Location: Germany

PostPosted: Wed Oct 05, 2011 9:31 am    Post subject: Emulator_Send_Keys - Problem Reply with quote

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
Back to top
View user's profile Send private message
.mad.
Outstanding Member
Outstanding Member


Joined: 19 Jun 2005
Posts: 983
GB64-Points: 2763
Location: Lancashire, England

PostPosted: Wed Oct 05, 2011 6:33 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Vicman
Cool Member
Cool Member


Joined: 12 May 2008
Posts: 239
GB64-Points: 240
Location: Germany

PostPosted: Wed Oct 05, 2011 6:52 pm    Post subject: Reply with quote

Hi .mad. ,

.mad. wrote:

As you know the sendkeys uses [ ] for commands.

Yep that's the problem (i think)

Quote:
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.....

Quote:
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 icon_rolleyes.gif

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
Back to top
View user's profile Send private message
.mad.
Outstanding Member
Outstanding Member


Joined: 19 Jun 2005
Posts: 983
GB64-Points: 2763
Location: Lancashire, England

PostPosted: Thu Oct 06, 2011 6:35 am    Post subject: Reply with quote

just thought of something. icon_idea.gif

try using this in the emulators.ini

UseShortFilenames=1

it might try to load it in the emulator as "GAME~.BAS"
Back to top
View user's profile Send private message
Vicman
Cool Member
Cool Member


Joined: 12 May 2008
Posts: 239
GB64-Points: 240
Location: Germany

PostPosted: Thu Oct 06, 2011 1:11 pm    Post subject: Reply with quote

Great idea, mad icon_cool.gif

I've just tested it on a few files, and it seems to work nice icon_biggrin.gif

Thank You again ! What would we do without you here on GB-Forum ? icon_wink.gif
_________________
GB done: Philips VG 5000, Sord-M5, Acorn Atom, Enterprise v1.00
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    -= GB64 Forum =- Forum Index -> The GameBase Frontend All times are GMT
Page 1 of 1

 
Jump to:  
Cannot post new topics
Cannot reply to topics
Cannot edit your posts
Cannot delete your posts
Cannot vote in polls in this forum


Powered by phpBB © phpBB Group

The C64 Banner Exchange
The C64 Banner Exchange

gb64.com ©1997-2010 The GB64 Team