Project

General

Profile

Bug #3035

closed

$appactive is always $true

Added by mr uno almost 5 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
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

#1

Updated by Per Amundsen almost 5 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.

#2

Updated by mr uno almost 5 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

#3

Updated by Per Amundsen almost 5 years ago

Should work fine as long as no AdiIRC window has focus.

#4

Updated by Mr. BS over 4 years ago

  • Status changed from New to Closed

Also available in: Atom PDF