News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

I found an interesting thing, ‘$(NOW_L)’ in the script are not real-time

Started by Chun Jiu, May 11, 2020, 07:40:44 AM

Previous topic - Next topic

Chun Jiu

This is an interesting feature and very useful to me. But don't know if it is a bug, or was it designed this way?

When I enter the script I designed in the debugger settings, it will be executed every time when it is modified, so the dialog box in the script will pop up annoyingly.

Then I use the 'NOW_L' macro to get the current time and store it in the root table, and then judge the time difference between the two executions when entering the script, which effectively helps me avoid annoying pop-ups.

However, I found that when editing the script in the debugger settings, the time obtained by now_l is always fixed and will not change.

But when C::B calls debugger, this script always gets the correct time.

So, I wonder if this feature will be changed in the future C::B version?

If this feature is changed, the script I designed now will not operate correctly in the future.
I love my girlfriend like c++!    :-)

[url="http://pan.baidu.com/s/1feNwU"]http://pan.baidu.com/s/1feNwU[/url]
easilygcc is a gmail's email.

BlueHazzard

QuoteHowever, I found that when editing the script in the debugger settings, the time obtained by now_l is always fixed and will not change.
What fixed time is it?
Or how can i reproduce it?
do you have an example script?

Chun Jiu

Quote from: BlueHazzard on May 11, 2020, 09:09:11 AM
QuoteHowever, I found that when editing the script in the debugger settings, the time obtained by now_l is always fixed and will not change.
What fixed time is it?
Or how can i reproduce it?
do you have an example script?

In script console,:

ShowMessage(ReplaceMacros(_T("$(NOW_L)")));

or, in any project:

[[ ShowMessage(ReplaceMacros(_T("$(NOW_L)")));  ]]



===========================================

In the script console, the time is the same every time, so it is fixed.

But placed in the debug settings of the project, each time it is debugged, its time is up to date.
I love my girlfriend like c++!    :-)

[url="http://pan.baidu.com/s/1feNwU"]http://pan.baidu.com/s/1feNwU[/url]
easilygcc is a gmail's email.