I am currently a registered user of Dopus 10 but I have downloaded version 11 trail for review.
With the new scripting interface in 11 is it possible to automatically show the preview pane when a certain file type eg. adobe pdf is selected in a lister pane and if possible, could someone please provide an example.
I think you could do this in a script. If you are registered please link your account for requests such as this.
To write the script:
You could use the onclick command to trigger the script. In the script check if the file extension of the selected file matches what you are after. If it matches you can use the dopus SET command to turn the viewpane on and off like so.
Note the OnClick event is only fired when clicking a button (or pressing a hotkey). There's currently no script event that's triggered by simply selecting a file.
Thanks for the help. I currently make use of a utility which I can't live without called funmouse (http://www.funmouse.org) that allows me to open the viewer pane through its hotkey by simply touching a side of the screen or performing a mouse gesture. I also use it to open a dual pane or to switch panes.
Anyway, I just thought it could be nice if I could open the viewer automatically if a certain file type was selected.
It would be interesting. I find I'm opening and closing the viewpane often, it would be cool if some automation could help. I would want it tied to an enable/disable button, as I suspect it could become annoying.
The reason there is not a OnFileSelection event is of performance, the event would be thrown a lot (it was mentioned in an earlier thread). There is a OnAfterFolderChange event, you could show/hide the viewpane if the folder contained a specific file type. I'm not sure if that would be helpful though.