How to open another openkore exe instance with macro?

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

Moderator: Moderators

Message
Author
forbbs
Human
Human
Posts: 30
Joined: 26 Jul 2011, 21:03
Noob?: Yes

How to open another openkore exe instance with macro?

#1 Post by forbbs »

I tried following code:

Code: Select all

sub cmdRun {
	my ($exe) = @_;
                    my $pid = fork();
                    if(not $pid){
                        exec($exe);
                        exit(0);
                    }

	return 1;
}

macro testit {
	$ret = cmdRun("start.exe --plugins=control\\plugins")
	log testit $ret
}
The new opened openkore reports error:
Wide character in print at F:/MyDoc/kore/openkore_ready/src/ErrorHandler.pm
line 33.
This program has encountered an unexpected problem. This is probably because
of a recent server update, a bug in this program, or in one of the plugins.
We apologize for this problem. You may get support from IRC or the forums.

A detailed error report has been saved to errors.txt. Before posting a bug
report, please try out the SVN version first. If you are already using the SVN
version, search the forums first to see if your problem had already been solved,

or has already been reported. If you truly believe you have encountered a bug in

the program, please include the contents of the errors.txt in your bug report,
or we may not be able to help you!

The error message is:
Cannot load interface Interface::Wx. Error:
Can't locate Wx/Perl/Packager.pm in @INC (@INC contains: src src/deps F:/MyDoc/k
ore/ttro/openkore_ready/src/deps F:/MyDoc/kore/openkore_ready/src F:/MyDoc/
kore/ttro/openkore_ready .) at src/Interface/Wx.pm line 31.
BEGIN failed--compilation aborted at src/Interface/Wx.pm line 32.
Compilation failed in require at (eval 247) line 1.
BEGIN failed--compilation aborted at (eval 247) line 1.
And the first orignal openkore exe instance will report "stop working" windows error either when quiting.

forbbs
Human
Human
Posts: 30
Joined: 26 Jul 2011, 21:03
Noob?: Yes

Re: How to open another openkore exe instance with macro?

#2 Post by forbbs »

I know the problem:wxstart.exe can't call start.exe,and vice versa.

Post Reply