[Solved]Automacro not triggered by eval conditions?

All about the macro plugin can be found in this forum. This forum is intended for the macro plugin only.

Moderator: Moderators

Message
Author
ioio440
Noob
Noob
Posts: 2
Joined: 09 May 2011, 07:33
Noob?: Yes

[Solved]Automacro not triggered by eval conditions?

#1 Post 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?

EternalHarvest
Developers
Developers
Posts: 1798
Joined: 05 Dec 2008, 05:42
Noob?: Yes

Re: Automacro not triggered by eval conditions?

#2 Post by EternalHarvest »

Try

Code: Select all

eval main::testSub()
or

Code: Select all

eval &main::testSub

ioio440
Noob
Noob
Posts: 2
Joined: 09 May 2011, 07:33
Noob?: Yes

Re: Automacro not triggered by eval conditions?

#3 Post by ioio440 »

It's work~
Thanks~ :D

Locked