PixInsight Forum (historical)
Software Development => PCL and PJSR Development => Topic started by: peabody1998 on 2019 November 14 12:08:51
-
I'm an old programmer but am new to PixInsight development. I would greatly appreciate if someone could point me in the right direction to a "Hello World" beginners tutorial on how to start writing scripts in PixInsight. I am firstly interested in developing scripts to automate workflow. TIA.
-- Rich
-
In Script Editor View:
File > New > JavaScript Source file (.js)
Paste text below, save
Execute > Compile & Run
Include files are in Pixinsight/include/pjsr.
Distribution script source files (ie examples) in Pixinsight/src/scripts.
Classes, methods, and parameters are listed in Object Explorer View. No additional docs, but names themselves are a helpful prompt.
#include <pjsr/StdIcon.jsh>
#include <pjsr/StdButton.jsh>
console.writeln("Hello world");
(new MessageBox(
"Hello world",
"",
StdIcon_Information,
StdButton_Ok
)).execute();
-
Thanks. Works perfectly!
And away I go.....
--Rich