Search found 583 matches

by tiago
11 Mar 2011 23:45
Forum: Script Exchange
Topic: Extract Paths.
Replies: 6
Views: 892

Re: Extract Paths.

No prob. Trying to summarize, this is the idea: >> readfile to get the $ARRAYs out of text files, some paths will be like (name of the computer)DRIVE:\ $ (3 non-characters or something like that) \\(name of the computer)\Folder\Subfolder with space on name\File name.txt; it seems that the only solut...
by tiago
11 Mar 2011 21:25
Forum: Script Exchange
Topic: Extract Paths.
Replies: 6
Views: 892

Re: Extract Paths.

gettoken to extract info. Smart and reliable, it seems. Hats off.
by tiago
11 Mar 2011 21:15
Forum: Script Exchange
Topic: Extract Paths.
Replies: 6
Views: 892

Re: Extract Paths.

Scanning several documents at once and getting the $ARRAYs to work with your script is the remaining, crucial problem, Stefan. I'm trying to use readfile to accomplish the task of finding only valid paths like the aforementioned [your $ARRAY for example] and setting them up for me so I can use your ...
by tiago
11 Mar 2011 17:43
Forum: Tips & Tricks, Questions & Answers
Topic: Search results tab - help needed
Replies: 9
Views: 666

Re: Search results tab - help needed

I have the same issue, tried to fix it checking XYplorer documentation but it seems to be not possible avoiding that. As example I wrote a script and it was based on results + selpos + going to other location and back to search results, and the ever-changing content on results due to it reflecting c...
by tiago
11 Mar 2011 16:37
Forum: Script Exchange
Topic: Extract Paths.
Replies: 6
Views: 892

Extract Paths.

Hello people. I'm trying to readfile find pathnames for files, strip files out of paths, paths out of pathnames, base drives only out of pathnames, first parent folders out of pathnames so I can get reports out of documents readfile is able to reach. Tried some patterns, built myself a few but being...
by tiago
09 Mar 2011 17:03
Forum: Wishes
Topic: Randomness
Replies: 15
Views: 1320

Randomness

Hello. I'm trying to find if XY could random letters like AHK does, like in: This Should be RaNdoM > d,e,R,s,h,i,T,M,u,S,N,o,l,o,d,b,a,h I achieved something using "rand", but problem comes with the "formatlist" limitations, as it wipes out unique letters (A != a) since "passing "r", "c", or "n" imp...
by tiago
09 Mar 2011 17:01
Forum: Wishes
Topic: select items and filter wishes.
Replies: 5
Views: 547

Re: select items and filter wishes.

In fact you can have such report. Here goes a script, basically is a .txt file in disguise so if asked for a program to open it with, point notepad or any other you use to deal with text files. You can add it to a button, as an user defined command which allows assigning hotkeys to it or simply run ...
by tiago
25 Feb 2011 01:03
Forum: Bug Reports
Topic: Math
Replies: 3
Views: 347

Re: Math

Works fine, thnx!
by tiago
24 Feb 2011 21:42
Forum: Bug Reports
Topic: Math
Replies: 3
Views: 347

Re: Math

I believe I found a bug with the "COPYAS" script function Other little bug: copyas "*_copy.?", "<curpath>"; won't do the expected; instead, it will generate a file named "<curpath>*_copy.?" in the upper directory. To get the desired effect, currently we must add manually the final "\", like this: co...
by tiago
24 Feb 2011 20:08
Forum: Bug Reports
Topic: Math
Replies: 3
Views: 347

Math

How can I make XY get me the answer '4.854.589.897' for echo(4.854.589.899 - 2); , or even echo(4.854.589.899 - 0.000.000.002); (not a choice, if I'm asked) ? Currently it does 4.854 instead... It stands for a GB vs bytes calculation of difference I'm working with. Suggestion: 'gettoken' could allow...
by tiago
18 Feb 2011 21:36
Forum: Bug Reports
Topic: Scripts working only in step mode.
Replies: 10
Views: 702

Re: Scripts working only in step mode.

Since zer0 said about the race conditions and looking after help with an Xyplorer experienced friend we tried few variations with "focus" "wait" and another one I forgot looking after a way to slow down things a bit and get the job done but no go. Now I have a neat window telling the syntax is wrong...
by tiago
15 Feb 2011 18:18
Forum: Bug Reports
Topic: Scripts working only in step mode.
Replies: 10
Views: 702

Re: Scripts working only in step mode.

Yes, I was blindly sure that things should be like zer0 said ("ELSE must be the last block in the control structure."). So if ELSEIF must be stated, I have to end the structure with an ELSE { -do nothing- } like PeterH told, right? Under certain circumstances, IF/THEN/ELSE got me the same way ; ) Bu...
by tiago
14 Feb 2011 21:46
Forum: Bug Reports
Topic: Scripts working only in step mode.
Replies: 10
Views: 702

Scripts working only in step mode.

The following code should not be a problem: $temp = "TMP"; setting "ShowFolderSizeInList", 1; selfilter "$temp", d; $size = report("{size}", 1); $size = replace($size, "[Empty]", "0"); $size = replace($size, "-", "0"); IF (0 == $size) { delete 0, 0; end 1, "Temp folder is gone!"; } ELSE (0 != $size)...