03-27-2013, 03:26 AM
Well, wherever you have a @message_window.refresh statement.... mebby it should be:
That way, it only does the refresh schtick when visible.
Now I got one.....
Normally, to read a special event name like this ( EV003 [MyObj 2] ), I have a configuration thingie like this....
And I read the data like this:
The only problem is... the CUSTOM FORMULA only works with numeric data. I can't figure out how to make it read string data like this, EV003 [Custom 'Fred'], and I so wanna be able to get the 'Fred'.... er... string data itself.
Code:
@message_window.refresh if @message_window.visible == trueNow I got one.....
Normally, to read a special event name like this ( EV003 [MyObj 2] ), I have a configuration thingie like this....
Code:
CUSTOM_FLAG = 'MyObj '
CUSTOM_FORMULA = /\[#{CUSTOM_FLAG}(?:ECT)?[ ]*(\d)\]/And I read the data like this:
Code:
# Set Default value to 0
data_type = 0
# Obtain Data from event name
data_type = $1.to_i if @event.name =~ MOD_DERVV::CUSTOM_FORMULAThe only problem is... the CUSTOM FORMULA only works with numeric data. I can't figure out how to make it read string data like this, EV003 [Custom 'Fred'], and I so wanna be able to get the 'Fred'.... er... string data itself.

![[Image: QrnbKlx.jpg]](https://i.imgur.com/QrnbKlx.jpg)
![[Image: sGz1ErF.png]](https://i.imgur.com/sGz1ErF.png)
![[Image: liM4ikn.png]](https://i.imgur.com/liM4ikn.png)
![[Image: fdzKgZA.png]](https://i.imgur.com/fdzKgZA.png)
![[Image: sj0H81z.png]](https://i.imgur.com/sj0H81z.png)
![[Image: QL7oRau.png]](https://i.imgur.com/QL7oRau.png)
![[Image: uSqjY09.png]](https://i.imgur.com/uSqjY09.png)
![[Image: GAA3qE9.png]](https://i.imgur.com/GAA3qE9.png)
![[Image: 2Hmnx1G.png]](https://i.imgur.com/2Hmnx1G.png)
![[Image: BwtNdKw.png%5B]](https://i.imgur.com/BwtNdKw.png%5B)