Openkore.com
http://forums.openkore.com/

Transfer Variables from EventMacro to Macro
http://forums.openkore.com/viewtopic.php?f=32&t=212428
Page 1 of 1

Author:  Glikadin [ 01 Nov 2017, 18:18 ]
Post subject:  Transfer Variables from EventMacro to Macro

Hello! Me need help:

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


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


How to get Variable from EventMacro in Macro ?

Author:  fadreus [ 18 Nov 2017, 03:19 ]
Post subject:  Re: Transfer Variables from EventMacro to Macro

use console?

Code:
console /[eventMacro] <regexp>/


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

Code:
do macro <macro name>

Author:  help_us [ 20 Nov 2017, 12:50 ]
Post subject:  Re: Transfer Variables from EventMacro to Macro

Code:
macro Test1 {
         $EventMacroVariable = 1
}

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

Author:  sctnightcore [ 20 Nov 2017, 13:25 ]
Post subject:  Re: Transfer Variables from EventMacro to Macro

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

Author:  Yaham [ 20 Nov 2017, 13:41 ]
Post subject:  Re: Transfer Variables from EventMacro to Macro

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?

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/