mirror of
https://github.com/moudey/Shell.git
synced 2026-11-16 09:04:25 +08:00
Add files via upload
This commit is contained in:
1 parent
ceadf4b146
commit
dce948f181
13 files changed
+852
-282
No files matched your search
+54
-15
@@ -1,20 +1,59 @@
|
||||
@page
|
||||
@{
|
||||
ViewData["title"] = "APP - Functions";
|
||||
ViewData["page-support"] = "Functions \\ APP";
|
||||
}
|
||||
<h5>APP</h5>
|
||||
<div class="notification is-danger is-light">
|
||||
Documentation under construction.
|
||||
</div>
|
||||
<pre>
|
||||
app.about
|
||||
app.cfg
|
||||
app.directory(dir)
|
||||
app.dll
|
||||
app.exe
|
||||
app.is64
|
||||
app.name
|
||||
app.reload
|
||||
app.unload
|
||||
app.version(var)
|
||||
</pre>
|
||||
<br>
|
||||
<p>The namespace of the application contains file paths, version and some details.</p>
|
||||
<br>
|
||||
<p>
|
||||
<h5>app.directory (app.dir)</h5>
|
||||
Returns the path of <b>Shell</b> directory.
|
||||
</p>
|
||||
<br>
|
||||
<p>
|
||||
<h5>app.cfg</h5>
|
||||
Returns the path of the configuration file "shell.shl".
|
||||
</p>
|
||||
<br>
|
||||
<p>
|
||||
<h5>app.dll</h5>
|
||||
Returns the path of "shell.dll".
|
||||
</p>
|
||||
<br>
|
||||
<p>
|
||||
<h5>app.exe</h5>
|
||||
Returns the path of "shell.exe".
|
||||
</p>
|
||||
<br>
|
||||
<p>
|
||||
<h5>app.name</h5>
|
||||
Returns application name.
|
||||
</p>
|
||||
<br>
|
||||
<p>
|
||||
<h5>app.version (app.ver)</h5>
|
||||
Revert <b>Shell</b> version.
|
||||
</p>
|
||||
<br>
|
||||
<p>
|
||||
<h5>app.is64</h5>
|
||||
Returns the architecture of the application.
|
||||
</p>
|
||||
<br>
|
||||
<p>
|
||||
<h5>app.about</h5>
|
||||
Returns <b>Shell</b> information.
|
||||
</p>
|
||||
<br>
|
||||
<p>
|
||||
<h5>app.reload</h5>
|
||||
Reload the configuration file.
|
||||
</p>
|
||||
<br>
|
||||
<p>
|
||||
<h5>app.unload</h5>
|
||||
Unload the configuration file.
|
||||
</p>
|
||||
<br>
|
||||
@@ -1,11 +1,12 @@
|
||||
@page
|
||||
@{
|
||||
ViewData["title"] = "COLOR - Functions";
|
||||
ViewData["page-support"] = "Functions \\ COLOR";
|
||||
}
|
||||
<h5>COLOR</h5>
|
||||
<div class="notification is-danger is-light">
|
||||
Documentation under construction.
|
||||
</div>
|
||||
<br>
|
||||
<p>Color namespace contains predefined colors</p>
|
||||
<br>
|
||||
<pre>
|
||||
color.default
|
||||
color.accent
|
||||
|
||||
+116
-22
@@ -3,11 +3,11 @@
|
||||
ViewData["page-support"] = "Functions \\ IO";
|
||||
}
|
||||
<h5>IO</h5>
|
||||
<div class="notification is-danger is-light">
|
||||
Documentation under construction.
|
||||
</div>
|
||||
<pre>
|
||||
io.attribute.archive
|
||||
<br>
|
||||
<section class="my-5">
|
||||
<h5>io.attribute enumerations.</h5>
|
||||
<p>Syntax</p>
|
||||
<pre><code>io.attribute.archive
|
||||
io.attribute.compressed
|
||||
io.attribute.device
|
||||
io.attribute.directory
|
||||
@@ -20,21 +20,115 @@ io.attribute.readonly
|
||||
io.attribute.sparsefile
|
||||
io.attribute.system
|
||||
io.attribute.temporary
|
||||
io.attribute.virtual
|
||||
io.attributes
|
||||
io.copy
|
||||
io.delete
|
||||
io.directory
|
||||
io.dir.make
|
||||
io.file.append
|
||||
io.file.create
|
||||
io.file.make
|
||||
io.file.read
|
||||
io.file.size
|
||||
io.file.write
|
||||
io.move
|
||||
io.rename
|
||||
</pre>
|
||||
io.attribute.virtual</code></pre>
|
||||
</section>
|
||||
<section class="my-5">
|
||||
<h5>io.attributes</h5>
|
||||
<p>Retrieves file system attributes for a specified path.</p>
|
||||
<p>Syntax</p>
|
||||
<code>io.attributes(path)</code><br><br>
|
||||
<p>attribute verification</p>
|
||||
<pre><code>// check if path is hidden
|
||||
io.attribute.hidden(path)
|
||||
|
||||
// check if path is directory
|
||||
io.attribute.directory(path)
|
||||
|
||||
var { atrr = io.attributes(path) }
|
||||
|
||||
// check if attr is hidden
|
||||
io.attribute.hidden(atrr)
|
||||
|
||||
// check if attr is directory
|
||||
io.attribute.directory(atrr)</code></pre>
|
||||
</section>
|
||||
<section class="my-5">
|
||||
<h5>io.copy</h5>
|
||||
<p>Copies an existing file to a new file.</p>
|
||||
<p>Syntax</p>
|
||||
<code>io.copy(pathFrom, pathTo)</code>
|
||||
</section>
|
||||
<section class="my-5">
|
||||
<h5>io.move</h5>
|
||||
<p>Moves an existing file or a directory, including its children..</p>
|
||||
<p>Syntax</p>
|
||||
<code>io.move(oldPath, newPath)</code>
|
||||
</section>
|
||||
<section class="my-5">
|
||||
<h5>io.rename</h5>
|
||||
<p>Rename a file or directory.</p>
|
||||
<p>Syntax</p>
|
||||
<code>io.rename(oldName, newName)</code>
|
||||
</section>
|
||||
<section class="my-5">
|
||||
<h5>io.delete</h5>
|
||||
<p>Deletes an existing path.</p>
|
||||
<p>Syntax</p>
|
||||
<code>io.delete(path)</code>
|
||||
</section>
|
||||
<section class="my-5">
|
||||
<h5>io.directory.create (io.dir.create)</h5>
|
||||
<p>Create new directory.</p>
|
||||
<p>Syntax</p>
|
||||
<code>io.directory.create(path)</code>
|
||||
</section>
|
||||
<section class="my-5">
|
||||
<h5>io.directory.exists (io.dir.exists)</h5>
|
||||
<p>Check if one or more directories exists.</p>
|
||||
<p>Syntax</p>
|
||||
<code>io.directory.exists(path)</code>
|
||||
<br>
|
||||
<code>io.directory.exists(path1, path2, path3, ...)</code>
|
||||
</section>
|
||||
<section class="my-5">
|
||||
<h5>io.directory.empty (io.dir.empty)</h5>
|
||||
<p>Check if one or more directory is empty.</p>
|
||||
<p>Syntax</p>
|
||||
<code>io.directory.empty(path)</code>
|
||||
<br>
|
||||
<code>io.directory.empty(path1, path2, path3, ...)</code>
|
||||
</section>
|
||||
<h5 class="my-5">File functions.</h5>
|
||||
<section class="my-5">
|
||||
<h5>io.file.size</h5>
|
||||
<p>Retrieves the size of the specified file, in bytes.</p>
|
||||
<p>Syntax</p>
|
||||
<code>io.file.size(path)</code>
|
||||
</section>
|
||||
<section class="my-5">
|
||||
<h5>io.file.exists</h5>
|
||||
<p>Check if one or more files exists.</p>
|
||||
<p>Syntax</p>
|
||||
<code>io.file.exists(path)</code>
|
||||
<br>
|
||||
<code>io.file.exists(path1, path2, path3, ...)</code>
|
||||
</section>
|
||||
<section class="my-5">
|
||||
<h5>io.file.read</h5>
|
||||
<p>Read file contents as text with character count option.</p>
|
||||
<p>Syntax</p>
|
||||
<code>io.file.read(path)</code><br>
|
||||
<code>io.file.read(path, 12)</code>
|
||||
</section>
|
||||
<section class="my-5">
|
||||
<h5>io.file.create</h5>
|
||||
<p>Create new file with content option.</p>
|
||||
<p>Syntax</p>
|
||||
<code>io.file.create(path)</code><br>
|
||||
<code>io.file.create(path, "Hello World!")</code>
|
||||
</section>
|
||||
<section class="my-5">
|
||||
<h5>io.file.write</h5>
|
||||
<p>Writing to a file with new content.</p>
|
||||
<p>Syntax</p>
|
||||
<code>io.file.write(path, "Hello World!")</code>
|
||||
</section>
|
||||
<section class="my-5">
|
||||
<h5>io.file.append</h5>
|
||||
<p>Appends text to an existing file, or to a new file if the specified file does not exist.</p>
|
||||
<p>Syntax</p>
|
||||
<code>io.file.append(path, "Hello ")</code>
|
||||
<br>
|
||||
<code>io.file.append(path, "World!")</code>
|
||||
</section>
|
||||
|
||||
@*If the help function is passed without an argument, then the interactive help utility starts up on the console.
|
||||
The help function has the following syntax:*@
|
||||
+44
-15
@@ -1,20 +1,49 @@
|
||||
@page
|
||||
@{
|
||||
ViewData["page-support"] = "Functions \\ APP";
|
||||
ViewData["title"] = "Functions";
|
||||
ViewData["page-support"] = "Functions \\ Image";
|
||||
}
|
||||
<h5>APP</h5>
|
||||
<div class="notification is-danger is-light">
|
||||
Documentation under construction.
|
||||
</div>
|
||||
<h5>IMAGE (DRAW)</h5>
|
||||
<p>The image namespace contains functions that return an icon and are only assigned to the <code>image</code> property</p>
|
||||
<section class="my-5">
|
||||
<h5>image.glyph</h5>
|
||||
<p>Return font icon with color and size option.</p>
|
||||
<p>Syntax</p>
|
||||
<code>image.glyph(0xE00B)</code><br>
|
||||
<code>image.glyph("\uE00B")</code><br>
|
||||
<code>image.glyph("\xE00B")</code><br>
|
||||
<br>
|
||||
<code>image.glyph(0xE00B, #0000ff)</code><br>
|
||||
<code>image.glyph(0xE00B, #0000ff, 10)</code><br>
|
||||
<code>image.glyph(0xE00B, #0000ff, 12, "Segoe MDL2 Assets")</code><br>
|
||||
</section>
|
||||
<section class="my-5">
|
||||
<h5>image.icon</h5>
|
||||
<p>Returns an icon through a path or through resources.</p>
|
||||
<p>Syntax</p>
|
||||
<code>image.icon(path)</code><br>
|
||||
<code>image.icon(path, index)</code><br>
|
||||
<code>image.icon(path, -id)</code><br>
|
||||
<br>
|
||||
<code>image(path)</code><br>
|
||||
<code>image(path, index)</code><br>
|
||||
<code>image(path, -id)</code><br>
|
||||
</section>
|
||||
<section class="my-5">
|
||||
<h5>image.rect</h5>
|
||||
<p>Returns a colored rectangle icon of an optional size.</p>
|
||||
<p>Syntax</p>
|
||||
<code>image.rect(#0000ff)</code><br>
|
||||
<code>image.rect(#0000ff, 10)</code><br>
|
||||
</section>
|
||||
|
||||
@*
|
||||
<pre>
|
||||
app.about
|
||||
app.cfg
|
||||
app.directory(dir)
|
||||
app.dll
|
||||
app.exe
|
||||
app.is64
|
||||
app.name
|
||||
app.reload
|
||||
app.unload
|
||||
app.version(ver)
|
||||
image.res
|
||||
image.str
|
||||
image.symbol
|
||||
draw.str
|
||||
draw.symbol
|
||||
draw.circle
|
||||
</pre>
|
||||
*@
|
||||
+129
-78
File diff suppressed because it is too large.
Load diff
@@ -3,12 +3,10 @@
|
||||
ViewData["page-support"] = "Functions \\ KEY";
|
||||
}
|
||||
<h5>KEY</h5>
|
||||
<div class="notification is-danger is-light">
|
||||
Documentation under construction.
|
||||
</div>
|
||||
<pre>
|
||||
key
|
||||
key.alt
|
||||
<p>Keyboard functions</p>
|
||||
<section class="my-5">
|
||||
<h5>keys enumerations</h5>
|
||||
<pre><code>key.alt
|
||||
key.apps
|
||||
key.back
|
||||
key.cancel
|
||||
@@ -61,6 +59,28 @@ key.snapshot
|
||||
key.space
|
||||
key.tab
|
||||
key.up
|
||||
key.win
|
||||
</pre>
|
||||
key.win</code></pre>
|
||||
</section>
|
||||
|
||||
<section class="my-5">
|
||||
<h5>key</h5>
|
||||
<p>Syntax</p>
|
||||
<pre>
|
||||
<code>// check if SHIFT key is pressed
|
||||
key(key.shift)
|
||||
|
||||
// or
|
||||
key == key.shift
|
||||
|
||||
// or
|
||||
key.shift()
|
||||
|
||||
// check if tow keys (SHIFT+CTRL+X) is pressed
|
||||
key(key.shift, key.control)
|
||||
|
||||
// check if keys (SHIFT+CTRL+X) is pressed
|
||||
key(key.shift, key.control, 87)</code>
|
||||
</pre>
|
||||
</section>
|
||||
|
||||
|
||||
@@ -1,11 +1,9 @@
|
||||
@page
|
||||
@{
|
||||
ViewData["title"] = "MSG - Functions";
|
||||
ViewData["page-support"] = "Functions \\ MSG";
|
||||
}
|
||||
<h4>MSG</h4>
|
||||
<div class="notification is-danger is-light">
|
||||
Documentation under construction.
|
||||
</div>
|
||||
<p>Displays a modal dialog box that contains a system icon, a set of buttons, and a brief application-specific message, such as status or error information. The message box returns an integer value that indicates which button the user clicked.</p>
|
||||
|
||||
<h5>Syntax</h5>
|
||||
|
||||
+175
-43
File diff suppressed because it is too large.
Load diff
+31
-17
@@ -3,21 +3,35 @@
|
||||
ViewData["page-support"] = "Functions \\ REG";
|
||||
}
|
||||
<h5>REG</h5>
|
||||
<div class="notification is-danger is-light">
|
||||
@*<div class="notification is-danger is-light">
|
||||
Documentation under construction.
|
||||
</div>
|
||||
<pre>
|
||||
reg(...)
|
||||
reg.cr
|
||||
reg.cu
|
||||
reg.lm
|
||||
reg.u
|
||||
reg.cc
|
||||
reg.none
|
||||
reg.sz
|
||||
reg.expand
|
||||
reg.binary
|
||||
reg.multi
|
||||
reg.dword
|
||||
reg.qword
|
||||
</pre>
|
||||
</div>*@
|
||||
<p>Registary functions</p>
|
||||
<br>
|
||||
<section class="my-5">
|
||||
<h5>Registry hive enum</h5>
|
||||
<p>Syntax</p>
|
||||
<pre><code>reg.cr // HKEY_CLASSES_ROOT
|
||||
reg.cu // HKEY_CURRENT_USER
|
||||
reg.lm // HKEY_LOCAL_MACHINE
|
||||
reg.u // HKEY_USERS
|
||||
reg.cc // HKEY_CURRENT_CONFIG</code></pre>
|
||||
</section>
|
||||
<section class="my-5">
|
||||
<h5>Registry value kind Enum</h5>
|
||||
<p>Syntax</p>
|
||||
<pre><code>reg.none // No data type
|
||||
reg.sz // REG_SZ
|
||||
reg.expand // REG_EXPAND_SZ
|
||||
reg.binary // REG_BINARY
|
||||
reg.multi // REG_MULTI_SZ
|
||||
reg.dword // REG_DWORD
|
||||
reg.qword // REG_QWORD</code></pre>
|
||||
</section>
|
||||
|
||||
<section class="my-5">
|
||||
<h5>The function of reading from the Registry.</h5>
|
||||
<p>Syntax</p>
|
||||
<code>reg(reg.lm, 'SOFTWARE\Microsoft\Windows NT\CurrentVersion','ProductName')</code><br><br>
|
||||
<code>reg(reg.cr, 'txtfile\DefaultIcon')</code>
|
||||
</section>
|
||||
@@ -6,9 +6,6 @@
|
||||
<h5>SEL</h5>
|
||||
<p>Has many functions to handle selected file system objects.</p>
|
||||
@* has the following syntax:*@
|
||||
<div class="notification is-danger is-light">
|
||||
Documentation under construction.
|
||||
</div>
|
||||
<br>
|
||||
<p>
|
||||
<h5>sel(quote=<code>false</code>, separator=<code>' '</code>)</h5>
|
||||
@@ -199,7 +196,7 @@
|
||||
<p>
|
||||
<h5>sel.hidden(index=<code>0</code>)</h5>
|
||||
Returns whether the selected item by referring to the index number is hidden.
|
||||
</p>
|
||||
</p>@*
|
||||
<br>
|
||||
<p>
|
||||
<h5>sel.type</h5>
|
||||
@@ -232,7 +229,7 @@ mode.single
|
||||
mode.multiple
|
||||
mode.multisingle
|
||||
mode.multiunique</code></pre>
|
||||
</p>
|
||||
</p>*@
|
||||
@*
|
||||
<br>
|
||||
<p>
|
||||
|
||||
+176
-35
File diff suppressed because it is too large.
Load diff
+75
-29
@@ -3,18 +3,65 @@
|
||||
ViewData["page-support"] = "Functions \\ SYS";
|
||||
}
|
||||
<h5>SYS (SYSTEM)</h5>
|
||||
<div class="notification is-danger is-light">
|
||||
Documentation under construction.
|
||||
</div>
|
||||
<pre>
|
||||
sys.appdata
|
||||
sys.beep
|
||||
sys.bin
|
||||
sys.bin32
|
||||
sys.bin64
|
||||
sys.copy
|
||||
sys.dark
|
||||
sys.datetime
|
||||
<section class="my-5">
|
||||
<h5>sys.name</h5>
|
||||
<p>Returns Windows name.</p>
|
||||
<p>Syntax</p>
|
||||
<code>sys.name</code>
|
||||
</section>
|
||||
<section class="my-5">
|
||||
<h5>sys.name</h5>
|
||||
<p>Returns Windows name.</p>
|
||||
<p>Syntax</p>
|
||||
<code>sys.name</code>
|
||||
</section>
|
||||
<section class="my-5">
|
||||
<h5>sys.type</h5>
|
||||
<p>Returns system architecture.</p>
|
||||
<p>Syntax</p>
|
||||
<code>sys.type</code>
|
||||
</section>
|
||||
<section class="my-5">
|
||||
<h5>sys.type</h5>
|
||||
<p>Returns system architecture.</p>
|
||||
<p>Syntax</p>
|
||||
<code>sys.type == 64</code><br>
|
||||
<code>sys.type == 32</code>
|
||||
</section>
|
||||
<section class="my-5">
|
||||
<h5>sys.is64</h5>
|
||||
<p>Returns if system architecture is x64.</p>
|
||||
<p>Syntax</p>
|
||||
<code>sys.is64</code>
|
||||
</section>
|
||||
<section class="my-5">
|
||||
<h5>sys.dark</h5>
|
||||
<p>Check if dark mode is enabled.</p>
|
||||
<p>Syntax</p>
|
||||
<code>sys.dark</code>
|
||||
</section>
|
||||
<section class="my-5">
|
||||
<h5>sys.var</h5>
|
||||
<p>Retrieves the value of an environment variable.</p>
|
||||
<p>Syntax</p>
|
||||
<code>sys.var('WINDIR')</code>
|
||||
</section>
|
||||
<section class="my-5">
|
||||
<h5>sys.version (sys.ver)</h5>
|
||||
<p>Windows version.</p>
|
||||
<p>Syntax</p>
|
||||
<pre><code>sys.version
|
||||
sys.version.build
|
||||
sys.version.major
|
||||
sys.version.minor
|
||||
sys.version.name
|
||||
sys.version.type</code></pre>
|
||||
</section>
|
||||
<section class="my-5">
|
||||
<h5>sys.datetime</h5>
|
||||
<p>Date and time format</p>
|
||||
<p>Syntax</p>
|
||||
<pre><code>sys.datetime
|
||||
sys.datetime.date
|
||||
sys.datetime.date_day
|
||||
sys.datetime.date_dayofweek
|
||||
@@ -30,11 +77,15 @@ sys.datetime.time_min
|
||||
sys.datetime.time_minute
|
||||
sys.datetime.time_ms
|
||||
sys.datetime.time_pm
|
||||
sys.datetime.time_second
|
||||
sys.directory(dir)
|
||||
sys.extended
|
||||
sys.is64
|
||||
sys.name
|
||||
sys.datetime.time_second</code></pre>
|
||||
</section>
|
||||
<section class="my-5">
|
||||
<h5>Windows paths</h5>
|
||||
<pre><code>sys.appdata
|
||||
sys.bin
|
||||
sys.bin32
|
||||
sys.bin64
|
||||
sys.directory (sys.dir)
|
||||
sys.path
|
||||
sys.prog
|
||||
sys.prog32
|
||||
@@ -44,17 +95,12 @@ sys.refresh
|
||||
sys.root
|
||||
sys.temp
|
||||
sys.templates
|
||||
sys.users
|
||||
sys.wow</code></pre>
|
||||
</section>
|
||||
|
||||
<pre><code>@*sys.copy
|
||||
sys.extended*@
|
||||
sys.toggleext
|
||||
sys.togglehidden
|
||||
sys.type
|
||||
sys.users
|
||||
sys.var
|
||||
sys.version(ver)
|
||||
sys.version.build
|
||||
sys.version.major
|
||||
sys.version.minor
|
||||
sys.version.name
|
||||
sys.version.type
|
||||
sys.wow
|
||||
</pre>
|
||||
|
||||
sys.beep</code></pre>
|
||||
@@ -3,15 +3,22 @@
|
||||
ViewData["page-support"] = "Functions \\ USER";
|
||||
}
|
||||
<h5>USER</h5>
|
||||
<div class="notification is-danger is-light">
|
||||
Documentation under construction.
|
||||
</div>
|
||||
<pre>
|
||||
user.home
|
||||
<br>
|
||||
<section class="my-5">
|
||||
<h5>user.name</h5>
|
||||
<p>Returns the current username.</p>
|
||||
<p>Syntax</p>
|
||||
<code>user.name</code>
|
||||
</section>
|
||||
|
||||
<section class="my-5">
|
||||
<h5>Functions to return the path of user directories</h5>
|
||||
<p>Syntax</p>
|
||||
<pre><code>user.home
|
||||
user.appdata
|
||||
user.contacts
|
||||
user.desktop
|
||||
user.directory(dir)
|
||||
user.directory (user.dir)
|
||||
user.documents
|
||||
user.documentslibrary
|
||||
user.downloads
|
||||
@@ -19,7 +26,6 @@ user.favorites
|
||||
user.libraries
|
||||
user.localappdata
|
||||
user.music
|
||||
user.name
|
||||
user.personal
|
||||
user.pictures
|
||||
user.profile
|
||||
@@ -28,5 +34,7 @@ user.sendto
|
||||
user.startmenu
|
||||
user.temp
|
||||
user.templates
|
||||
user.videos
|
||||
</pre>
|
||||
user.videos</code>
|
||||
</pre>
|
||||
</section>
|
||||
|
||||
Reference in new issue
Block a user