Gamebase 64 Forum

RegisterRegister Log inLog in

Run_Emulator_Send_Key - Question

 
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: Sun Oct 31, 2010 10:40 pm    Post subject: Run_Emulator_Send_Key - Question Reply with quote

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 icon_sad.gif




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
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: Mon Nov 01, 2010 11:20 am    Post subject: Reply with quote

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.... 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
.mad.
Outstanding Member
Outstanding Member


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

PostPosted: Mon Nov 01, 2010 2:17 pm    Post subject: Reply with quote

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.
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: Mon Nov 01, 2010 3:25 pm    Post subject: Reply with quote

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 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
OX
Cool Member
Cool Member


Joined: 24 Jun 2010
Posts: 320
GB64-Points: 320


PostPosted: Mon Nov 01, 2010 5:08 pm    Post subject: Reply with quote

How is "Gamebase Enterprise" coming along Vicman?
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: Mon Nov 01, 2010 7:17 pm    Post subject: Reply with quote

OX wrote:
How is "Gamebase Enterprise" coming along Vicman?

It comes slowly....but it'll come...hope this year 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
.mad.
Outstanding Member
Outstanding Member


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

PostPosted: Tue Nov 02, 2010 11:43 am    Post subject: Reply with quote

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
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: Tue Nov 02, 2010 2:38 pm    Post subject: Reply with quote

Hi .mad. ,

but....no icon_rolleyes.gif

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 icon_wink.gif

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


and here the amstrad-emulator inside the EP-Emulator :

_________________
GB done: Philips VG 5000, Sord-M5, Acorn Atom, Enterprise v1.00
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: Sun Nov 07, 2010 3:06 pm    Post subject: Reply with quote

Hi Jimbo,

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

I need (again) the right shift key in the send_key_function icon_confused.gif

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

Any chance to support it icon_redface.gif





_________________
GB done: Philips VG 5000, Sord-M5, Acorn Atom, Enterprise v1.00
Back to top
View user's profile Send private message
OX
Cool Member
Cool Member


Joined: 24 Jun 2010
Posts: 320
GB64-Points: 320


PostPosted: Fri Dec 17, 2010 6:24 pm    Post subject: Reply with quote

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.
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: Sat Dec 18, 2010 5:34 am    Post subject: Reply with quote

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

I hope to upload the "Main GB" at the end of the Year.
New Extras will then come in a later update 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
OX
Cool Member
Cool Member


Joined: 24 Jun 2010
Posts: 320
GB64-Points: 320


PostPosted: Fri Feb 04, 2011 2:45 pm    Post subject: Reply with quote

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 icon_biggrin.gif
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: Sat Feb 05, 2011 12:37 am    Post subject: Reply with quote

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 icon_cool.gif

btw.
the shift + 2 problem is solved (via script) icon_biggrin.gif
_________________
GB done: Philips VG 5000, Sord-M5, Acorn Atom, Enterprise v1.00
Back to top
View user's profile Send private message
OX
Cool Member
Cool Member


Joined: 24 Jun 2010
Posts: 320
GB64-Points: 320


PostPosted: Sat Feb 05, 2011 5:53 pm    Post subject: Reply with quote

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 icon_cool.gif

btw.
the shift + 2 problem is solved (via script) icon_biggrin.gif


Excellent! Where will you be posting it?
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: Sun Feb 06, 2011 3:09 am    Post subject: Reply with quote

OX wrote:

Excellent! Where will you be posting it?

Look here icon_biggrin.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