Jump to content
SamC

Acorn BBC XML

Recommended Posts

Acorn BBC.ahk for HLHQ

MEmu = Acorn BBC
MEmuV = 20/11/13
MURL = http://www.hyperspin-fe.com/
MAuthor = SamC (butchered from a djvj's Kat5200.ahk)
MVersion = 1.0
MCRC = 
iCRC = 
MID = 
MSystem = "Acorn BBC"
;----------------------------------------------------------------------------
; Notes:
;----------------------------------------------------------------------------
StartModule()
FadeInStart()

Run(executable . " """ . romPath . "\" . romName . romExtension . """", emuPath)

FadeOutExit()
ExitModule()

CloseProcess:
FadeOutStart()
WinClose("Acorn BBC ahk_class phoenix_window")
Return

Share this post


Link to post
Share on other sites

Thank you very much for the XML and the. Ahk. Now a question, what is the name of the emulator?

Share this post


Link to post
Share on other sites
MAuthor = SamC (butchered from a djvj's Kat5200.ahk)

Read that and laughed my ass off. Nice one bro. And thanks for the XML as well.

Share this post


Link to post
Share on other sites

Has anyone figured out an escape sequence for BeebEm yet?

I was looking at the keymap file (\UserData\DefaultUser.kmap) and tried changing line 22 from:

-2 -2 0 -2 -2 1

to:

-9 -9 -9 -9 -9 -9 ***[Pause-Break]***

But all it seems to do is to disable the key in emulation.

N.B.

I use Pause/Break as my exit key.

EDIT:

\UserData\DefaultUser.kmap NOT \UserData\Default.kmap as shown in \UserData\Preferences.cfg, line 91

Edited by SamC
Additional info

Share this post


Link to post
Share on other sites

here is mine

workin pretty good

works with .uef and .ssd files

removed the .img part cuz all of them were getting an error WITHIN the emulator

if this doesnt work please let me know and ill try to fix it

MEmu = BeebEm
MEmuV =  
MURL = 
MAuthor = craiganderson
MVersion = 1.0
MCRC = 
iCRC =
MID = 
MSystem = "Acorn BBC Micro"
;----------------------------------------------------------------------------
; Notes:
;The vast majority of images within the archive contain a BASIC loader file, so the following should suffice:
;
;*TAPE
;PAGE=&E00
;CHAIN ""
;
;However, if the first file in an image is machine code (indicated by a _RUN in the long filename e.g. Islandia_RUN_B.uef) then you will need to ;enter this instead:
;
;*TAPE
;*RUN
; 
;----------------------------------------------------------------------------

StartModule()
BezelGUI()
FadeInStart()

BlockInput, On

7z(romPath, romName, romExtension, 7zExtractPath)

screensize := ""
settingsFile := modulePath . "\" . moduleName . ".ini"
Fullscreen := IniReadCheck(settingsFile, "Settings", "Fullscreen","true",,1)
disableHideTitleBar := true
disableHideToggleMenu := true
disableHideBorder := true
BezelStart("fixResMode")
screensize := If Fullscreen = "true" ? "-fullscreen " : ""


If romExtension = .ssd
{
Run(executable . " """ . romPath . "\" . romName . romExtension . """  " . screensize, emuPath)
}

If romExtension = .dsd
{
Run(executable . " """ . romPath . "\" . romName . romExtension . """  " . screensize, emuPath)
}

If romExtension = .rom
{
Run(executable . " """ . romPath . "\" . romName . romExtension . """  " . screensize, emuPath)
}


If romExtension = .uef
{
Run(executable . " """ . romPath . "\" . romName . romExtension . """  " . screensize, emuPath)
Sleep,1250
SetKeyDelay, 50
Send, {~ down}{~ up}{t down}{t up}{a down}{a up}{p down}{p up}{e down}{e up}{ENTER down}{ENTER up}
Sleep,100
Send, {p down}{p up}{a down}{a up}{g down}{g up}{e down}{e up}{_ down}{_ up}{^ down}{^ up}{e down}{e up}{0 down}{0 up}{0 down}{0 up}{ENTER down}{ENTER up}
Sleep,100
Send, {c down}{c up}{h down}{h up}{a down}{a up}{i down}{i up}{n down}{n up}{@ down}{@ up}
Sleep,100
Send, {@ down}{@ up}{ENTER down}{ENTER up}
}

WinWait("ahk_class BEEBWIN")
WinWaitActive("ahk_class BEEBWIN")


Sleep, 2500
BlockInput, OFF

BezelDraw()
FadeInExit()

Process("WaitClose", executable)
7zCleanUp()
BezelExit()
FadeOutExit()
ExitModule()

CloseProcess:
FadeOutStart()
  	Process, Close, BeebEm.exe
; WinClose("ahk_class BEEBWIN")
Return

Edited by craiganderson

Share this post


Link to post
Share on other sites

cool. if u are using the module i posted......let me know if u have any problems

there is also a theme i made

if u like it cool...if not no biggie.....

GLaNwJRobAA

Share this post


Link to post
Share on other sites

Nice one. I've updated my files.

Going to start the laborious task of recording video clips.

I've managed to source the a boat load of box scans which I'll try and 3Derise one day.

Think I'll use your theme in the meantime - it's got all the classics on there. Thanx again.

Share this post


Link to post
Share on other sites

Thanks Craig for the module.

[EDIT]

Wow, I did not see page two. My bad Craig and I appologize!!

The Changes you made look great!

[/EDIT]

I modified it to allow for bezels and added an isd for selecting fullscreen.

Here is the ahk: http://pastebin.com/w4458vUG

Here is the ahk: http://pastebin.com/kmjczayx

Here is the isd: http://pastebin.com/brMDE5ad

You will have to create a new directory in ...\HyperLaunch\Modules and call it BeebEM and put these two files in there.

Then Launch HyperHQ.exe and add the Acorn BBC Micro wheel.

Launch HyperLaunchHQ.

Create a new Global Emulator.

Name it BeebEm.

Set the path for the emulator.

Enter 7z|zip|ssd|uef for the Rom Extensions

Pick the BeebEm.ahk for the module.

You should be set. :D

Thanks,

Ron

Edited by rfancella

Share this post


Link to post
Share on other sites
Thanks Craig for the module.

[EDIT]

Wow, I did not see page two. My bad Craig and I appologize!!

The Changes you made look great!

[/EDIT]

I modified it to allow for bezels and added an isd for selecting fullscreen.

Here is the ahk: http://pastebin.com/w4458vUG

Here is the isd: http://pastebin.com/brMDE5ad

You will have to create a new directory in ...\HyperLaunch\Modules and call it BeebEM and put these two files in there.

Then Launch HyperHQ.exe and add the Acorn BBC Micro wheel.

Launch HyperLaunchHQ.

Create a new Global Emulator.

Name it BeebEm.

Set the path for the emulator.

Enter 7z|zip|ssd|uef for the Rom Extensions

Pick the BeebEm.ahk for the module.

You should be set. :D

Thanks,

Ron

You should put your name in the module as well!!

And also please note that the module uses a BlockInput command to prevent keyboard/mouse from interfering with loading a game.

On my system HYPERSPIN and xpadder (if using) both need to be run as an administrator when using BlockInput command ...dont know why...just FYI.

The user could always get rid of the BlockInput,On and BlockInput,Off commands if the User doesnt want them in there....but then just dont mess with keyboard or mouse as game is loading!

Edited by craiganderson

Share this post


Link to post
Share on other sites
Nice one. I've updated my files.

Going to start the laborious task of recording video clips.

I've managed to source the a boat load of box scans which I'll try and 3Derise one day.

Think I'll use your theme in the meantime - it's got all the classics on there. Thanx again.

Let us know how the video clips are coming along when you get a chance. Thanks.

Share this post


Link to post
Share on other sites
You should put your name in the module as well!!

And also please note that the module uses a BlockInput command to prevent keyboard/mouse from interfering with loading a game.

On my system HYPERSPIN and xpadder (if using) both need to be run as an administrator when using BlockInput command ...dont know why...just FYI.

The user could always get rid of the BlockInput,On and BlockInput,Off commands if the User doesnt want them in there....but then just dont mess with keyboard or mouse as game is loading!

Made a couple more radical changes and waiting to find out how to finish it.

It will enter the correct tape and run commands for .uef files and if the file name has "start)" in it, it will run the correct commands to start.

If it's an .ssd file, it will start the command for you. Hope to figure out how to extract the command from the file name.

BeebEM.ahk:

http://pastebin.com/w4458vUG

http://pastebin.com/kmjczayx

Craig,

Does using the ~ work for you in your original module? Mine requires the * key.

Thanks,

Ron

Edited by rfancella

Share this post


Link to post
Share on other sites
i just tried it and the ~ worked for me

weird

Try my updated module above and let me know if it works.

Using the ~ I got Bad Command... etc.

Thanks,

Ron

Share this post


Link to post
Share on other sites

.ssd file loaded

unofortunately the .uef file did not load

must be the problem brolly mentioned

see video

n8qh3P9ippI

(the final "f" u see at the end of the video is me exiting (my exit keys are combo of F and V)

just fyhi

same game loading with my module (which works on my system at least....dont know about others BUT i think some people are using it)

59YaeRE50_k

thanks

Edited by craiganderson

Share this post


Link to post
Share on other sites
Different keyboard layouts mean different keycodes, you should never use characters such as ~ with Send commands, you need to use the vk codes instead to make it compatible across different keyboard layouts:

http://www.autohotkey.com/docs/KeyList.htm#SpecialKeys

I am not sure how to use VK codes in the module as brolly mentioned above.

If anybody can help me ...thanks ahead of time

craig

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...