Project

General

Profile

Actions

Bug #3035

closed

$appactive is always $true

Added by mr uno about 8 years ago. Updated almost 8 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

Actions #1

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.

Actions #2

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

Actions #3

Updated by Per Amundsen about 8 years ago

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

Actions #4

Updated by Mr. BS almost 8 years ago

  • Status changed from New to Closed
Actions

Also available in: Atom PDF