Currently it is "meant" that you change your local "vpmkeys.vbs" file to change certain defaults. (among others)
A serious problem with this is that it gets more and more complicated to do updates of the components, and that you easily can overwrite your local changes to these files on each update.
I am thinking on how to allow storing settings to certain variables in a local vbs file, which is only loaded when it exists. Could it be possible?
what if this Sub is updated like this
Private Sub LoadCore
On Error Resume Next
If VPBuildVersion < 0 Or Err Then
Dim fso : Set fso = CreateObject("Scripting.FileSystemObject") : Err.Clear
ExecuteGlobal fso.OpenTextFile("core.vbs", 1).ReadAll : If Err Then MsgBox "Can't open ""core.vbs""" : Exit Sub
ExecuteGlobal fso.OpenTextFile("VPMKeys.vbs", 1).ReadAll : If Err Then MsgBox "Can't open ""vpmkeys.vbs""" : Exit Sub
ExecuteGlobal fso.OpenTextFile("LocalSettings.vbs", 1).ReadAll : If Err Then MsgBox "Can't open ""LocalSettings.vbs""" : Exit Sub
Else
ExecuteGlobal GetTextFile("core.vbs") : If Err Then MsgBox "Can't open ""core.vbs""" : Exit Sub
ExecuteGlobal GetTextFile("VPMKeys.vbs") : If Err Then MsgBox "Can't open ""vpmkeys.vbs""" : Exit Sub
ExecuteGlobal GetTextFile("LocalSettings.vbs") : If Err Then MsgBox "Can't open ""LocalSettings.vbs""" : Exit Sub
End If
End Sub
can I then have LocalSettings.vbs
' Changing the defaults from VPMKeys.vbs toggleKeyCoinDoor = False inverseKeyCoinDoor = True
I have tried this concept locally, but without success; my vbs experience is still far to bad ![]()
Anyone who knows how this could be solved?
Edited by jarr3, 14 February 2025 - 06:39 PM.



Top












are all trademarks of VPFORUMS.