HomeGenie Forum

Automation Program Plugins and Wizard Scripting => Help => Topic started by: Gene on April 03, 2014, 05:55:55 PM

Title: Using HG Helper Class delegates from Python and Ruby
Post by: Gene on April 03, 2014, 05:55:55 PM
Examples using Program.Setup method:

Python
Code: [Select]
#setup program stuff
def setup():
  hg.Program.Notify("Python Test", "Hello Python")
  return
hg.Program.Setup(setup)

Ruby
Code: [Select]
#setup program stuff
hg.Program.Setup(System::Action.new {
  hg.Program.Notify("Ruby Test", "Hello Ruby")
})

Cheers,
g.
Title: Re: Using HG Helper Class delegates from Python and Ruby
Post by: Jan on April 07, 2014, 01:23:34 AM
Hey Gene,

Just wanted to thank you for this info!

Of course, I'm still very much looking forward to a possible solution for Javascript, though  ;)

Best,
Jan