forxtra wrote: > You're right. I also didn't install foobar2000 in the default location. :) > > But, If foobar2000 is not already running, Win.ExePath() cannot return vaild > path.
True. Right now, I'm running the player from left clicking "startmenu" label (music) http://img8.imageshack.us/img8/7594/musicihh.png if I want the remote (which will use the script) http://img8.imageshack.us/img8/1419/53684683.png I right click the label (music) So, I don't have any errors, because the player is already running but, since you pointed that out, I added an if not to quit the script before it reaches the Do. Local Foobar2000 = win.ExePath("=foobar2000") -------------------- If (!Foobar2000) Quit -------------------- Do (Foobar2000, m[sParam]) Quit > I think it would be convenient to launch foobar2000 by just clicking PowerPro > Bar regardless of whether or not foobar2000 is already running. As you can see above, for testing reasons I'm doing it with two actions, but for release, I'm thinking something like: L: launch player only R: launch player + remote or launch remote with left action to run/restore player? what would be ideal? I don't think is a good idea to have the remote always showing when we are not listening to music, that will just add clutter to the desktop. > If the user normally install foobar2000, we could find vaild path by > searching the Registry with Reg plugin. > ; -------------------------- > <snip> > ; -------------------------- What if the user, uses a portable version? Like me... :) The "foobar" script execution is solved about that invalid path issue but I'm still not sure what I'm going to do in the release for running the players from the startmenu and/or remote a) tell users in release notes to modify the path to desired location b) create a first run script to ask for player path and save location afterwards c) suggestions? Bear in mind, that this is not only for foobar, but also for iTunes, Winamp and WMP. I'll have to apply the same solution for start menu label "internet" which will execute preferred browser. > > Btw, I'll credit you for this, will "forxtra" be enough or should I include > > your name which I don't know...? > > > > I'd like to be called "forxtra" or "forXtra" as a nickname on group. > Thanks. Then, forXtra will be it.
