Quantcast
Channel: The Portable Freeware Collection Forums
Viewing all articles
Browse latest Browse all 689

Portable Freeware Development • Re: AutoRun LWMenu

$
0
0
Hey there! Back again! :)
I have an issue that I think AuroRunMenu can help resolve.
I have made a Rainmeter skin that uses *.lnk files to launch games. Trouble is, these LNK files are a pita to edit. I've looked everywhere for a LNK editor and can only find two I can work with:
LinkEditorGUI is an AutoIT program that looks good but doesn't work for me, keeps crashing.
Shortcuts Search and Replace is ok but awkward to use, never shows all my shortcuts in a single folder and is hard to figure out imo.
So then I thought about AutoRunMenu (ARM)!

So my plan...
Spoiler!   
1. Create a menu with as many items as necessary, ie, one per game, with portable links to them. With the games and ARM on the same drive, I can use relative paths and arguments.
2. Create a standard shortcut to launch those menu items. Which should be a little easier to edit. This will be placed on a separate drive and launch ARM's specific menu items depending on the shortcut parameters. This, I am assuming is quite easy to set up and more importantly, easier to edit should the need arise.
Example:
Spoiler!   
Here's the current Shortcut file properties:
LNK Target: "D:\Emulators\BizHawk\EmuHawk.exe" "E:\Sega\MCD - Syndicate\Syndicate (Europe).cue"
LNK Start in: "D:\Emulators\BizHawk"

I need to set up a menu entry in AutoRun.inf for this game to launch when clicked on.
Then I need to set up a shortcut.lnk file to run the menu and starts this particular entry, is that correct?

I'm a bit rusty on ARM workings now, is that how would I set up a menu item with this particular game?
My solution:
Spoiler!   
I have this code as Button 1:

Code:

[BUTTON1]buttontext=MCD - Syndicateclosemenuonclick=1relativepathandfilename=D:\Emulators\BizHawk\EmuHawk.exeoptionalcommandlineparams="E:\Sega\MCD - Syndicate\Syndicate (Europe).cue"
This is working ok. I'm trying to figure out the best layout for all this though. So I can set it up to use relative paths as much as possible. The only way I can think to do so is to have ARM, Roms and the emulators all on the same drive, which currently they aren't.
As my main reason for this is to try and make as many of these paths relative, I'm wondering if I can use:
optionalcommandlineparams="..\Sega\MCD - Syndicate\Syndicate (Europe).cue"
I assume that windows won't resolve this to an absolute path and that I am forced to use Absolute paths here?

Is that a feasible solution do you think?
If anyone should know of a better way or a LNK editor feel free to point that out. ;)

One more question I have though... Is it possible to set an icon to use for each menu button? It would be great if there was a way to allow an icon to be set. So each shortcut.lnk file would read the AutoRun.inf and see it's path to the icon. But I guess that then becomes a windows issue and is out of the reach of ARM?

Thanks.

Statistics: Posted by sl23 — Sun Nov 03, 2024 12:03 pm



Viewing all articles
Browse latest Browse all 689

Trending Articles