Configure Tools: new fixed option %COMPILERHOME as argument

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
helpy
Enthusiast
Enthusiast
Posts: 552
Joined: Sat Jun 28, 2003 12:01 am

Configure Tools: new fixed option %COMPILERHOME as argument

Post 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
Last edited by helpy on Tue Jul 27, 2010 8:27 am, edited 2 times in total.
Windows 10 / Windows 7
PB Last Final / Last Beta Testing
Little John
Addict
Addict
Posts: 4778
Joined: Thu Jun 07, 2007 3:25 pm
Location: Berlin, Germany

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

Post 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
User avatar
helpy
Enthusiast
Enthusiast
Posts: 552
Joined: Sat Jun 28, 2003 12:01 am

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

Post by helpy »

No! I do not need an environment variable!

I would need an "IDE variable" for configuring external tools:
Image
Windows 10 / Windows 7
PB Last Final / Last Beta Testing
Little John
Addict
Addict
Posts: 4778
Joined: Thu Jun 07, 2007 3:25 pm
Location: Berlin, Germany

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

Post 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
User avatar
helpy
Enthusiast
Enthusiast
Posts: 552
Joined: Sat Jun 28, 2003 12:01 am

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

Post by helpy »

Little John wrote:Oops, sorry! I misunderstood your first post.
... I should have to describe it with more details ;-)

cu, guido
Windows 10 / Windows 7
PB Last Final / Last Beta Testing
Post Reply