Hello, in trying to work out a script for abr, I'm finding that if I execute the following sort of command via objCmd.RunCommand()
Go "C:\temp" NEWTAB OPENINDUAL
While the source lister is in single display mode... nothing happens.
Running the same command ~manually via the CLI in a single display lister turns on dual-display and reads the folder. It also works fine from within the script if the source lister is already in dual-display mode...
Am I missing something obvious? At the very beginning of my function I'm doing:
Set objCmd = DOpus.CreateCommand
objCmd.SetSourceTab(beforeFolderChangeData.tab
...just to make sure the command would be executing within the intended lister scope... and again, as I mentioned it works as expected if I'm already in dual-display.
Can provide a sample script if you think it's needed.
My working script is big... I'll dumb it down as an example. Thanks for the sample button confirmation. What I'm working with is an event driven script addin.
Ah, it seems specific to some events for some reason... doing something similar with OnAfterFolderChange works fine, just as with your OnClickData example... But trying with OnBeforeFolderChange doesn't work. Well... it works when the lister is already in dual-display like I said, but for some reason not in single-display mode.
Maybe there's a good reason for that which I'm just looking past, but here's a sample script: OnBeforeFolderChange_vbtest.osp (1.37 KB)
...the scripts wants you to open a folder (C:\temp) in order to open another (C:\temp2) in a dual-display. In single-display mode, nothing happens. If it's already in dual-display mode... the newtab gets opened.