Created Folder always selected

Everytime I must manualy deselect a new created folder if I want as next do select (per button) all *.tif files or *.png files or *.gif files... or *.gif and *.jpg files
I will copy the selected files to the new created folder per drag and drop but the folder are selected too and this will not work.
Adding a DESELECT ALL before SELECT *.xxx to the buttons is no sollution - this will deselect *.jpg if I want select *.tif additional

I hope You can understand my bad english...

Mani

[quote="Mani"]Everytime I must manualy deselect a new created folder if I want as next do select (per button) all *.tif files or *.png files or *.gif files... or *.gif and *.jpg files
I will copy the selected files to the new created folder per drag and drop but the folder are selected too and this will not work.
Adding a DESELECT ALL before SELECT *.xxx to the buttons is no sollution - this will deselect *.jpg if I want select *.tif additional

I hope You can understand my bad english...

Mani[/quote]

When you create a new directory, the directory will not be selected automatically! Please explain your need clear. Can you type Finglish? If yes, maybe I can help you.

Regards

[/quote]

When you create a new directory, the directory will not be selected automatically! Please explain your need clear. Can you type Finglish? If yes, maybe I can help you.

Regards[/quote]

Ist this selected or not?
[/img]

I don't know any DOpus option for solving this problem, but if you use Power mode, this problem will be solved automatically :smiley: (see my attached gif anim). If you want to use DOpus under other modes, you could change your Creat Folder code or define a new button/menu with following code:

@Set strDirName={RS|Enter your Dir name} CreateFolder {s}{$strDirName} Select DESELECT {$strDirName}

When you create your directories with this button/menu, the problem will not be appeared under other modes too.

Regards

Thank You very much for help
(Yes, I don't use the Power Mode)

@Set strDirName={RS|Enter your Dir name} CreateFolder {s}{$strDirName} Select DESELECT {$strDirName}

will not deselect but:

@Set strDirName={RS|Enter your Dir name} CreateFolder {s}{$strDirName} Select {$strDirName} Select DESELECT {$strDirName}

will do but... if You tipe as Dirname Pict Files two dirs wil be created - Pict and Files ...

The solution is to first select the item (curiously if this is already selected..) then deselect them

My new Button is:

CreateFolder NAME="PICT Files" Select "PICT Files" Select DESELECT "PICT Files"

and works great

My Question is: Why DOpus don't recognise the selected item after creation? Is this a little bug?

Thank You very much for Your great effords searcher123 - how to make a gif-animation like the one You have included?

sincerely
Mani

I found that my previous code work occasionally :exclamation: I tested many other codes too, but no one of them was permanent under other modes. For example, the following code sometimes worked under Detail mode, another time not worked :exclamation:

Set CHECKBOXMODE=On Select TOCHECKS CreateFolder {s}{RS|Enter your Dir name} Select FROMCHECKS

I think Select have a bug under other modes, except Power mode.

I just can suggest Power mode (See my gif anim).

Regards

P.S: Oh my GOD, why my previous letter Gif anim is moiety :question: take it in full in a ZIP file.
GIF Anim.zip (248 KB)

This button will create the folder using the DOS mkdir command to avoid all of the selection stuff.

It has some drawbacks, though. You won't get get error messages or be able to retry and it won't use UAC on Visa.

See the sticky in the Buttons forum if you don't know what to do with the XML.

<?xml version="1.0"?> <button backcol="none" display="both" textcol="none"> <label>Create Folder (don&apos;t select)</label> <icon1>#default:makedir</icon1> <function type="batch"> <instruction>@runmode hide</instruction> <instruction>@Set folderName={RS|Enter the name of the folder you want to create.|New Folder}</instruction> <instruction>mkdir &quot;{$folderName}&quot;</instruction> </function> </button>

This problem will be solved if you put a @nofilenamequoting at the beginning of your code and use a " on the around of CreateFolder arg, i.e.

@nofilenamequoting @Set strDirName={RS|Enter your Dir name} CreateFolder "{s}{$strDirName}" Select {$strDirName} Select DESELECT {$strDirName}

I think Select have more than a little bug :laughing:

Capturing the screen as an AVI movie, then converting it to a GIF Anim by Jasc Animation Shop Pro :wink:

Best Regards

The select thing is because the file display hasn't seen the newly created directory by the time the (first) Select command is run, so there's nothing to deselect yet.