Undefined variable or class name: gui

Hi there
I’m a total newby to micromanager. I’m using it to run scripts for image acquisition. The scripts I have in hand use gui objects, but micromanager doesn’t want to play.
Even for a very simple script

gui.clearMessageWindow();
gui.message(“Hello”);

I get the following message:
Line 1: evaluation error : Sourced file: inline evaluation of: ``gui.clearMessageWindow(); gui.message(“Hello”);’’ : Attempt to resolve method: clearMessageWindow() on undefined variable or class name: gui

I bet this is a pretty fundamental problem, but I’m at a loss.
(I’m not having any trouble scripting mmc objects)

Cheers
Mike

Hi Mike,

I had issues when I was just starting out where the gui or mmc variables get overwritten. Do you get the errors after a bit of fiddling around? If so try just restarting micro-manager.

Hello Mike,

Which version of micromanager are you using?

for micromanager gamma,
use, mm.getScriptController().clearMessageWindow();
mm.scripter().message(“Hello”);

Hope his helps.
Cheers,
Amit

Thanks, Amit.

Indeed the issue was that I was working from scripts written for 1.4 but am using 2.0

Cheers
Mike