topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Wednesday December 11, 2024, 6:27 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: shortcuts - (little) issues with title and arguments  (Read 4071 times)

poyan

  • Supporting Member
  • Joined in 2010
  • **
  • Posts: 30
    • View Profile
    • DentalTrauma.info
    • Donate to Member
shortcuts - (little) issues with title and arguments
« on: September 12, 2014, 09:35 PM »
Hi,
I have some shortcuts which pass an argument (filepath) to a program.

Shortcuts work fine from the folder, starting the program with the desired file.
Dragging the shortcut to LBC:
1.copy shortcut properties: launch works, however the title and the hints are set to the launched program.
this requires manual correction, since it is not helpful to have many times the same title in LBC ;)
There may be reasons to take the program as title, but it seems to be more logical to take the filename of the argument as title, if the argument represents a file. Or the title of the shortcut.
Maybe a third option in the dialog?

2. link to shortcut:
uses now the name of the shortcut as title, which is good.
when started from lbc the program starts, however with the last file used, not with the file which is the argument...
All paths are without spaces or problematic characters, I tried with and without quotes, the shortcuts placed in the same directory like the files, or in a different one.
Finally, I found the issue: it is the %file%-entry in the arguments section. After deletion the launch with the desired file works.
I suggest to leave the arguments section empty if a shortcut contains a filepath as argument.
Not a big issue, but inconvenient with some dozens of shortcuts.




..



mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,914
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: shortcuts - (little) issues with title and arguments
« Reply #1 on: September 18, 2014, 10:25 AM »
1. Yes, I can see how it might be smarter to use the name of the shortcut, maybe i'll change that.

Can you explain #2 a bit more?

poyan

  • Supporting Member
  • Joined in 2010
  • **
  • Posts: 30
    • View Profile
    • DentalTrauma.info
    • Donate to Member
Re: shortcuts - (little) issues with title and arguments
« Reply #2 on: December 12, 2014, 04:20 PM »
Hi, Mouser,
sorry for the late response, I missed to click notify on response.
#2: sorry, I was inaccurate.
The problem occurs, if I have a shortcut, which is containing a path to program, followed by a path to a file, in order to start the file with a program which is not the standard program.
In this case just the program is started, obviously without passing the file, thus the program uses the file which was the last one opened - as long as "%file%" is in the argument section. If that is deleted the desired file is opened. Since it took me quite a lot of testing - despite I'm not inexperienced - I suggest that LBC handles this situation by itself to prevent users from despair ;-)

Related to that: the "hint" field is filled with program information, not with the filename. And if icons are assigned to the shortcut, they are not used by lbc automatically, either the program icon is used, or it is left blank.