Actions
Bug #3035
closed$appactive is always $true
Start date:
10/11/2016
Due date:
% Done:
0%
Estimated time:
Operative System:
All
Regression:
No
Description
I am using $appactive to update the titlebar when adirc is active, but I have observed it updating when I have it minimized.
Reproduce with the following:
//timer 1 5 echo -at Appactive is: $appactive
Minimize adirc and wait at least 5 seconds
Updated by Per Amundsen about 8 years ago
You need to do add a ! in the $appactive like this: //timer 1 5 echo -at Appactive is: $!appactive
If not, you will evaluate the current value of $appactive when the timer is created, not when it's run.
Updated by mr uno about 8 years ago
You are correct and I forgot the !. The issue s still present: //timer 2 5 echo -a app is active: $!appactive
[14:17:43] * Timer 1 activated
app is active: $true
app is active: $true
[14:17:53] * Timer 1 halted
Updated by Per Amundsen about 8 years ago
Should work fine as long as no AdiIRC window has focus.
Actions