πAdvanced
Advanced Commands
woah! you made it here! alright let's start.
Imports
as you've learned in the basics, Import-Module is the default powershell cmdlet to import functions and variables from other scripts, to that in dotlang, simply:
import ".\anotherfile.ps1";
# or,
import(".\anotherfile.ps1");simple ain't it?
Encrypting and Decrypting data
yeah, we have this in dotlang :)
$key = dotaes; # you can just use `$key = "YOUR_KEY_HERE"`
$key; # optional, displays encrypting key
$unencryptedString = "blahblahblah";
# Encrypting
$encryptedString = EncryptData $key $unencryptedString;
# Decrypting
$backToPlainText = DecryptData $key $encryptedString;output:
Asynchronous Command Execution
for short, async!
very easy, To make an async job:
Output:
that was pretty advanced, ain't it?
Executing Commands on an other PC
yeah.. it doesn't support dotlang commands, only powershell (sorry)..
Monitoring Processes
Run As Admin/User
Output:
Schedule commands
yep. and it's easy.
Get Current OS
Amazing TUIs
hello TUIs dev. it's now MUCH easier to make TUIs with dotlang! here's an example:
Usage: dotui "Title" "Input 0","Input 1","Input 3", etc...
Result:
Sort Arrays
To sort arrays in dotlang,
$sortedArray = @(1,2,3,6,7) cool?
Get User Input Key
Output: You Pressed "w"
dotsharp
dotsharp is used to integrate C# with dotlang. to add a C# script:
and to use it:
Last updated