Openkore.com

OpenKore Forums
It is currently 15 Dec 2017, 02:22

All times are UTC - 5 hours [ DST ]





Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Transfer Variables from EventMacro to Macro
PostPosted: 01 Nov 2017, 18:18 
Offline
Human
Human

Joined: 09 Dec 2016, 09:05
Posts: 23
Hello! Me need help:

EventMacro:
Code:
macro Test1 {
$EventMacroVariable = 1
}


Macro:
Code:
macro Test2 {
log ???$EventMacroVariable???
}


How to get Variable from EventMacro in Macro ?


Top
 Profile  
 
 Post subject: Re: Transfer Variables from EventMacro to Macro
PostPosted: 18 Nov 2017, 03:19 
Offline
Plain Yogurt
Plain Yogurt
User avatar

Joined: 17 Nov 2017, 23:32
Posts: 81
Location: Malaysia
use console?

Code:
console /[eventMacro] <regexp>/


If using automacro on eventMacro calling macro, can use console command calling macro:

Code:
do macro <macro name>

_________________
Image


Top
 Profile  
 
 Post subject: Re: Transfer Variables from EventMacro to Macro
PostPosted: 20 Nov 2017, 12:50 
Offline
Testers Team
Testers Team

Joined: 04 Apr 2008, 21:53
Posts: 106
Location: Asia
Code:
macro Test1 {
         $EventMacroVariable = 1
}

automacro checkTest1 {
    var .EventMacroVariable = 1
    timeout 2
    call {
        log var \$EventMacroVariable is $EventMacroVariable
   }
}

_________________
Image
Image


Top
 Profile  
 
 Post subject: Re: Transfer Variables from EventMacro to Macro
PostPosted: 20 Nov 2017, 13:25 
Offline
Been there done that!
Been there done that!

Joined: 09 Apr 2017, 07:23
Posts: 144
Location: Thailand
help_us wrote:
Code:
macro Test1 {
         $EventMacroVariable = 1
}

automacro checkTest1 {
    var .EventMacroVariable = 1
    timeout 2
    call {
        log var \$EventMacroVariable is $EventMacroVariable
   }
}


Do you help discord ?
sctnightcore24hour#1063
Add me

i will add you to openkore-dev room


Top
 Profile  
 
 Post subject: Re: Transfer Variables from EventMacro to Macro
PostPosted: 20 Nov 2017, 13:41 
Offline
Human
Human

Joined: 28 Nov 2010, 00:57
Posts: 24
help_us wrote:
Code:
macro Test1 {
         $EventMacroVariable = 1
}

automacro checkTest1 {
    var .EventMacroVariable = 1
    timeout 2
    call {
        log var \$EventMacroVariable is $EventMacroVariable
   }
}




Just for knowledge, this variables persists until the kore section get closed?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group