News:

Welcome to our NEW forum! We invite you to sign up today
so it can grow to be a valuable resource to all Toolbox users!

Main Menu

Recursion?

Started by oblivion, June 16, 2026, 02:19:00 AM

Previous topic - Next topic

oblivion

So I was working on something today. Playing with Notes, in fact. Creating myself a set of notes.

And it's all being copy/pasted from somewhere else, with a bit of editing for tidiness and consistency, nothing terribly clever.

And, at some point, without really thinking, I invoked my Clipboard History action, documented elsewhere, to fetch something out of the clipboard that wasn't the current content... and of course the process of selecting the element I wanted, from the programmatically invoked Clipboard tab, also closed the Notes tab.

Normally, of course, this doesn't happen -- the Window: Assign Active command ensures that although the Toolbox's Clipboard tab has been invoked, the pasted text goes where it's been invoked from.

But when it was invoked from somewhere else inside Toolbox...

So I think I'd like to be able to check if I'm moving information around Toolbox instead of outside it, and where I was so I can get back there again. I don't think there's a function that'll let me do that -- or is there?

So I think I want to be able to go, in pseudocode:

if activewindow is toolbox
 get current tab
 invoke clipboard search / navigation code and get selection
 return to previously selected tab
 paste
else
 invoke clipboard search / navigation code and get selection
 return to active window
 paste


I think most of what's needed may already exist, but I don't think I can detect the currently open/active tab -- can I?



Paul (Lead Developer)

Quote from: oblivion on June 16, 2026, 02:19:00 AMI don't think I can detect the currently open/active tab
Just added a "curtab$" variable for the next update, so you can know. :)

oblivion