#!/usr/bin/perl -w use lib "$ENV{'ARBHOME'}/lib/"; use ARB; $gb_main = ARB::open(":","r"); if (! $gb_main ) { $error = ARB::await_error(); print ("Error: $error\n"); exit 0; } # example macro: # - has been modified manually # - demonstrates howto toggle a GUI-toggle via script BIO::remote_action($gb_main,'ARB_NT','props_tree'); BIO::remote_action($gb_main,'ARB_NT','COLOR_DEF/EDIT_COLOR_GROUP'); # BIO::remote_awar($gb_main,'ARB_NT','color_groups/use','0'); # original record $new_val = 1 - BIO::remote_read_awar($gb_main,"ARB_NT","color_groups/use"); BIO::remote_awar($gb_main,"ARB_NT","color_groups/use", $new_val); ARB::close($gb_main);