Page 1 of 1

Configure Tools: new fixed option %COMPILERHOME as argument

Posted: Mon Jul 26, 2010 5:54 pm
by helpy
Hello,

It would be very helpful if I could use %COMPILERHOME (equivalent of #PB_Compiler_Home) as argument for calling external tools.

I would use it to call a help file in a different language!

Therefore I use KeyHH with the following options:

Code: Select all

Commandline:                [Path to]\KeyHH.exe
Arguments:                  -MyHelp -#klink "%WORD" [Full path to]\Purebasic.GER.chm
Name:                       Help.GER
Event to trigger the tools: Menu Or Shortcut
Shortcut:                   STRG + F1
This works like a charm :-)

But it would be helpful if I could use %COMPILERHOME for accessing the help file of the appropriate pb version:

Code: Select all

Arguments:                  -MyHelp -#klink "%WORD" %COMPILERHOME\Help\Purebasic.GER.chm
[EDIT]
More Information:
This way with F1 I get the english help for the keyword/command (word und current cursor position) and with STRG+F1 I will get the german help for the selected keyword/command!
[/EDIT]

Thank you for considering this wish,
cu, guido

Re: Configure Tools: new fixed option %COMPILERHOME as argum

Posted: Mon Jul 26, 2010 6:30 pm
by Little John
Hi,

if I understand you correctly, then you want the variable %COMPILERHOME to contain the proper value even when PB is not running, right? So it seems to me that you are just asking for an environment variable. Well, the installer could create such an environment variable. But a problem is, that some people have installed more than one PB version on their PC. Wouldn't it be simpler to create that environment variable yourself?

Regards, Little John

Re: Configure Tools: new fixed option %COMPILERHOME as argum

Posted: Mon Jul 26, 2010 7:03 pm
by helpy
No! I do not need an environment variable!

I would need an "IDE variable" for configuring external tools:
Image

Re: Configure Tools: new fixed option %COMPILERHOME as argum

Posted: Mon Jul 26, 2010 7:14 pm
by Little John
helpy wrote:No! I do not need an environment variable!

I would need an "IDE variable" for configuring external tools
Oops, sorry! I misunderstood your first post.

Regards, Little John

Re: Configure Tools: new fixed option %COMPILERHOME as argum

Posted: Mon Jul 26, 2010 7:43 pm
by helpy
Little John wrote:Oops, sorry! I misunderstood your first post.
... I should have to describe it with more details ;-)

cu, guido