mIRC Home    About    Download    Register    News    Help

Print Thread
#193685 23/01/08 11:54 PM
Joined: Nov 2004
Posts: 842
Jigsy Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Nov 2004
Posts: 842
This might be a bug, I'm not sure.

Code:
/.timerappactive -o 1 5 echo -aet $appactive


If you do that and then open up the mSE, it returns $false.
However, if you do that and then open up other dialogs, such as the address book, options, etc. it returns $true.

Shouldn't they return $false?


What do you do at the end of the world? Are you busy? Will you save us?
Jigsy #193687 24/01/08 12:10 AM
Joined: Dec 2002
Posts: 2,031
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,031

I would think it should return $true in those situations since those are parts of the 'App'.

Jigsy #193716 24/01/08 03:31 PM
Joined: Jan 2004
Posts: 162
R
RRX Offline
Vogon poet
Offline
Vogon poet
R
Joined: Jan 2004
Posts: 162
Don't you need
Code:
 /.timerappactive -o 1 5 echo -aet $!appactive

.. to force mirc to parse it only at the moment the timer triggers? This way it just shows the value at timer start time, regardless what you do during the delay.

RRX #193718 24/01/08 03:49 PM
Joined: Nov 2004
Posts: 842
Jigsy Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Nov 2004
Posts: 842
That just returns "$appactive".


What do you do at the end of the world? Are you busy? Will you save us?
RRX #193720 24/01/08 04:40 PM
Joined: Dec 2002
Posts: 2,962
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
If he's using a single / from the command-line it won't be evaluated when the timer is first started.


Spelling mistakes, grammatical errors, and stupid comments are intentional.
Jigsy #193728 24/01/08 05:43 PM
Joined: Jan 2004
Posts: 162
R
RRX Offline
Vogon poet
Offline
Vogon poet
R
Joined: Jan 2004
Posts: 162
Then its a commandline code.

RoCk #193731 24/01/08 06:30 PM
Joined: Jul 2006
Posts: 4,150
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,150
I agree but the mse can be opened on the desktop and i think in this case, should return $false


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Wims #193734 24/01/08 08:10 PM
Joined: Oct 2003
Posts: 3,918
A
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,918
They're all part of the "application", is the point.. so they should all be true


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"
argv0 #193735 24/01/08 08:36 PM
Joined: Dec 2002
Posts: 2,031
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,031

I agree, but the editor returns $false and the options dialog returns $false sometimes.

RoCk #193738 24/01/08 09:25 PM
Joined: Oct 2003
Posts: 3,918
A
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,918
Well I do think we can all agree they should return *one* consistent value, in that sense, it would be a bug


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"

Link Copied to Clipboard