You are here: PSPad forum > English discussion forum > List of PSPad variables for getVarValue
Posted by: edo_nick | Date: 2020-02-28 12:04 | IP: IP Logged
Hi,
is there any List of PSPad variables for getVarValue.
I have found here and there some reference (%Path%,%FileName%,%File%,%Ext%,%Word%).
I want to get location of opened file.
Posted by: pspad | Date: 2020-02-28 12:21 | IP: IP Logged
In the pspad help is scripting reference
Under function getVarValue is link to lis of variables
or you ca go to index and search for variables
This function works with PSpad variables as well with operating system variables like %appdata%. Because system variables depends of the operating system, look for your oprating system help.
Posted by: edo_nick | Date: 2020-02-28 12:28 | IP: IP Logged
Thank you.
Can you please share pspad help scripting reference.
Only reference I found is:
gogogadgetscott.info
and there is no link to list of variables.
Meanwhile I found solution using editor.fileName() function.
Posted by: pspad | Date: 2020-02-28 12:45 | IP: IP Logged
Part of the PSpad is PSPad.chm help file
Open included help, this contains everything I wrote about in my previous answer.
Try to press F1 in PSpad
Posted by: edo_nick | Date: 2020-02-28 12:53 | IP: IP Logged
Thank you.
Everything is on the Web. BUSTED :D
Posted by: Professor Bernd | Date: 2020-03-01 22:38 | IP: IP Logged
@edo_nick Would you please share with us what you found on the web?
Here is what I found: Command/Compiler Variables
For use with "getVarValue()" there are other variables, e.g. :
%FullFileName% - Path to current file, including name and extension.
%FilePath% - Path to the current file, WITHOUT name and extension, incl. trailing backslash.
%FileName% - Name of the current file, including extension.
%File% - Name of the current file, WITHOUT extension.
%Ext% - Extension of the current file, including the dot ".au3".
Bernd.
Editor PSPad - freeware editor, © 2001 - 2025 Jan Fiala, Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák, Privacy policy and GDPR