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

Run_Emulator_Send_Key - Question

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

Run_Emulator_Send_Key - Question

Sun Oct 31, 2010 10:40 pm

Hi all,

to type a command in a CPC-Emulator (wich is emulated in the Enterprise 128 Emulator) i need to specify the shift-key, wich i need to use......

Well, it's hard to explain for me in english......

the sending command should be :

run "gamename

so the Emulator_Send_Key - command is :
run {C34}%gamename_value% (or run +2%gamename_value%)

but this command will always use the left shift-key plus Number 2.....

But i need to use the right shift-Key plus Number 2 on my keyboard....

Is there a way to specify this in the Send_Key - Function ?

otherwise i have a big problem :(

Image


The lines in my Enterprise-Script :

;Run CPC-Game in EP Amstrad-Emulator
;-------------------------------------------------
ElseIf Key_emulator CONTAINS(cpc)
Add_CLP(-cfg %emupath%\config\ep128hun\EP_128k_Tape_FileIO_TASMON.cfg)
Run_Emulator_Send_Keys([3]{Enter}[2]{F1}[-1][1]%gamepathfile%{Enter}[-80][3]run +2%gamename_value%{Enter}||50)
GB done: Philips VG 5000, Sord-M5, Acorn Atom, Enterprise v1.00
Vicman
Cool Member
Cool Member
Location: Germany
Posts: 285
Joined: Mon May 12, 2008 7:51 pm

Mon Nov 01, 2010 11:20 am

o.k. ,
in the case, there is no a solution for this "shift-thing" :

I've found another (maybe better) way , to start the Amstrad-Games in the emulated emulator.... :wink:
GB done: Philips VG 5000, Sord-M5, Acorn Atom, Enterprise v1.00
User avatar
.mad.
Honoured Member
Honoured Member
Location: Lancashire
Posts: 2257
Joined: Sun Jun 19, 2005 3:30 pm

Mon Nov 01, 2010 2:17 pm

have you tried entering the quote like this. "
(not using the CHR CODE)

Run_Emulator_Send_Keys([1]run"filename.bas{enter}||50)

replace (") with whatever right shift 2 displays on your keyboard.
for instance (@) on USA keyboard.

if your running the emulator through DOSBOX, you could try changing the keyboard country settings also.
Vicman
Cool Member
Cool Member
Location: Germany
Posts: 285
Joined: Mon May 12, 2008 7:51 pm

Mon Nov 01, 2010 3:25 pm

Hi .mad. ,
yes, i've also tried " in the script....

But whatever......it seems the send-key-function will always use the left shift key.

But the left shift is without function in the "Amstrad Emulator" wich i use in the Enterprise Emulator...

So, an other solution could be, to contact the developer of the Amstrad Emulator....maybe he can give the left shift key a function.

otherwise i allready found a way, to start diff. games without typing " on the emu-screen :wink:
GB done: Philips VG 5000, Sord-M5, Acorn Atom, Enterprise v1.00
User avatar
OX
Ice Cool Member
Ice Cool Member
Posts: 638
Joined: Thu Jun 24, 2010 9:05 pm

Mon Nov 01, 2010 5:08 pm

How is "Gamebase Enterprise" coming along Vicman?
Vicman
Cool Member
Cool Member
Location: Germany
Posts: 285
Joined: Mon May 12, 2008 7:51 pm

Mon Nov 01, 2010 7:17 pm

OX wrote:How is "Gamebase Enterprise" coming along Vicman?
It comes slowly....but it'll come...hope this year :wink:
GB done: Philips VG 5000, Sord-M5, Acorn Atom, Enterprise v1.00
User avatar
.mad.
Honoured Member
Honoured Member
Location: Lancashire
Posts: 2257
Joined: Sun Jun 19, 2005 3:30 pm

Tue Nov 02, 2010 11:43 am

Hi VICMAN,

i think i know what might be stopping the left shift key.?

the key is probably mapped to something else in the config file.
should be easy to remap if it is.

Add_CLP(-cfg %emupath%\config\ep128hun\EP_128k_Tape_FileIO_TASMON.cfg
Vicman
Cool Member
Cool Member
Location: Germany
Posts: 285
Joined: Mon May 12, 2008 7:51 pm

Tue Nov 02, 2010 2:38 pm

Hi .mad. ,

but....no :roll:

the cfg is o.k.

The left shift key runs fine in the ep128 Emulator.

It only do not work, when running the amstrad-emulator inside of the Enterprise-Emulator....

but it doesn't matter anymore...i've found another solution.

anyway, thanks for your idea :wink:

here's the "normal" ep128 emulator : All is fine
Image

and here the amstrad-emulator inside the EP-Emulator :
Image
GB done: Philips VG 5000, Sord-M5, Acorn Atom, Enterprise v1.00
Vicman
Cool Member
Cool Member
Location: Germany
Posts: 285
Joined: Mon May 12, 2008 7:51 pm

Sun Nov 07, 2010 3:06 pm

Hi Jimbo,

for another game (zaxxon: Enterprise-conversion from spectrum)

I need (again) the right shift key in the send_key_function :?

otherwise the game don't starts automaticly.....

Any chance to support it :oops:


Image

Image
GB done: Philips VG 5000, Sord-M5, Acorn Atom, Enterprise v1.00
User avatar
OX
Ice Cool Member
Ice Cool Member
Posts: 638
Joined: Thu Jun 24, 2010 9:05 pm

Fri Dec 17, 2010 6:24 pm

Hi Vicman, did you find a solution to your right shift + 2 for " problem?

If it can't be done within the Run_Emulator_send_keys() command then you could try running some keyboard bot program for the required key combination with the Run_Program() command which will wait until execution is complete before it continues the Gemus script, I am sure there will be some program out there that can send any key combination to a given current process.

I hope this doesn't bring a halt to Gamebase Enterprise as I was looking forward to it very much.
Vicman
Cool Member
Cool Member
Location: Germany
Posts: 285
Joined: Mon May 12, 2008 7:51 pm

Sat Dec 18, 2010 5:34 am

Hi Ox,

the shift + 2 problem is still there, but it's only a secondary problem.
The GameBase works without this. Only a few Games (2 or 3) need this for autostarting.

I haven't looked for a keyboard bot program, yet.
But if there is one, i would need help to implement this into the GEMUS-Script.

The GB Enterprise is nearly finished....
But i allways have new ideas for some "Extras" , that i want to add to the GameBase...and this is very time consuming :roll:

I hope to upload the "Main GB" at the end of the Year.
New Extras will then come in a later update :wink:
GB done: Philips VG 5000, Sord-M5, Acorn Atom, Enterprise v1.00
User avatar
OX
Ice Cool Member
Ice Cool Member
Posts: 638
Joined: Thu Jun 24, 2010 9:05 pm

Fri Feb 04, 2011 2:45 pm

Hi Vicman, long time since we had a progress report on Gamebase Enterprise - Hows it going and when can we have it?

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

Sat Feb 05, 2011 12:37 am

Hi OX,

GB Enterprise was in Status "Betatesting".....
.mad. has written a well working GEMUS-Script for the GB EP.
First release will come this weekend 8)

btw.
the shift + 2 problem is solved (via script) :D
GB done: Philips VG 5000, Sord-M5, Acorn Atom, Enterprise v1.00
User avatar
OX
Ice Cool Member
Ice Cool Member
Posts: 638
Joined: Thu Jun 24, 2010 9:05 pm

Sat Feb 05, 2011 5:53 pm

Vicman wrote:Hi OX,

GB Enterprise was in Status "Betatesting".....
.mad. has written a well working GEMUS-Script for the GB EP.
First release will come this weekend 8)

btw.
the shift + 2 problem is solved (via script) :D
Excellent! Where will you be posting it?
Vicman
Cool Member
Cool Member
Location: Germany
Posts: 285
Joined: Mon May 12, 2008 7:51 pm

Sun Feb 06, 2011 3:09 am

OX wrote: Excellent! Where will you be posting it?
Look here :D
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 30 guests