| View previous topic :: View next topic |
| Author |
Message |
tdr2012 Cheater
Reputation: 0
Joined: 02 Nov 2014 Posts: 26
|
Posted: Sun Nov 01, 2015 4:14 pm Post subject: Get an address "Value" equal a registered symbol |
|
|
How can I get a known address A in a process equal a value of a registered symbol, address B, in the "Value" column for Address A?
For example, how can I get it to be like this?
| Code: |
01BEF398 = registered symbol named "common1"
Address B: 01BEF398 = 50
Address A: 038450FC = common1
|
How can I get 038450FC to mimic the value of the "common1" address? Using the CE GUI, it does not let me assign the values of addresses to equal a symbol name.
Is there a way to do this while maintaining the different addresses?
|
|
| Back to top |
|
 |
Zanzer I post too much
Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
Posted: Sun Nov 01, 2015 4:23 pm Post subject: |
|
|
| Code: | {$lua}
[ENABLE]
if mytimer == nil then
mytimer=createTimer(nil, false)
mytimer.Interval=1
mytimer.OnTimer=function()
writeInteger("038450FC", readInteger("common1"))
end
end
mytimer.Enabled=true
[DISABLE]
mytimer.Enabled=false |
|
|
| Back to top |
|
 |
tdr2012 Cheater
Reputation: 0
Joined: 02 Nov 2014 Posts: 26
|
Posted: Sun Nov 01, 2015 9:05 pm Post subject: |
|
|
| Zanzer wrote: | | Code: | {$lua}
[ENABLE]
if mytimer == nil then
mytimer=createTimer(nil, false)
mytimer.Interval=1
mytimer.OnTimer=function()
writeInteger("038450FC", readInteger("common1"))
end
end
mytimer.Enabled=true
[DISABLE]
mytimer.Enabled=false |
|
Thanks so much. This works really well.
|
|
| Back to top |
|
 |
|