SamC Posted November 18, 2013 Posted November 18, 2013 Ay up, Don't know if this is any use to anyone? http://pastebin.com/2ZuFjFmg http://pastebin.com/cWTQGdZR Got it working in HyperSpin but struggling with an ahk for HQ. Kinda needed for joystick with BeebEm. Could someone point me in the direction of tutorials for writing ahk files? Cheers, Sam
SamC Posted November 20, 2013 Author Posted November 20, 2013 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
Melu Posted November 20, 2013 Posted November 20, 2013 Thank you very much for the XML and the. Ahk. Now a question, what is the name of the emulator?
SamC Posted November 21, 2013 Author Posted November 21, 2013 @melu669 Ha! Yeah, might help. Using BeebEm v4.14 Still trying to figure out an escape sequence for exiting the emulator.
Polemicist Posted November 21, 2013 Posted November 21, 2013 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.
SamC Posted December 2, 2013 Author Posted December 2, 2013 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
craiganderson Posted May 20, 2014 Posted May 20, 2014 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 http://craigandersonthemes.weebly.com/
SamC Posted August 25, 2014 Author Posted August 25, 2014 Haven't been on here for a while. This is brilliant! Thank you.
craiganderson Posted August 25, 2014 Posted August 25, 2014 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 http://craigandersonthemes.weebly.com/
craiganderson Posted August 25, 2014 Posted August 25, 2014 edit http://craigandersonthemes.weebly.com/
SamC Posted August 26, 2014 Author Posted August 26, 2014 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.
craiganderson Posted August 26, 2014 Posted August 26, 2014 im dropping everything into my hyperspin ftp right now just fyi http://craigandersonthemes.weebly.com/
rfancella Posted September 19, 2014 Posted September 19, 2014 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. Thanks, Ron Code Monkey and all around Command Line geek!If you like what someone has said or done for you, be sure and 'Thank' them. And if they changed your life, send them a Beer!
craiganderson Posted September 19, 2014 Posted September 19, 2014 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. 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! http://craigandersonthemes.weebly.com/
craiganderson Posted September 19, 2014 Posted September 19, 2014 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. http://craigandersonthemes.weebly.com/
rfancella Posted October 10, 2014 Posted October 10, 2014 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 Code Monkey and all around Command Line geek!If you like what someone has said or done for you, be sure and 'Thank' them. And if they changed your life, send them a Beer!
craiganderson Posted October 10, 2014 Posted October 10, 2014 i just tried it and the ~ worked for me weird http://craigandersonthemes.weebly.com/
rfancella Posted October 10, 2014 Posted October 10, 2014 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 Code Monkey and all around Command Line geek!If you like what someone has said or done for you, be sure and 'Thank' them. And if they changed your life, send them a Beer!
brolly Posted October 10, 2014 Posted October 10, 2014 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
rfancella Posted October 14, 2014 Posted October 14, 2014 i just tried it and the ~ worked for me weird Craig, Over at the HyperLaunch site, I have a post with a much updated module. Can you test it and let me know if it works for you?? http://www.hyperlaunch.net/forum/showthread.php?231-BeebEm-module&p=2609&viewfull=1#post2609 Thanks, Ron Code Monkey and all around Command Line geek!If you like what someone has said or done for you, be sure and 'Thank' them. And if they changed your life, send them a Beer!
craiganderson Posted October 14, 2014 Posted October 14, 2014 .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 http://craigandersonthemes.weebly.com/
craiganderson Posted October 19, 2014 Posted October 19, 2014 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 http://craigandersonthemes.weebly.com/
Recommended Posts
Archived
This topic is now archived and is closed to further replies.