This has two levels!
1) As the title says: the command "wait" is missing in Help / Scripting Commands Reference.
To verify I looked in help-index: no help found. (Understandable in this situation.)
To verify further I searched for "wait" in help. Hello: 6 occurrences!
First occurrence in "Scripting Commands".
2) A double click leads to start of Scripting Commands. But no "wait" to see!
Now you can start scrolling (maybe per page) through this topic. More than 100 pages - depending from screen size. With good luck you happen to see one or the other marked occurrence of "wait"...
That cannot be true? "Help" finds some string and leads me to some chapter, and I have to visually search a 100 pages for 1 or 100 marked occurrences of that string!
The same for chapters "Scripting" and "Configuration Dialog" - at least 10th and 10th of pages "visually to scan" for highlighted strings. You need a good eye, good luck, and much time for that!
The main point: I call it "chapters": the smallest entities searched by find must be much much smaller. So that, for example, the explicit commands referencing the find string are reported, and not just the fact that over all those commands the string can be found, and I have to continue with "manual searching"!
This corresponds to the fact that XY help has a structured index of 2 levels, containing e.g. "Advanced Topics / Scripting Command Reference". To find a command you click this topic, and then on the first page you find a click-able list of commands. After having read one command you want to read another: you just want to click that command in list of topics, but no: you have to click "Scripting Command Reference" again, and there have to look for the wanted command...
So I'm convinced that the help index has to be structured for (at least) one more level.
And such a big and rather autonomous subject as "Scripting" might be split off to an extra help file. (OK: small parts as "Variables" should be doubled in both, then.)
And it should contain a short chapter like "Scripting Commands Summary" where every command is mentioned with a mini-description.
And optionally the commands should also be associated to classes, like:
"prog.-logic" (end, eval, step, if(!), else(!), while(!), break, ...)
"variable-handling" (global, isset, ...)
"string-handling" (substr, recase, format, ...)
"numeric" (ceil, incr, ...)
"terminal-IO" (msg, inputfolder, beep, status, html, ...)
"file-IO" (getkey, readfile, ...)
"filemgmt" (attrstamp, copyto, ...)
"XY-organization" (box, filter, savesettings, ...)
"appl" (open, openwith, run)
"clipboard" (copy, copytext)
Though I've learned that for some commands "classing" isn't so easy...
(As you see at "prog.-logic" above I think also commands like if, else, while, foreach belong here. Especially, as break & continue already are!)
(You see: I tried it. Can give an Excel file - but not on current state...)
The only help from "help search desperation" is the help .pdf! Here you explicitly can have a look for each occurrence of the searched string. But even one problem here: for some finds, the found location is not marked in the index. For others it is...
So: with the excursus to scripting this got much more than initially expected. But I'm going around this for some weeks - and in the most cases I'm searching help for scripting. And I thought it should be mentioned sometime - here the "missing wait" was just the trigger...
Help: no "wait" in "Scripting Commands Ref", & General Help
Forum rules
You might want to read this if you're looking for priority service
Please Include The Following Information
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).
Use Your Profile Or Signature
We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.
How To Attach Images
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
You might want to read this if you're looking for priority service
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).
We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
-
PeterH
- Posts: 2830
- Joined: 21 Nov 2005 20:39
- Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%
-
serendipity
- Posts: 3360
- Joined: 07 May 2007 18:14
- Location: NJ/NY
Re: Help: no "wait" in "Scripting Commands Ref", & General H
AFAIK, "wait" command has always been an undocumented command. Don himself has mentioned this several times. BTW, sendkeys is another one.
-
PeterH
- Posts: 2830
- Joined: 21 Nov 2005 20:39
- Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%
Re: Help: no "wait" in "Scripting Commands Ref", & General H
Oh! What should I say?serendipity wrote:AFAIK, "wait" command has always been an undocumented command. Don himself has mentioned this several times. BTW, sendkeys is another one.
You are interested in some script. Find a command, want to find more about it, and sure: look in Help. But don't find it in there...
OK - it might have been documented in help, that it's an undocumented command?
To be serious, from this position I'd say, this bug is that there are undocumented commands. I'm afraid, at the end this must lead to problems.
(Though I've used it in another version of "Status bar - rolling text" myself. But must have forgotten that it's undocumented...)
-
admin
- Site Admin
- Posts: 67330
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Help: no "wait" in "Scripting Commands Ref", & General H
Yes, wait is undocumented.
Ctrl+F will open a standard search dialog on the pages in HTML help.
Ctrl+F will open a standard search dialog on the pages in HTML help.
FAQ | XY News RSS | XY X
-
PeterH
- Posts: 2830
- Joined: 21 Nov 2005 20:39
- Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%
Re: Help: no "wait" in "Scripting Commands Ref", & General H
It seems to me that undocumented commands don't make sense, if they are used in public scripts.admin wrote:Yes, wait is undocumented.
Ctrl+F will open a standard search dialog on the pages in HTML help.
People will always have problems with that - and I think those that don't complain are angry, though, and will build up a more negative image.
My problem with wait: I know I have to specify milliseconds. But what's the smallest resolution? It seems it makes only sense to specify multiples of 10? (I see no difference between 0, 1, 2, 5 or 10. But 20 seems longer...)
Searching in help: maybe that's my problem: nothing happens when I press Ctrl+f.
To search for "wait" I click the "Find"-tab in the left "pane", enter "wait" & Enter, and double click e.g. "Scripting Commands". Then, to find with Ctrl-f, I must close the left pane by (German) "Ausblenden", as Ctrl-f isn't honored as long as the left pane is shown! Then I can Ctrl-f, "wait", Enter, and search for wait inside of the current chapter! Now I know why I never found that... (Fine Windows...)
(Or did I miss something else?)
OK: this helps a bit!
Nevertheless I'm convinced that XY help could use some restructuring.
And splitting off of scripting to a separate help file could help a lot, and be not so very complex.
-
Stefan
- Posts: 1360
- Joined: 18 Nov 2008 21:47
- Location: Europe
Re: Help: no "wait" in "Scripting Commands Ref", & General H
Of course you don't have to "close the left pane"!
Just click in the right pane one time before pressing CTRL+F so the right pane gets the focus.
But that's common with all apps and window dialogs.
Just click in the right pane one time before pressing CTRL+F so the right pane gets the focus.
But that's common with all apps and window dialogs.
-
Stefan
- Posts: 1360
- Joined: 18 Nov 2008 21:47
- Location: Europe
Re: Help: no "wait" in "Scripting Commands Ref", & General H
But talking about help...
maybe it's time to ask to have splitting up the "Scripting Commands Reference"
to one page for each single command?
Would make it more easy to jump from command to command
and we could open the right command page while having
the cursor pointing on an keyword in an editor.
Of course only if it not to much work to maintenance the chm?
Don?
maybe it's time to ask to have splitting up the "Scripting Commands Reference"
to one page for each single command?
Would make it more easy to jump from command to command
and we could open the right command page while having
the cursor pointing on an keyword in an editor.
Of course only if it not to much work to maintenance the chm?
Don?
-
admin
- Site Admin
- Posts: 67330
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Help: no "wait" in "Scripting Commands Ref", & General H
Bingo!Stefan wrote:Of course only if it not to much work to maintenance the chm?
FAQ | XY News RSS | XY X
-
PeterH
- Posts: 2830
- Joined: 21 Nov 2005 20:39
- Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%
Re: Help: no "wait" in "Scripting Commands Ref", & General H
Ooouh!Stefan wrote:Of course you don't have to "close the left pane"!
Just click in the right pane one time before pressing CTRL+F so the right pane gets the focus.
But that's common with all apps and window dialogs.
The state of pane-activation, that is hardly to see somehow, is essential for the ability to make a find. Though the find, when done, is implicitly related to the right pane...
For me an example of a "very good and intuitive" user interface!
(Please don't take this as a model...)
For me this doesn't make sense, and is hardly to notice. Either you know or you have bad luck.
This is just the bigger part of my initial post.Stefan wrote:But talking about help...
maybe it's time to ask to have splitting up the "Scripting Commands Reference"
to one page for each single command?
Would make it more easy to jump from command to command
and we could open the right command page while having
the cursor pointing on an keyword in an editor.
Of course only if it not to much work to maintenance the chm?
Don?
No, I didn't like writing documentation, too. So there is a bit of understanding...admin wrote:Bingo!Stefan wrote:Of course only if it not to much work to maintenance the chm?
...but only documentation can make a product really good!
And now I'm in the position of the user, being in need of the documentation!!
Just now I happened to have a look in the .pdf file for XY V7.90.50. And, to my big surprise, the more structured breakdown Stefan and I asked for existed!! Even one more logical level than asked for, for example:
Scripting Commands Reference / assert / Syntax
OK: with todays first level it could be with 3 levels:
Advanced Topics / Scripting Commands Reference / assert
and it would be much better usable than today!
(I "found out" that PDF-XChange Viewer allows the user to set/add bookmarks in a file, so for test I added some bookmarks below Scripting Commands Reference for some commands: it looks very good! But I don't want to do that for every new version...)
And OK again: I don't know about the restrictions for creating Help and PDF from one source. If this is the reason for only having to levels of bookmark, I still think a split off of Scripting into a separate file, pushing up all bookmarks in Help by one level, would help very much - and would be a manageable piece of work: split one file into 2, (with "Variables" in both,) and add the new level of bookmarks.
I'm convinced this would improve usability of help a lot.
I think I'm interested enough in such a change, that I would try to help on it. But I'm afraid I lack tools and knowledge for that job...
...but if you think I could do with my "restricted resources" I would try.
XYplorer Beta Club