You are here: PSPad forum > Developer forum - new builds > PSPad unicode 5.0.5 (549) English
Posted by: pspad | Date: 2021-02-04 05:07 | IP: IP Logged
Of course it was. Any help with problem examples spare realy lot of time
Posted by: MadCompie | Date: 2021-02-04 08:03 | IP: IP Logged
Hello,
With this version the filenames disappear from the tab.
My simulation:
- open a random file: filename OK in the tab
- minimize PSPad & restore: filename remains OK
- close PSPad (not really close but minimized close) & restore: filenames are gone
- Must now really close & restart PSPad to show the filenames again
Posted by: pspad | Date: 2021-02-04 08:26 | IP: IP Logged
Thank you for info.
I tried to minimize redraw count, but it looks like it was too much.
Same situation is when you load project.
Posted by: Greg | Date: 2021-02-04 11:05 | IP: IP Logged
Hello Jan :D
I tried to make some VBScript file for pspad\Script\VBScript but i don't seem to be able to have the right values for some variables :
OK : getVarValue(%PSPath%) = PSPad application path
NOK : getVarValue(%File%) = Name, without extension, of current file
NOK : getVarValue(%Dir%) = Empty string
NOK : getVarValue(%Name%) = Empty string
NOK : getVarValue(%SelText%) = Empty string
What's odd is they work just fine when used on "Highlighters Settings --> External applications" :\
(%File%, and %SelText% anyway, i didn't test the other ones)
Regards,
Greg
Posted by: pspad | Date: 2021-02-04 11:32 | IP: IP Logged
In the menu settings/user variables you should see variables with values
Posted by: Professor Bernd | Date: 2021-02-04 18:52 | IP: IP Logged
Hi Greg.
I work a lot with PSPad's VBScript. Here is an excerpt of the variables I use in VBScript. (Please excuse, the forum software removed my formatting.)
Dim sMsg
sMsg = _
"FullFileName: " & getVarValue("%FullFileName%") & vbCRLF & vbCRLF _
& "ShortFileName: " & getVarValue("%ShortFileName%") & vbCRLF & vbCRLF _
& "FilePath: " & getVarValue("%FilePath%") & vbCRLF & vbCRLF _
& "FileName: " & getVarValue("%FileName%") & vbCRLF & vbCRLF _
& "File: " & getVarValue("%File%") & vbCRLF & vbCRLF _
& "Ext: " & getVarValue("%Ext%") & vbCRLF & vbCRLF _
& "HomePath: " & getVarValue("%HomePath%") & vbCRLF & vbCRLF _
& "UserProfile: " & getVarValue("%UserProfile%") & vbCRLF & vbCRLF _
& "AppData: " & getVarValue("%AppData%") & vbCRLF & vbCRLF _
& "Temp: " & getVarValue("%Temp%") & vbCRLF & vbCRLF _
& "WinDir: " & getVarValue("%WinDir%") & vbCRLF & vbCRLF _
_
& "module_name: " & module_name & vbCRLF & vbCRLF _
& "moduleFileName: " & moduleFileName(module_name) & vbCRLF & vbCRLF _
& "modulePath: " & modulePath() & vbCRLF & vbCRLF _
& ""
Echo(sMsg)
For %SelText% you can use the editor object functions in VBScript.
' editor object function
Dim obj
Set obj = NewEditor()
obj.assignActiveEditor()
sMsg = "SelText: " & obj.SelText()
Echo(sMsg)
If you need further help on this, you can create a separate thread so as not to bloat this "new builds" thread. Then you can send me a PM so that I notice the thread.
Posted by: pspad | Date: 2021-02-04 18:54 | IP: IP Logged
To get content of %File%, %DIR% e.t.c. you need to have open any file in PSPad, cause variable returns file related information
Posted by: Professor Bernd | Date: 2021-02-04 19:16 | IP: IP Logged
@Jan %ShortFileName% gibt keinen 8.3 Pfad/Namen zurück.
Posted by: pspad | Date: 2021-02-04 20:16 | IP: IP Logged
For me %ShortFileName% works.
Autocomplete.txt was shown as Autoco~1.txt
File name must be longer than 8 chars or contains space to be shortened.
When you run it on Windows Server 2012 and higher, you needd to allow short file names, cause this feature is disabled as default.
Posted by: Greg | Date: 2021-02-04 22:56 | IP: IP Logged
Thank you very much Professor Bernd !
%FullFileName% works just fine but where did you find it ? id don't see it on Pspad's help file "Command/Compiler Variables"... SNIIIIIIIF
%File% should do the tirck, doesn't it ?
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