![]() |
![]() |
#1 |
Moderator
Join Date: Nov 2004
Location: Eksjö / Sweden
Posts: 5,674
|
Can I make WinUAE auto-launch an .adf?
(I should add: by clicking on it to download it in a web browser, then double-clicking on it when downloaded.)
I can do this with e.g. .d64 files, and it's good for a quick check. I guess for this to happen, WinUAE would need a setting for a default config, since .adf files can be for any Amiga. But that too would be nice addition (again - if not already configurable. There is no manual for WinUAE AFAIK.) I could rig something up, e.g. click Folder icon instead, select the file if necessary, F2, rename to test.adf, switch to desktop and double-click a desktop shortcut I made to launch WinUAE with arguments (just guessing now) WinUAE c:\Downloads\test.adf and it would maybe use the default OCS A500 Quickstart config. As it is, it's not too much trouble pressing my keybind for the desktop shortcut to WinUAE, and double click config after copying the file to Diskimages, then F12, click Floppy Drives, click (...), select the file, but it would be handy. Also for .dms. .exe (or extensionless) is more troublesome, but perhaps something could be done here also? A double-click or maybe even better, right-click any file/open in WinUAE to automate the whole process would be great. Cheers ![]() |
![]() |
![]() |
#2 |
Registered User
Join Date: Sep 2015
Location: Montreal
Posts: 297
|
In theory and I don't see why not.. make a self extracting executable using a portable configuration of winuae
|
![]() |
![]() |
#3 |
Registered User
Join Date: Jan 2002
Location: Germany
Posts: 7,033
|
I don't see why this is worth a question. Just double-click a .adf file and associate it with winuae.exe, there you go.
On WinUAE's Pri & Extensions page you can also pre-select file endings to be associated with WinUAE. The config used probably is default.uae which is always loaded first. |
![]() |
![]() |
#4 |
Registered User
Join Date: Nov 2004
Location: Germany
Posts: 629
|
This batch script should start winuae with a config and an disk image in df0: , if an adf file is passed as the first parameter.
go.bat Code:
@echo off winuae.exe -f D:\Emus\WinUae\Configurations\ADF_V1-3.uae -0 %1 |
![]() |
![]() |
#5 |
HOL/FTP busy bee
Join Date: Sep 2006
Location: Germany
Age: 46
Posts: 32,037
|
You don't really need a config file. You can pretty much configure everything via the command line: https://www.vware.at/winuaehelp/Comm...arameters.html
|
![]() |
![]() |
#6 |
Moderator
Join Date: Nov 2004
Location: Eksjö / Sweden
Posts: 5,674
|
Not sure what everyone means. I thought I was clear. Let's go again.
I am asking how to
E.g. _after_ associating all files under Pri & Extensions, double-clicking an ADF opens the standard dialog where nothing works. You click Other Programs, Browse, choose WinUAE.exe, and the bog standard Amiga and host config opens an A500 1.3 and shows the disk hand. No boot. (I would prefer right-click because double-clicking an Amiga file mistakenly provided with an .exe suffix obviously cannot do what an Amiga emu user wants.) Last edited by Photon; 29 December 2022 at 01:42. |
![]() |
![]() |
#7 | |
Registered User
Join Date: Nov 2014
Location: FT Lewis, WA
Posts: 374
|
Quote:
Code:
@ECHO OFF @CLS TITLE Amiga Cinemaware Games :MENU ECHO. ECHO ................................................ ECHO . CINEMAWARE GAMES . ECHO . PRESS a number to run your game, Q to EXIT . ECHO ................................................ ECHO. ECHO 1 - Wings ECHO Q - EXIT SET /P M=Enter Game Number: IF %M%==1 GOTO WINGS IF %M%==Q GOTO EOF IF %M%==q GOTO EOF :WINGS CLS REM CD CW_Wings winuae.exe -f ".\Configurations\Wings.uae" -cfgparam use_gui=no -portable GOTO MENU DISCLAMER I am not responsible for any shenanigans that this code commits. Use it at your own risk. Also, try and get the most up to date console commands for WinUAE just in case they have changed. I haven't used this code since getting my Raspberry PI400 - I do pretty much everything on that now a days. Hope this helps! |
|
![]() |
![]() |
#8 | ||
Registered User
Join Date: Nov 2004
Location: Germany
Posts: 629
|
Quote:
Quote:
You can choose to add as many items to the right click menu (for e.g. .adf) as you like: If it is an a500 game- use a500 config If it is an aga game - use a1200 config If it is an kickstart 1.2 game - then use that Last edited by Dan; 29 December 2022 at 13:28. |
||
![]() |
![]() |
#9 |
Registered User
Join Date: Nov 2014
Location: Italy
Posts: 2,449
|
i don't know i well understood the first post, but he wants click on ADF file to transfer into a web browser and play from it.
Do you want to do like him? [ Show youtube player ] Last edited by Seiya; 29 December 2022 at 15:24. |
![]() |
![]() |
#10 |
Moderator
Join Date: Nov 2004
Location: Eksjö / Sweden
Posts: 5,674
|
I guess I want
1) a way to set a default config for WinUAE that launches emulation using that config whenever WinUAE is started (I can always press F12 if I want to change it) 2) a way to pass a filename as argument. Because WinUAE can take an Amiga executable (.exe or no extension) as argument as well as .adf, .adz, zipped .adf, and .dms, I would like to use Windows' Context menu with an entry named, "Open with WinUAE". |
![]() |
![]() |
#11 | |
Registered User
Join Date: Nov 2004
Location: Germany
Posts: 629
|
With the tool in the post #8 you can do just that.
You will have to add an entry for each type (adf, adz, zip, dms) You will have to add your own command and name for it (actions tab). (if you use the name "Open" it will be the default action - double click on the file in the explorer will open that command line.) You can add multiple options to open a file. (multiple configurations) The commandline example is: Quote:
If you add a config for an adf extension. type in a class name. With it you can simply select the same class for dms, adz (and others) and it will use the same menu commands (see the action tab in the screenshot) for it. (means: you do not have to type the configurations again) Last edited by Dan; 08 January 2023 at 00:47. |
|
![]() |
![]() |
#12 |
Moderator
Join Date: Nov 2004
Location: Eksjö / Sweden
Posts: 5,674
|
Probably the best way to achieve it is with UAE commandline options for portability. E.g. "xxxuae <config_filename> <autoopen_filename>".
There are probably ways to achieve this by setting up a batch file etc. But I'm asking to make UAE more user friendly. The whole point of this question is to not have to put the file name in a batch file (or edit registry). It's already possible in other emulators, although most platforms don't offer the same versatility in setup as Amiga, and so they supply a default configuration over which there is no control (which is mostly fine for them). And add .d64, .t64, .tap, .dsk to registry on install. I would like to see the same ease of use for WinUAE and it will not happen by following guides that can only be found by finding a forum thread or group post or things like that. I hope you know what I mean and want the same. ![]() |
![]() |
![]() |
#13 |
HOL/FTP busy bee
Join Date: Sep 2006
Location: Germany
Age: 46
Posts: 32,037
|
When I double click on an ADF file it starts WinUAE with the A500 most common quickstart (granted to have to set that up once). I doesn't open the GUI. It just starts the disk and if it's a game the game loads. Don't know how else you'd solve this without a frontend that tells WinUAE which config to use.
|
![]() |
![]() |
#14 |
Registered User
Join Date: Nov 2004
Location: Germany
Posts: 629
|
Well, because amiga has many setup possibilities, the only 'other' way i have thought of, is to have a (obviously working) config name in the filename.
For example Ik+ [kick13].adf, Brian The Lion[kick31].adf or ik+ [cfg01].adf ... BrianTheLion[cfg05].adf Then either winuae or a hidden launcher would load/launch the appropriate config. (a hidden launcher is an app which does not show the gui = launch and end) |
![]() |
![]() |
#15 |
Registered User
Join Date: Nov 2014
Location: Italy
Posts: 2,449
|
this is how works with gamebase front-end. no gui open, but start directly the game with your config (OCS, AGA, ECS, A500, A600, A1200, ecc)
|
![]() |
![]() |
#16 |
Registered User
Join Date: Oct 2007
Location: Athens , Greece
Posts: 1,860
|
DamienD asked me to post this for you Photon:
============================================================ Alrighty, so slapped together a solution for you Photon... it's not perfect but the best I could come up with. It basically allows you to double-click on any .ADF / .ADZ / .DMS / .IPF / .RAW / .WRP file, select a pre-defined configuration, it will launch WinUAE, insert the disk image into DF0: and start emulation ![]() Concept: DamienD's Disk Launcher works on the following principle: 1) .ADF / .ADZ / .DMS / .IPF / .RAW / .WRP files have been set to open with WinUAE. 2) There is a "Default.uae" file located in your "Configurations" directory. Things to note for you to test: My WinUAE setup is as follows, so set up the same way for now: 1) WinUAE is located in "C:\WinUAE". 2) The configuration files are stored in "C:\WinUAE\Configurations". 3) The ROMs are stored in "C:\WinUAE\ROMs". 4) Paths and everything inside the configuration files is relative. Instructions on usage: 1) Download the file "DamienD's Disk Launcher.rar" from the TURRAN FTP located in "/~Uploads/DamienD/DamienD's Disk Launcher". 2) Extract into "C:\WinUAE". 3) Double-click / apply the "DamienD's Disk Launcher.reg" file located in "C:\WinUAE\DamienD's Disk Launcher". 4) Now double-click on any .ADF / .ADZ / .DMS / .IPF / .RAW / .WRP file. 5) My batch file converted to an EXE will launch: 6) Select the desired configuration file to run. 7) Now double-click again on any .ADF / .ADZ / .DMS / .IPF / .RAW / .WRP file and WinUAE will launch / start emulation: If you're happy with everything after testing then I can adjust stuff to your WinUAE setup i.e. where WinUAE / configuration files / ROMs are stored. Just ask vulture for my e-mail address ![]() ============================================================ |
![]() |
![]() |
#17 |
Registered User
Join Date: Nov 2004
Location: Germany
Posts: 629
|
Winuae has a way to associate the extensions to itself.
It is in the gui in the Host/Pri & Extensions. |
![]() |
![]() |
#18 |
Registered User
Join Date: Oct 2007
Location: Athens , Greece
Posts: 1,860
|
Dan, yes obviously.
After doing that you need a configuration file named "Default.uae". Once double-clicking on a disk image, WinUAE will launch, load the "Default.uae" configuration, insert the disk image into DF0: and start emulation. ...but my tool (essentially a batch file --> .EXE, and .REG files) isn't just about associating file types with WinuAE. The way I've set everything up means that after double-clicking on a disk image, you can select a configuration first, click on the disk image again and then start emulation ![]() |
![]() |
![]() |
#19 |
HOL/FTP busy bee
Join Date: Sep 2006
Location: Germany
Age: 46
Posts: 32,037
|
Man, this is so much easier than using Quickstart!
|
![]() |
![]() |
#20 |
Registered User
Join Date: Oct 2007
Location: Athens , Greece
Posts: 1,860
|
DamienD asked me to post this update:
====================================================================== Slightly updated the names of the configuration files to make it clearer, and therefore also adjusted the text in the batch file:
If downloaded / used previously, please just do the following:
====================================================================== |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
iGame auto-launch in WBC | TroelsDK | support.Apps | 6 | 21 June 2013 19:39 |
auto start game from hdd on launch | espontaneo | support.WinUAE | 2 | 19 October 2008 13:41 |
Can I launch ADF files from Workbench directly? | randomspam | New to Emulation or Amiga scene | 4 | 07 January 2006 01:37 |
On WinUAE launch | Unregistered | support.WinUAE | 3 | 06 August 2004 16:23 |
How do I make ADF files? | Ziaxx | support.WinUAE | 10 | 24 September 2001 17:34 |
|
|