mIRC Homepage
Posted By: PHMinistries popup question - 02/01/03 12:14 AM
would it be possible to make a popup
that first says .set away:/setaway commands
if you are not on away

but when you are on away it would change and go to .set back:/set back commands?

is that possible?
Posted By: Collective Re: popup question - 02/01/03 12:17 AM
Something like
$iif(%away == 1, Set Back):/setback
$iif(%away == 0, Set Away):/setaway
Posted By: Dana Re: popup question - 02/01/03 12:21 AM
Code:
menu channel {
  $iif($away == $true,Set Back,Set Away) : $iif($away == $true,backcommand,awaycommand)
}  
Posted By: PHMinistries Re: popup question - 02/01/03 01:00 AM
thanks alot smile
Posted By: PHMinistries Re: popup question - 02/01/03 01:06 AM
menu menubar,channel,nicklist,query {
-
PHM Away System:
.PHM Away Preferences:/phmawaypref
.$iif($away == $true,Set PHM Back Mode,PHM Away Now) : $iif($away == $true,setbackphm,phmawaynowf)
.Pager:/set %phmpagermsg69 $$?="Pager Message" | /set %phmpagernick69 $$?="Who To Page" | /ctcp %phmpagernick69 page 13,6(0P1)13(0A1)13(0G1)13(0E1)13(0R1)8,5 %phmpagermsg69 13,6(0M1)13(0E1)13(0S1)13(0S1)13(0A1)13(0G1)13(0E1)
.Read Pages: run NotePad.exe $scriptdir\page.txt
.Clear Pages: {
write -c $scriptdir\page.txt clearing all pages on $fulldate
echo -at ** Page file now cleared
}

that doesnt work for me,

if i take the period out it works
but i need to be able to put in the right folder if you understand what im saying
Posted By: Collective Re: popup question - 02/01/03 01:19 AM
Put the right folder in where...?
Posted By: PHMinistries Re: popup question - 02/01/03 01:27 AM
you know for pop ups you put them

PHM Away System
.away:away comd
.back:back comd

that way
if i put the ..$iif($away == $t command there it wont work

cause i put the . in front to put it in the right way
Posted By: Hammer Re: popup question - 02/01/03 05:45 AM
Your primary problem is that you have a colon (:) after PHM Away System when it's just a top-level label for several sublevel popups.
Code:
menu menubar,channel,nicklist,query {
  -
  PHM Away System
  .PHM Away Preferences: phmawaypref
  .Set PHM $iif($away,Back Mode,Away Now) : $iif($away,setbackphm,phmawaynowf)
  .Pager:{
    set %phmpagermsg69 $$?="Pager Message"
    set %phmpagernick69 $$?="Who To Page"
    ;  That long old ctcp pager thing goes here
  }
  .Read Pages: run NotePad.exe $+($scriptdir,page.txt)
  .Clear Pages: { 
    write -c $+($scriptdir,page.txt) Clearing all pages on $fulldate 
    echo -at ** Page file now cleared
  }
}
© mIRC Discussion Forums