Page 1 of 1

Quickly Navigate to Scripting Command Reference

Posted: 19 Aug 2019 15:46
by fishgod
While Scripting I can remember the comand-names, but constantly forget about the arguments and bitfields available.

I wanted to share my tiny little script that automates the process of opening a specific command in the help:

Code: Select all

"Script Help"
  //copied the list from scripting-commands help page (except for gpc, which needs to be changed to function as an alias)
  $cmds = "abs, ageclasses, asc, assert, attrstamp, backupto, beep, box, br, break, button, catalogexecute, catalogload, catalogreport, ceil, charview, chr, colorfilter, columnlayout, compare, confirm, continue, controlatpos, controlposition, copier, copy, copyas, copydata, copyitem, copytext, copyto, ctbicon, ctbname, ctbstate, datediff, datepicker, delete, dlog, download, echo, editconf, end, eval, exists, exit, extracttext, extratag, favs, filesequal, filesize, filetype, filter, flattenfolder, floor, focus, folderreport, foldersize, format, formatbytes, formatdate, formatlist, fresh, freshhere, get, getkey, getpathcomponent, gpc|getpathcomponent, getsectionlist, gettoken, gettokenindex, ghost, global, goto, hash, hashlist, hexdump, hextodec, highlight, html, id3tag, incr, input, inputfile, inputfolder, inputselect, internetflags, isset, isunicode, itematpos, lax, listfolder, listpane, load, loadlayout, loadsearch, loadsettings, loadtree, logon, makecoffee, md5, moveas, moveto, msg, new, now, obfuscate, open, openwith, paperfolder, pasteto, patchimage, perm, popupcontextmenu, popupmainmenu, popupmenu, popupnested, property, quickfileview, quicksearch, quote, rand, readfile, readonly, readonlyhere, readpv, readurl, readurlutf8, recase, refreshlist, regexmatches, regexreplace, releaseglobals, rename, renameitem, replace, replacelist, report, resolvepath, return, rotate, round, rtfm, run, runq, runret, savesettings, savethumb, searchtemplate, sel, selectitems, self, selfilter, seltab, set, setcolumns, seticons, setkey, setlayout, setting, settingp, shellopen, showhash, showintree, slog, sortby, sortbylist, sound, status, step, strlen, strpos, strrepeat, strreverse, sub, substr, swapnames, sync, syncselect, tab, tabset, tag, tagexport, tagitems, taglist, tagload, text, thumbscacherename, thumbsconf, timestamp, toolbar, trayballoon, trim, unset, unstep, update, urldecode, urlencode, utf8decode, utf8encode, wait, wipe, writefile, writepv, zip_add, zip_extract, zip_list2";
  $cmd = inputselect("Select Command", $cmds, ", ", 32 /*autoselect*/ +64 /*listdata has fields*/ +1024 /*focus filter box*/);
  rtfm 'idh_scripting_comref.htm#idh_sc_'.$cmd;
Of cause, this should be assigned to keboard-shortcut for quick access ;-)
With the filter-box and first item autoselected this is extremly elegant, as you just need to type the beginning of the command and hit enter as soon as the right command is selected.

Re: Quickly Navigate to Scripting Command Reference

Posted: 19 Aug 2019 15:51
by highend
viewtopic.php?f=7&t=9248

Doesn't need an update when new script commands are added...

Re: Quickly Navigate to Scripting Command Reference

Posted: 19 Aug 2019 16:12
by fishgod
I didn't knew something like this allready exists.
Your script is truly more advanced :appl: making my simple solution obsolete.