new("file.txt");
but wish to add the "r" flag to it. I don't understand why simply adding this breaks the code.I've tried many variations but can't understand how to use it. There are no explanations in the "New" section of the Help file on it's usage.
My current script for this button is this:
new("New INI File.ini", "type=file", , "r");
Do I need the
"type=file",
term?I noticed there are some code snippets with two commas:
new(, , "<curitem>", "r");
are these placeholders for unused terms?Is the semi-colon required at the end of this script/all scripts?
Also, this is massively confusing when starting out:
new(name, [type=file|dir|link|symlink|hardlink|junction], [source], [flags])
It made me think that these terms needed to be in square brackets, but in fact they have to be in quotes! Why in a help file would they be shown this way? Makes no sense. I only figured it out by looking at examples further down and trial and error, not really how it should be done.
I'm also confused why this button works, without the
"r"
, but when I add the same code to the Menu button on the Breadcrumb bar, it doen't work. Does this menu require more code in order to operate as a toolbar button would?Thanks for any help you can offer.
To highend - This is what I meant previously with Help files, they can be useful when you know how to script, but for complete beginners, they are never a useful learning tool. Hence why I didn't use it at the start. Though I have to admit, it is very comprehensive and has at least got me started, just!
As with Rainmeter, I learnt more by using others code than the manual/help files. But scripting is way different from the simple code in Rainmeter! For a start, there are many different styles it seems, but maybe that's my lack of knowledge giving me that impression?