mIRC Home    About    Download    Register    News    Help

Print Thread
#4450 02/01/03 12:14 AM
Joined: Dec 2002
Posts: 174
P
Vogon poet
OP Offline
Vogon poet
P
Joined: Dec 2002
Posts: 174
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?

#4451 02/01/03 12:17 AM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
Something like
$iif(%away == 1, Set Back):/setback
$iif(%away == 0, Set Away):/setaway

#4452 02/01/03 12:21 AM
Joined: Dec 2002
Posts: 144
D
Vogon poet
Offline
Vogon poet
D
Joined: Dec 2002
Posts: 144
Code:
menu channel {
  $iif($away == $true,Set Back,Set Away) : $iif($away == $true,backcommand,awaycommand)
}  

Last edited by Dana; 02/01/03 12:44 AM.

"Any sufficiently advanced technology is indistinguishable from magic." - Arthur C. Clarke
#4453 02/01/03 01:00 AM
Joined: Dec 2002
Posts: 174
P
Vogon poet
OP Offline
Vogon poet
P
Joined: Dec 2002
Posts: 174
thanks alot smile

#4454 02/01/03 01:06 AM
Joined: Dec 2002
Posts: 174
P
Vogon poet
OP Offline
Vogon poet
P
Joined: Dec 2002
Posts: 174
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

#4455 02/01/03 01:19 AM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
Put the right folder in where...?

#4456 02/01/03 01:27 AM
Joined: Dec 2002
Posts: 174
P
Vogon poet
OP Offline
Vogon poet
P
Joined: Dec 2002
Posts: 174
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

#4457 02/01/03 05:45 AM
Joined: Dec 2002
Posts: 1,321
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,321
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
  }
}


DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C

Link Copied to Clipboard