Page 1 of 1

[Solved]Automacro not triggered by eval conditions?

Posted: 09 May 2011, 07:39
by ioio440
This is the code

Code: Select all

sub testSub{
	return 1;
}

automacro test {
	eval testSub()
	run-once 1
	call {
		log success!!
		release findMyMaster
	}
}
This way won't trigger.
How can I make "test" to be triggered when testSub is true?

Re: Automacro not triggered by eval conditions?

Posted: 09 May 2011, 13:29
by EternalHarvest
Try

Code: Select all

eval main::testSub()
or

Code: Select all

eval &main::testSub

Re: Automacro not triggered by eval conditions?

Posted: 09 May 2011, 14:35
by ioio440
It's work~
Thanks~ :D