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 == true
Now 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_FORMULA
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.