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?
Something like
$iif(%away == 1, Set Back):/setback
$iif(%away == 0, Set Away):/setaway
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
Put the right folder in where...?
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
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.
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
}
}