Basic — File Browser
Basicv23042002 / Basicv23042002 / basic / sys / menus.mrc
menus.mrc — 16.93 KB — Download this file
; ###################################
;
; Basic v23042002
; blue-elf, belf@mircscripter.com
;
; just popups
;
; ###################################
#menu_dalnet off
menu menubar,channel {
&DALNet
.&Nickserv
..&Access
...&List:ns access list
...&Add...:ns ACCESS ADD $$input(Enter an address to add to your access list,1,NickServ Access Add)
...&Del...:ns ACCESS DEL $$input(Enter an address to remove from your access list,1,NickServ Access Del)
...&Wipe...:if ($input(Are you sure you want to wipe your access list?)) ns ACCESS WIPE
..&Drop:ns DROP $$input(Enter a nick to drop and a drop code,1,Nickserv Drop Nick)
..&Ghost:ns GHOST $$input(Enter nick and password,1,NickServ Ghost Nick)
..&Identify:ns IDENTIFY $$input(Enter password for $me ,1,NickServ Identify Nick)
..&Recover:ns RECOVER $$input(Enter nick to recover and password,1,NickServ Recover Nick)
..&Set
...E&mail...:ns SET EMAIL $$input(Enter password and email,1,NickServ Set Email)
...En&force
....O&n:ns SET ENFORCE ON
....O&ff:ns SET ENFORCE OFF
...Mail&Block
....O&n:{
var %tmp = Turning this feature on will prevent anyone from using the $&
SENDPASS command on your nickname. The SENDPASS command $&
allows you to send your nickname password to your email $&
address on file. $str($crlf,2) $&
CAUTION: If you enable the MAILBLOCK feature, you will no $&
longer be able to request your password be sent via email $&
and you will be entirely responsible for keeping track of it on your own. $str($crlf,2) $&
Are you sure you want to enable mailblock?
if ($input(%tmp,256,NickServ Enable Mailblock)) ns SET MAILBLOCK ON
}
....O&ff:ns SET MAILBLOCK OFF
...&NoMemo
....O&n:ns SET NOMEMO ON
....O&ff:ns SET NOMEMO OFF
...&NoOp
....O&n:ns SET NOOP ON
....O&ff:ns SET NOOP OFF
...&Password...:ns SET PASSWD $$input(Enter your current password and a new password,1,NickServ Set Password)
...&ShowEmail
....O&n:ns SET SHOWEMAIL ON
....O&ff:ns SET SHOWEMAIL OFF
...&URL
....&Set...:ns SET URL $$input(Enter a URL,1,NickServ Set URL)
....&Unset:ns SET URL
...&Kill
....O&n:ns Set Kill On
....O&ff:ns Set Kill Off
..Send&Pass...:ns SENDPASS $$input(Enter nickname and email address,1,NickServ SendPass)
..Re&gister...:ns REGISTER $$input(Enter password and email address,1,NickServ Register)
..Release...:ns RELEASE $$input(Enter a password for $me ,1,NickServ Release)
..A&cc...:ns ACC $$input(Enter a nickname,1,NickServ Acc)
..In&fo...:ns INFO $$input(Enter a nickname,1,NickServ Info)
.&ChanServ
..&Info...:chanserv Info $$input(Enter channel,1,ChanServ Info)
..&Register:{
var %chan, %pass, %desc
if ($input(Enter a channel name to register,1,ChanServ Register)) {
%chan = $ifmatch
if ($input(Enter a password for %chan $+ $str($crlf,2) $+ NOTE: Passwords are case-sensitive!,1,ChanServ Register)) {
%pass = $ifmatch
%desc = $input(Enter a description for %chan ,1,ChanServ Register)
cs %chan %pass %desc
}
}
}
..Channel Settings
...Change &Founder...:chanserv Set $$input(Enter channel,1,ChanServ Set Founder) Founder
...Set &Password...:chanserv Set $$input(Enter channel,1,ChanServ Set Password) Passwd $$input(Enter new password to use,1,ChanServ Set Password)
...Set &Description...:chanserv Set $$input(Enter channel,1,ChanServ Set Description) Desc $$input(Enter description for the channel,1,ChanServ Set Description)
...&Mode Lock...:chanserv Set $$input(Enter channel,1,ChanServ ModeLock) Mlock $$input(Enter channel modes to be locked,1,ChanServ ModeLock)
...Op&guard
....O&n...:chanserv Set $$input(Enter channel,1,ChanServ OpGuard) Opguard On
....O&ff...:chanserv Set $$input(Enter channel,1,ChanServ OpGuard) Opguard Off
...&Leave Ops
....O&n...:chanserv Set $$input(Enter channel,1,ChanServ LeaveOps) Leaveops On
....O&ff...:chanserv Set $$input(Enter channel,1,ChanServ LeaveOps) Leaveops Off
...&Keep Topic....O&n...:chanserv Set $$input(Enter channel,1,ChanServ KeepTopic) Keeptopic On....O&ff...:chanserv Set $$input(Enter channel,1,ChanServ KeepTopic) Keeptopic Off
...&Topic Lock
....&Founder only...:chanserv SET $$input(Enter a channel,1,ChanServ TopicLock) TOPICLOCK FOUNDER
....&SOP only...:chanserv SET $$input(Enter a channel,1,ChanServ TopicLock) TOPICLOCK SOP
....&Off...:chanserv SET $$input(Enter a channel,1,ChanServ TopicLock) TOPICLOCK OFF
...&URL...:chanserv Set $$input(Enter channel,1,ChanServ Set URL) Url $$input(Enter url,1,ChanServ Set URL)
...&Private
....&On...:chanserv Set $$input(Enter channel,1,ChanServ) Private On
....O&ff...:chanserv Set $$input(Enter channel,1,ChanServ) Private Off
...Uns&ecure
....O&n...:chanserv Set $$input(Enter channel,1,ChanServ) Unsecure On
....O&ff...:chanserv Set $$input(Enter channel,1,ChanServ) Unsecure Off
..&Super Op
...&Add...:chanserv Sop $$input(Enter channel,1,ChanServ Add SOP) Add $$input(Enter nickname or address to add,1,ChanServ Add SOP)
...&Delete...:chanserv Sop $$input(Enter channel,1,ChanServ Del SOP) Del $$input(Enter number, nickname or address to delete,1,ChanServ Delete SOP)
...&List...:chanserv Sop $$input(Enter channel,1,ChanServ List SOP) List
..&Auto Op
...&Add...:chanserv Aop $$input(Enter channel,1,ChanServ Add AOP) Add $$input(Enter nickname or address to add,1,ChanServ Add AOP)
...&Delete...:chanserv Aop $$input(Enter channel,1,ChanServ Del AOP) Del $$input(Enter number, nickname or address to delete,1,ChanServ Delete AOP)
...&List...:chanserv Aop $$input(Enter channel,1,ChanServ List Auto-Op) List
..Auto &Kick
...&Add...:chanserv Akick $$input(Enter channel,1,ChanServ Add Akick) Add $$input(Enter nickname or address to add,1,ChanServ Add AutoKick)
...&Delete...:chanserv Akick $$input(Enter channel,1,ChanServ Del Akick) Del $$input(Enter number, nickname or address to delete,1,ChanServ Delete AutoKick)
...&List...:chanserv Akick $$input(Enter channel,1,ChanServ List Autokick) List
..&Drop...:chanserv Drop $$input(Enter channel,1,ChanServ Drop)..&Identify...:chanserv Identify $$input(Enter channel,1,ChanServ Identify Channel) $$input(Enter password for the channel,1,ChanServ Identify)
..A&ccess...:chanserv Access $$input(Enter channel,1,ChanServ Access) $$input(Enter nickname to set access level,1,ChanServ Access)
..&Op...:chanserv Op $$input(Enter channel,1,ChanServ Op) $$input(Enter nickname you want to op,1,ChanServ Op)
..&Unban
...Just &me...:chanserv Unban $$input(Enter channel,1,ChanServ Unban Me) Me
...&All...:chanserv Unban $$input(Enter channel,1,ChanServ Unban All) All
.&MemoServ
..&Send...:memoserv Send $$input(Enter a nickname followed by your memo.,1,Send Memo)
..&List:memoserv List
..&Read...:memoserv Read $$input(Enter memo number to read,1,Read Memo)
..&Delete...:memoserv Del $$input(Enter memo number to delete,1,Delete Memo)
..&UnDelete...:memoserv Undel $$input(Enter memo number to undelete,1,UnDelete Memo)
..&Purge:memoserv Purge
..&Forward...:memoserv Forward $$input(Enter nickname to forward memo to,1,Forward Memo)
.&DCC Allow
..&Add...:if ($input(Enter a nickname to add,1,DCC Allow)) dccallow $+(+,$ifmatch)
..&Remove...:if ($input(Enter a nickname to remove,1,DCC Allow)) dccallow $+(-,$ifmatch)
..&List allowed nicks:dccallow list
..&Help:dccallow help
}
#menu_dalnet end
#menu_undernet off
menu menubar,channel {
&Undernet
.Level 0
..Access
...Normal...:x access $$input(Enter channel,1,X Access) *
...-
...username...:x access $$input(Enter channel and username,1,X Access)
...-min...:x access $$input(Enter channel,1,X Access) -min $$input(Enter min level,1,X Access)
...-max...:x access $$input(Enter channel,1,X Access) -max $$input(Enter max level,1,X Access)
...-op...:x access $$input(Enter channel,1,X Access) -op
...-voice...:x access $$input(Enter channel,1,X Access) -voice
...-none...:x access $$input(Enter channel,1,X Access) -none
...-modif...:x access $$input(Enter channel,1,X Access) -modif
..ChanInfo...:x chaninfo $$input(Enter channel,1,X Info)
..Help...:x help $$input(Enter command,1,X Help)..LBanList...:x lbanlist $$input(Enter channel and userhost,1,X Lbanlist)
..Login...:x login $$input(Enter username and password,1,X Login)
..MOTD:x motd
..Newpass...:x newpass $$input(Enter new password,1,X Newpass)
..Remuser...:x remuser $$input(Enter channelname and your username,1,X Remuser)
..Search...:x search $$input(Enter search parameter,1,X search)
..Set
...Invisible
....On:x set invisible on
....Off:x set invisible off
...Language
....Arabic:x set lang ar
....Catalan:x set lang ca
....German:x set lang de
....Danish:x set lang dk
....English:x set lang en
....Spanish:x set lang es
....French:x set lang fr
....Hungarian:x set lang hu
....Italian:x set lang it
....Dutch:x set lang nl
....Norwegian:x set lang no
....Portuguese:x set lang pt
....Romanian:x set lang ro
....Turkish:x set lang tr
..Showcommands...:x showcommands $input(Enter channel name or leave blank,1,X Showcommands)
..ShowIgnore:x showignore
...Support
....Yes:x support $$input(Enter a channel name to support,1,X Support)
....No:x support $$input(Enter a channel name to 'un'support,1,X Support)..Verify...:x verify $$input(Enter a nick to verify,1,X Verify)
.Level 1
..Banlist...:x banlist $$input(Enter a channel,1,X Banlist)
..Status...:x status $$input(Enter a channel,1,X Status)
.Level 100
..Invite:x invite $$input(Enter a channel you want to be invited in,1,X Invite)
}
#menu_undernet end
#menu_undernet2 on
menu channel {
&Undernet
.Level 25
..Devoice...:x devoice # $$input(Enter nicknames to devoice,1,X Devoice)
..Voice...:x voice # $$input(Enter nicknames to voice,1,X Voice)
.Level 50
..Kick...:x kick # $$input(Enter nickname and reason,1,X Kick user)
.Level 75
..Ban...:{
var %t = Enter duration, level and reason
x ban # $$input(Enter nick or userhost to ban,1,X Ban user) $input(%x,1,X Ban)
}
..Unban...:x unban # $$input(Enter nick or userhost to unban,1,X Unban)
.Level 100
..Deop:x deop # $$input(Enter nicknames to deop,1,X Deop)
..Op:x op # $$input(Enter nicknames to op,1,X Op)
..Suspend:{
var %text = Enter username and duration (level is optional)
x suspend # $$input(%text,1,X Suspend)
}
..Unsuspend:x unsuspend # $$input(Enter username,1,X Unsuspend)
.Level 200
..Kick:x kick # $$input(Enter nicknames to kick,1,X Kick) $$input(Enter reason,1,X Kick)
..Status:x status #
.Level 400
..Adduser:x adduser # $$input(Enter username and access level,1,X Addusername)
..ClearMode:x clearmode #
..Modinfo
...Access:x modinfo # access $$input(Enter username and new level,1,X Modinfo)
...Automode
....None:x modinfo # automode <username> none
....Op:x modinfo # automode <username> op
....Voice:x modinfo # automode <username> voice
..Remuser:x remuser # $$input(Enter username,1,X Remuser)
.Level 450
..Set
...AutoTopic
....On:x set # autotopic on
....Off:x set # autotopic off
...Description:x set # desc $$input(Enter a description for # ,1,X Set channel description)
...FloatLimit....On:x set # floatlim on
....Off:x set # floatlim off
...FloatGrace
....$submenu($_xpopgrace($1))
...FloatMargin
....$submenu($_xpopmargin($1))
...FloatMax:x set # floatmax $$input(Enter floating limit,1,X Set FloatMax)
...FloatPeriod:x set # floatperiod $$input(Enter float period $+ $crlf $+ <Valid range is bet. 20-200>,1,X Set FloatPeriod)
...Keywords:x set # keywords $$input(Enter keywords for # ,1,X Set Keywords)
...Modes:x set # mode
...URL:x set # url $$input(Enter URLs for # ,1,X Set URL)
...UserFlags
....No AutoMode:x set # userflags 0
....Op AutoMode:x set # userflags 1
....Voice AutoMode:x set # userflags 2
...Join:x join $_iif($input(Make X join what channel...? $+ $crlf $+ Or leave blank to make X join # ,1,X Join),#)
.Level 500
..Part:x part #
..Set
...Autojoin
....On:x set # autojoin on
....Off:x set # autojoin off
...MassDeopPro
....$submenu($_xpopmdp($1))
...NoOp
....On:x set # noop on
....Off:x set # noop off
...StrictOp
....On:x set # strictop on
....Off:x set # strictop off
}
#menu_undernet2 end
;
; I'm attempting to hide these
;
alias hlp { return help\help.txt }
alias bhelp {
if (!$window(@Help)) {
window -kdh +ftn @Help $calc($window(-1).w - 355) 30 355 415 @Help MS Sans Serif 14 $shortfn($mircexe)
background -t @Help help\help.bmp
}
window -a @Help
var %x, %t = $replace($1-,$chr(32),$chr(160)), %string
if ($ini($hlp,%t)) %t = %t
else %t = contents
if ((/* iswm $1) && ($isalias($remove($1,/)))) var %t = commands
; mIRC bug can't even find a $fline!@#$%^
; if ((/* iswm $1) && ($isalias($remove($1,/)))) var %t = commands, %x = 1, %string = * $+ $remove($1,/) $+ *
loadbuf -c1rpt $+ %t @Help $hlp
if (%t != contents) {
iline -c1 @Help 1 3Contents - 3About
iline @Help 2
if (!%x) .timer 1 0 sline @Help 15
}
aline @Help $str(_,60)
aline @Help
; if (%string) sline @Help $calc($fline(@Help,%string,1) + 4)
}
on ^*:hotlink:*:@Help:{
if (*3* iswm $hotline) return
halt
}
on *:hotlink:*:@Help:{
if ($ini($hlp,$1)) bhelp $strip($1)
else halt
}
on *:close:@Help:brestore
; And yet another hack. For when you close a desktop @window, mIRC doesn't show itself back.
alias -l brestore {
if ($istok(normal maximized,$appstate,32)) showmirc -s
if ($dialog(%sys.last.bdlg)) dialog -v $ifmatch
unset %sys.last.bdlg
}
menu @Help {
&Contents:bhelp
-
Clo&se:window -c @Help | brestore
}
; script maintenance
dialog script {
title "Script Maintenance"
size -1 -1 174 155
option dbu
button "&Close", 1, 71 142 32 12, ok
box "Temporary files:", 3, 1 2 171 45
text "Basic generates temporary files from time to time such as theme previews. These files are stored in a temporary folder.", 4, 28 11 140 20
button "&Delete files...", 5, 73 33 47 11
button "&View files", 6, 121 33 47 11
icon 7, 6 15 16 16, sys\trashfull.ico
box "Variables list:", 8, 1 48 171 46
text "The variables used by Basic are mostly temporary and will not disrupt the script completely if they are unset. Sometimes, unneeded variables might remain unset.", 9, 28 57 140 21
button "&Clear variables...", 10, 73 80 47 11
button "View varia&bles", 11, 121 80 47 11
icon 12, 6 58 16 16, sys\utils.ico
box "Script settings:", 13, 1 94 171 46
icon 14, 6 104 16 16, sys\recent.ico
text "Some script settings such as window positions and fonts, and recent lists take up space in your default settings file. They can be deleted safely and reset later on.", 15, 28 104 140 20
button "Delete settings...", 16, 121 126 47 11
}
alias scm { _opendlg script }
on *:dialog:script:sclick:5:{
var %input = Delete temporary files? $+ $str($crlf,2) $+ If you change your mind later on, you can restore the files from the Recycle Bin.
if ($input(%input,264,Delete files)) {
!.echo -q $findfile(temp\,*.*,0,.remove -b $+(",$1-,"))
if ($isfile(sys\default.ini)) remini sys\default.ini previewcache
}
_showdlg script
}
on *:dialog:script:sclick:6:if ($isdir(temp\)) run temp\
on *:dialog:script:sclick:10:{
var %input = Clear all global variables? $+ $str($crlf,2) $+ Make sure you are not using any addons that might be using their own variables.
if ($input(%input,264,Clear variables)) unsetall
_showdlg script
}
on *:dialog:script:sclick:11:{
var %w = @VariablesĀ List, %i = 1
if (!$window(%w)) window -dhkl -t20 %w 350 350 614 175
clear %w
while ($var(*,%i) != $null) {
if (!$var(*,%i).local) aline %w $tab($var(*,%i),$var(*,%i).value)
inc %i
}
window -a %w
}
on *:dialog:script:sclick:16:{
var %input = Clear non-critical script settings? $+ $str($crlf,2) $+ This will clear your recent lists as well.
if (($isfile(sys\default.ini)) && ($input(%input,264,Clear settings))) {
remini sys\default.ini recent
remini sys\default.ini windows
remini sys\default.ini misc
}
_showdlg script
}
on *:close:@VariablesĀ List:{
if ($istok(normal maximized,$appstate,32)) {
showmirc -s
_showdlg script
}
}
dialog about {
title About Basic v $+ $basic.ver
size -1 -1 121 73
icon $shortfn($mircexe), 0
option dbu
text "Basic for mIRC v6.01 written by blue-elf", 1, 4 3 51 14
text "Copyright Ā© 2002-9999 All rights reserved", 2, 4 22 59 14
button "", 3, 110 64 7 7, cancel
link "belf@mircscripter.com", 4, 4 41 57 8
link "http://elf.wot.net", 5, 4 50 44 8
icon 7, 85 1 32 25, sys\about.png, 0, noborder
check "", 8, 4 62 13 10
}
alias about { _opendlg about }
on *:dialog:about:init:*:if ($_(about,pop)) did -c $dname 8
on *:dialog:about:sclick:3:_set about pop $did(8).state
on *:dialog:about:sclick:4:run mailto: $+ $did(4).text
on *:dialog:about:sclick:5:run $did(5).text
; eof