PDA

View Full Version : Couple of things...



NewsArchive
10-13-2018, 01:55 AM
1) request to addition to right click popup menu when opening an SB
project, "Open Project Folder" that would open file explorer in the
folder of the project directly from within SB.

2) I'm changing clarionconfigdir.sbi to support /ConfirDir without a
path where the configuration information is kept inside the Clarion
bin\Settings folder. Although I've never had any developers say they
use the command line argument during the install!<g>

I figured since I'm adding an empty /ConfigDir option to my install
scripts I'd do it here too... assuming I can stay awake!!!!!


I still think this should be written into the registry when Clarion is
installed so shortcuts, start menu items and all other ways to start
Clarion are support with the command line argument affecting
absolutely nothing.

--
Lee White

RPM Report Viewer.: http://www.cwaddons.com/products/rpm/
Report Faxing.....: http://www.cwaddons.com/products/afe/
---Enroll Today---: http://CWaddons.com

Creative Reporting: http://www.CreativeReporting.com

Product Release & Update Notices
http://twitter.com/DeveloperPLUS

NewsArchive
10-13-2018, 01:56 AM
Hi Lee,

> I still think this should be written into the registry when Clarion is
> installed so shortcuts, start menu items and all other ways to start
> Clarion are support with the command line argument affecting
> absolutely nothing.

I agree. I use just /ConfigDir so it goes into the bin/settings, but
nothing except that shortcut knows that. In BA I added /ConfigDir
support several years ago but even if the Clarion shortcut just uses
/ConfigDir, I have no way of knowing that, so the user has to select a
folder. It should have been part of the install and IDE.

Best regards,

--
Arnor Baldvinsson
Icetips Alta LLC

NewsArchive
10-14-2018, 02:59 AM
Lee,

> 1) request to addition to right click popup menu when opening an SB
> project, "Open Project Folder" that would open file explorer in the
> folder of the project directly from within SB.

Added! Thank you for your suggestion.

Friedrich

NewsArchive
10-14-2018, 03:00 AM
Friedrich,

> Added! Thank you for your suggestion.

Thank YOU!

--
Lee White

RPM Report Viewer.: http://www.cwaddons.com/products/rpm/
Report Faxing.....: http://www.cwaddons.com/products/afe/
---Enroll Today---: http://CWaddons.com

Creative Reporting: http://www.CreativeReporting.com

Product Release & Update Notices
http://twitter.com/DeveloperPLUS

NewsArchive
10-14-2018, 03:01 AM
Hi Lee,

> 2) I'm changing clarionconfigdir.sbi to support /ConfirDir without a
> path where the configuration information is kept inside the Clarion
> bin\Settings folder. Although I've never had any developers say they
> use the command line argument during the install!<g>
>
> I figured since I'm adding an empty /ConfigDir option to my install
> scripts I'd do it here too... assuming I can stay awake!!!!!

I would be more than happy to add it to the next SB release :-) Just share
your code <g>.

Thank you !!!

Friedrich

NewsArchive
10-14-2018, 03:01 AM
Friedrich,

> I would be more than happy to add it to the next SB release :-) Just share
> your code <g>.

Once I can get my head wrapped around it I will. Still have a lot on
my plate now that 11 is in the wild!<g>

--
Lee White

RPM Report Viewer.: http://www.cwaddons.com/products/rpm/
Report Faxing.....: http://www.cwaddons.com/products/afe/
---Enroll Today---: http://CWaddons.com

Creative Reporting: http://www.CreativeReporting.com

Product Release & Update Notices
http://twitter.com/DeveloperPLUS

NewsArchive
10-14-2018, 09:07 AM
Hi Lee,Arnor,

It is possible to get the shorcut information using the WScript.Shell
If you use the CreateShorcut method with a link path that already exists
it open that shorcut and returns an object reference that you can use to
query the TargetPath and Arguments properties.

See attached C11 project files and example output.
Just make sure you enter and existing lnk in the entry as you don't want
to create new links :-)

Obviously if you don't know the shortcut you need in advance you'd need to
do a directory looking for .lnk files and query each for the TargetPath to
find the one you want.

Graham

NewsArchive
10-14-2018, 09:08 AM
....hmm obviously _shorcut_ is a shortcut for shortcut l-)

Graham

NewsArchive
10-14-2018, 09:08 AM
Graham,

> Hi Lee,Arnor,
>
> It is possible to get the shorcut information using the WScript.Shell
> If you use the CreateShorcut method with a link path that already exists
> it open that shorcut and returns an object reference that you can use to
> query the TargetPath and Arguments properties.

Doesn't help unless the developer remembers to set the Start Menu item
and never EVER starts the IDE from the install folder directly.

/ConfigDir needs to be an INSTALL option that's written into the
registry so no matter how Clarion is loaded it uses the setting
correctly and adding it to a shortcut or menu item is ignored unless
the IDE asks you if you want to change the location as it loads in
which case the registry is updated. But that part really isn't needed
nor desired so DO IT IN THE INSTALL AND BE DONE WITH IT!<g>

--
Lee White

RPM Report Viewer.: http://www.cwaddons.com/products/rpm/
Report Faxing.....: http://www.cwaddons.com/products/afe/
---Enroll Today---: http://CWaddons.com

Creative Reporting: http://www.CreativeReporting.com

Product Release & Update Notices
http://twitter.com/DeveloperPLUS

NewsArchive
10-14-2018, 09:09 AM
Hi Graham,

> It is possible to get the shorcut information using the WScript.Shell

Not going to work. What shortcut and where? That's the whole thing.
The shortcut can be in the main menu. On the desktop, in a folder on
the desktop or just about anywhere. There is no way to KNOW 100%

> Obviously if you don't know the shortcut you need in advance you'd need to
> do a directory looking for .lnk files and query each for the TargetPath to
> find the one you want.

Those files can literally be anywhere. And they could be named
anything. "Clarion", "Clarion 11", "Clarion 10", "That Dev Program",
"Whatever" Some may say "Clarion 11", while others say "Clarion -
Shortcut" or whatever. And different versions of windows are putting
this stuff in different folders and God knows what.

OneDrive has fairly recently been plugged into the Windows system, so
your shortcuts may reside in OneDrive! Lost most of mine on one machine
because I deleted a bunch of stuff I wasn't using from another and then
it went ahead and synced the whole mess via OneDrive and removed all
those same shortcuts from another machine. So, your shortcuts can be
just about anywhere.

Best regards,

--
Arnor Baldvinsson
Icetips Alta LLC

NewsArchive
10-14-2018, 09:10 AM
Hi Arnor,Lee,

OK I understand about the Clarion install writing to the registry now.
And I get Arnor's point about the shortcuts possibly being anywhere.

Having said all that I enjoyed working out how the use a secondary COM
object returned from WScript.Shell to get the shortcut information.
Who knows maybe it'll come in usefull sometime :-)

Graham

NewsArchive
10-14-2018, 09:10 AM
....took me a while to remember that secondary objects were returned as
CSTRINGs and not as the LONG I tried originally :-)

Graham

NewsArchive
10-14-2018, 09:11 AM
Hi Graham,

> Having said all that I enjoyed working out how the use a secondary COM
> object returned from WScript.Shell to get the shortcut information.
> Who knows maybe it'll come in usefull sometime :-)

It makes me very happy that Lee and I can provide you with a little bit
of enjoyment on a beautiful Saturday afternoon :)

Best regards,

--
Arnor Baldvinsson
Icetips Alta LLC