List of pacakges and examples


To install all packages dependencies run nexss pkg init. It will run specified init command in the package/Nexss Programmer Project.

App

App/Run

Languages used: Auto Hot Key (.ahk)

Runs application. For help run nexss App help

Examples

nexss App/Run --app="code c:/myfolder" # Opens VSCode and opens folder c:/folder
nexss App/Run --app="explorer" # Opens Explorer

Blender

Video Quick Tutorial: Render in Blender from Nexss Programmer

help: nexss Blender help

Render results/data from nexss PROGRAMMER directly in Blender. Just add nexss pkg add Blender to your Nexss Programmer Project and you are ready to go. More here in this video tutorial: Blender from Nexss Programmer Data

Parameters

  • width
  • height
  • objectName - Name of object in the scene to modify
  • renderData - String which contains data to render, otherwise it contains datetime stamp.
  • renderFilename
  • colorMode [‘BW’, ‘RGB’, ‘RGBA’]
  • compression (0-100)

This needs to specified compiler part (but when you use to copy and modify package for your needs --copyPackage it is already done there. You don't need to do it) eg:

files:
  - name: src/yourScript.py
    compiler: blender yourBlenderScene.blend --background
# Below command will copy package to your current folder. (--copyPackage)
nexss pkg add Blender --copyPackage --saveNexss --forceNexss
# You can use it like: nexss Blender (the same as global package) but it will take local
# Now you can adjust the copied code to your needs.

Clipboard

nexss Clipboard nexss Clipboard help

Languages used: NodeJS (.js) (+installed https://github.com/sindresorhus/clipboardy) OR Second example Auto Hot Key (.ahk)

nexss Clipboard # displays clipboard data
nexss Clipboard --write="This is cache long story"
nexss Clipboard --fields="cwd"
nexss Clipboard --fields="firstname,lastname"

## TODO: Clipboard multiple: see below

nexss Clipboard --push="Multiple Clipboard"
nexss Clipboard --list # displays list with unique ids
nexss Clipboard --delete uniqueId # removes item from Clipboards list

Convert

Convert/VideoToGif

Convert Video file to animated gif

Languages used: Node JS (.js) and Python (.py)

Technologies used:
MoviePy https://zulko.github.io/moviepy/

Examples

nexss Convert/VideoToGif --file=myfile.mp4
nexss Convert/VideoToGif --file="Diving - 347.mp4" --fps=1

Data

There are at least 2 ways of modifying data in Nexss Programmer.

  • You can modify data in each program (any languag you like) by changing/modify files
  • You can use this package Data which make operations on Nexss Programmer data which is default JSON passed between modules.

Data/Concat

Concatenate data in the sequence (You can also not use this module and make it manually in any language)

Examples

nexss Data/Concat --concatFields=cwd,debug # this will return string
nexss Data/Concat --concatFields=cwd,debug --concatArray # this will return array in field concatResult
nexss Data/Concat --concatFields=cwd,debug --concatArray --concatResultField=myFieldName # custom result fieldname 'myFieldName'
nexss Data/Concat --concatFields=cwd,debug --concatSeparator=EOL # will produce everyvalue on new line

Data / Delete

Deletes the fields from data flow.

Examples

nexss Data/Delete --deleteFields=cwd,myfield # make sure cwd and myfield do not exist.
nexss Data/Delete --deleteFields=debug,_

Data/Pretty

Show the data in nice way.

Examples

nexss Data/Show --showFields=cwd # Will only display cwd field as result (everything else is deleted.)
nexss Data/Pretty --prettyFields=cwd,x --debug=0 # without --debug=0 will show error as x does not exist

Data/Rename

Rename data from field to another. Very Handy incase parameters do not match.

Examples

# rename cwd->y and myfield=>result
nexss Data/Rename --renameFrom=cwd,myfield --renameTo=y,result
nexss Data/Rename --renameFrom=Y --renameTo=X

Data/Show

Show the fields.

Examples

nexss Data/Show --showFields=cwd # Will only display cwd field as result (everything else is deleted.)

Id

Generates unique id

Languages: NodeJS (.js)
Technologies: https://github.com/ericelliott/cuid

Example

nexss Id
nexss Id --fields=cuid # this will only display cuid

Input

Languages: NodeJS (.js) and Python(.py)
Technologies:

Convert Image to Text.

# First we need to capture screen region and save it as 1.png

nexss Screen/Capture --file=1.png # We capture the screenshot of mouse selection.
nexss Input/OCR --file=1.png # Convert to text

Keyboard

Handling keyboard

Languages used: Auto Hot Key (.ahk)

Examples

nexss Keyboard --type="ls -la"  # writes ls -la
nexss Keyboard --type="#s" # WIN + s
nexss Keyboard --type="#d" # WIN + d / Show Desktop
nexss Keyboard --type="#b" # WIN + b / Show Taskbar
nexss Keyboard --type="color 03" --enter # hit enter after type

Special Keys

Windows - Auto Hotkey: More Special Keys

! = ALT
+ = SHIFT
^ = CTRL
# = WIN

Mouse

Mouse/Click

Click mouse button depends on configuration. See below examples.

Examples

nexss Mouse/Click # Click left
nexss Mouse/Click --double # Double click
nexss Mouse/Click ==button=Right --double # Click Right double
nexss Mouse/Click ==button=Middle # clic middle mouse button

Mouse/Move

Moves mouse cursor to the position x,y.

nexss Mouse/Move --x=10 --y=200

Mouse/MoveToImage

Moves mouse cursor to the image located on the screen.

nexss Mouse/MoveToImage --image=myfile.png

Nexss

Package browser including searching and graph.

Package Browser for Nexss PROGRAMMER 2.0

Examples

nexss Nexss/PackageBrowser

Output

Output/Text - Nexss PROGRAMMER 2.0

Save data as a text

Examples

nexss Output/Text --file=myfilename.txt

Screen

AreaOCR

NOTE: Example of Nexss Project without source inside! Just using another Nexss Packages
link to the repository of : https://github.com/nexssp/package_screen/tree/master/AreaOCR

Allows you to select region on screen and convert it to text (OCR).

Examples

nexss Screen/AreaOCR

This is example of module which uses only Nexss PROGRAMMER pakcages without extra code.

files:
  - name: Screen/Capture #--file=1.png Can be with or without params!
  - name: Input/OCR #--file=1.png

Screen/AreaVideo

https://github.com/nexssp/package_screen/tree/master/AreaVideo

Allows you to select region on screen and record video.

Example of Plugin without source inside!

This is example of module which uses only Nexss PROGRAMMER pakcages without extra code.

files:
  - name: Select/Area
  - name: Screen/VideoRecord

Select/Area

Gives selection cross for select the area on desktop. Returns X1,Y1,X2,Y2

Credits

;~ This module is based on the script which has been found on AutoIt Forum ;~ https://www.autoitscript.com/forum/topic/95920-solved-selecting-a-rectangle-to-screencapture/

Examples

nexss Select/Area # This will return X1,Y1,X2,Y2 of selected area

Example of returned value

{"start":1579196911382,"cwd":"c:\\Users\\mapoart\\.nexss\\packages\\Mouse","debug":true,"_":[],"X1":787,"Y1":433,"X2":1318,"Y2":781}

Web

Web/Output

Different formats of saving Web.

Examples

nexss Web/Output --website=https://nexss.com --file=myfile.pdf # Saves website to pdf
nexss Web/Output --website=https://marcinpolak.eu --file=myfile.jpg # Saves website to jpg

Web/Info

MessageBox

MessageBox

Nexss System allow to run systems in many languages at once. In this case:

  • We use PowerShell script getWebInfo.ps1 to get the data by the docker and great tool wappalyzer/cli.
  • We parse the data by the nodeJS/JavaScript and display it as console.table just to show the docker output from .ps1 file to the NodeJS/JavaScript.

Packages and technologies used for this demo

  • Nexss automation
  • NodeJS/JavaScript
  • wappalyzer/cli
  • ms.js
  • PowerShell Scripting
  • yml/yaml