Well, I've been trying to get this to work since you posted it, but I have absolutely no idea how to use it or the Help file!
I came back to the start:
Code: Select all
// No root drive tab exists
if ($tabIndex == 0) {
tab("new", C:);
// Root drive exists as tab
} else {
seltab $tabIndex;
}
Which opened a new C: tab but didn't switch to it. Then I started fiddling with the code to try and get it to switch to the new tab if already open. But I just can't make sense of that help file! It has no real structure unless you already know what you're doing. Sorry, but it doesn't explain very well how to get from one point to the next and with zero other references that leaves this forum the only other method of help!
Again, I can see certain things like
caption, which I tried to catch to detect the open tab. So if a tab named C: existed, then select it instead of opening a new tab. Nothing I tried worked and just frustrated me more due to the lack of help in the help file, that I am back here!
For a start, different symbols:
$a "" % $ : ; <> {} () , do different things, where is all this explained the help file?
From what I can tell:
<> = internal variable
%% = system variable
, = separator
: = indicates button icon?
# = indicates toolbar icon?
No idea what the others do!
And for some reason, the code above which opened a new C: tab on first run, now no longer does so?