Attempting to make something that involves converting an INI-formatted file to a substitution list. The user can type in a short command to open sites or programs. An example of such a file (original one is much longer):
hpgbproductions wrote: ↑May 22nd, 2019, 5:07 pm
Eventually I get this which is an invalid Substitution:
In this case in the Substitute option isn't needed to escape those characters with a backslash. Theoretically you could renounce to them: Substitute="chrome":"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe","yt":"https:\\www.youtube.com\","y":"http:\\yurucamp.jp"
But the problem is that the later strings will replace even the already replaced strings. To avoid this, you have to use regular expression substitution. Replace the Substitute option with the following one: Substitute="^chrome$":"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe","^y$":"http:\\yurucamp.jp","^yt$":"https:\\www.youtube.com\" and add a RegExpSubstitute=1 option as well.
balala wrote: ↑May 22nd, 2019, 6:19 pm
In this case in the Substitute option isn't needed to escape those characters with a backslash. Theoretically you could renounce to them:
My main issue is that the Substitute string generated is invalid and rejected by the program. Testing with a hard-coded version has the same result.
Your suggested Substitute is also invalid for some reason.
Can't find any syntax issues like mismatched quotes.
(sorry for late reply, wasn't on forum)
[ShortcutList]
; Lines starting with ";" or "[" act as comments and are ignored
; No quotes should be added
; Codes that contain other codes at the start must be defined first eg: !ab before !a
; Websites should contain a slash at the back for more reliability
; Some services are available as both an application and a website
; You may wish to change the shortcuts as needed.
chrome=C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
yt=https:\\www.youtube.com\
y=http:\\yurucamp.jp