mIRC Homepage
Posted By: sparta $appstate - 05/12/12 01:22 PM
Have anything changed in $appstate ? Befor i used it to check if mirc is maximized or in tray. Now if i start a timer with a check it will return nothing while in tray, but if i open mirc and use it maximized it will trigger.

//timer1 0 1 echo -s $appstate

Befor it returned the value maximized or tray ..
Posted By: Wims Re: $appstate - 05/12/12 01:40 PM
Quote:
//timer1 0 1 echo -s $!appstate
wink
Posted By: sparta Re: $appstate - 05/12/12 01:53 PM
Thnx. smile Then i was right, something changed.. :P
Posted By: hixxy Re: $appstate - 05/12/12 08:27 PM
Nothing changed. The problem is that you were evaluating $appstate at the time the timer is initiated, rather than at the time the timer executes.

; this evaluates $time when the /timer command runs.
//timer 1 1 echo -a $time

; this evaluates $time when the /echo command within the timer fires.

//timer 1 1 echo -a $!time
© mIRC Discussion Forums