mIRC Homepage

# last 6 commands not functioning?

Posted By: Skeletor

## last 6 commands not functioning? - 02/11/08 07:40 PM

hey all,

I have added some icons to my control panel and for some reason the last 6 Icons don't work at all, I know the command them selves work just fine, its seems like there is a cut of point after 30 elseif statements.

Any Ideas?

Code:
```
alias icons { return \$mircdir\icons\ \$+ \$1- }
alias mdx { dll \$+(",\$mircdir\dlls\mdx.dll,") \$1- }
alias bars return \$shortfn(\$mircdir\dlls\bars.mdx)
alias views return \$shortfn(\$mircdir\dlls\views.mdx)
alias cp { dialog -ms control control }

dialog control {
title "VTEC §cript Black Edition ® Control Panel"
size -1 -1 187 109
option dbu
icon \$mircdir\icons\nlc.ico, 0
icon 500, 146 1 70 107,\$mircdir/pictures/K-TEK V-TEC Menubar.jpg
list 1, 0 2 174 93, size
list 3, 0 96 174 11, size

}

on *:dialog:control:init:0: {
mdx SetMircVersion \$version
mdx MarkDialog \$dname
mdx SetFont \$Dname 1,3 -11 400 Tahoma
mdx SetControlMDX \$dname 3 StatusBar > \$bars
mdx SetBorderStyle \$dname 1 windowedge clientedge
did -i \$dname 3 1 setparts 120 400
mdx SetBorderStyle \$dname 3 windowedge
mdx SetControlMDX \$dname 1 listview icon single noheader flatsb > \$views

did -i \$dname 1 1 seticon list 0 \$icons(reload_page.ico)
did -i \$dname 1 1 seticon list 0 \$icons(configure.ico)
did -i \$dname 1 1 seticon list 0 \$icons(2dowarrow.ico)
did -i \$dname 1 1 seticon list 0 \$icons(add_group.ico)
did -i \$dname 1 1 seticon list 0 \$icons(find.ico)
did -i \$dname 1 1 seticon list 0 \$icons(agt_desktop_enhancements.ico)
did -i \$dname 1 1 seticon list 0 \$icons(alarmd.ico)
did -i \$dname 1 1 seticon list 0 \$icons(colorize.ico)
did -i \$dname 1 1 seticon list 0 \$icons(Mobile Syncronization.ico)
did -i \$dname 1 1 seticon list 0 \$icons(Notepad.ico)
did -i \$dname 1 1 seticon list 0 \$icons(Default Programs.ico)
did -i \$dname 1 1 seticon list 0 \$icons(fileclose.ico)
did -i \$dname 1 1 seticon list 0 \$icons(contents.ico)
did -i \$dname 1 1 seticon list 0 \$icons(playlist.ico)
did -i \$dname 1 1 seticon list 0 \$icons(agt_update_drivers.ico)
did -i \$dname 1 1 seticon list 0 \$icons(exit.ico)
did -i \$dname 1 1 seticon list 0 \$icons(Public.ico)
did -i \$dname 1 1 seticon list 0 \$icons(decrypted.ico)
did -i \$dname 1 1 seticon list 0 \$icons(Search.ico)
did -i \$dname 1 1 seticon list 0 \$icons(folder_open.ico)
did -i \$dname 1 1 seticon list 0 \$icons(project_open.ico)
did -i \$dname 1 1 seticon list 0 \$icons(save_all.ico)
did -i \$dname 1 1 seticon list 0 \$icons(view_multicolumn.ico)
did -i \$dname 1 1 seticon list 0 \$icons(agt_action_fail.ico)
did -i \$dname 1 1 seticon list 0 \$icons(identity.ico)
did -i \$dname 1 1 seticon list 0 \$icons(db_status.ico)
did -i \$dname 1 1 seticon list 0 \$icons(playsound.ico)
did -i \$dname 1 1 seticon list 0 \$icons(agt_add-to-desktop.ico)
did -i \$dname 1 1 seticon list 0 \$icons(inbox.ico)
did -i \$dname 1 1 seticon list 0 \$icons(agt_web.ico)
did -i \$dname 1 1 seticon list 0 \$icons(agt_Utilities.ico)
did -i \$dname 1 1 seticon list 0 \$icons(agt_announcements.ico)
did -i \$dname 1 1 seticon list 0 \$icons(about_kde.ico)
did -i \$dname 1 1 seticon list 0 \$icons(agt_virus.ico)
did -i \$dname 1 1 seticon list 0 \$icons(cnrdelete-all1.ico)

did -a \$dname 1 0 1 Protections
did -a \$dname 1 0 2 Nick Control
did -a \$dname 1 0 4 Action And Talk
did -a \$dname 1 0 5 Channel Scanner
did -a \$dname 1 0 6 Away System
did -a \$dname 1 0 7 Credits
did -a \$dname 1 0 8 Themes Engine
did -a \$dname 1 0 9 Popup Alert
did -a \$dname 1 0 10 List Channels
did -a \$dname 1 0 11 Flood Protection
did -a \$dname 1 0 12 F-Key Setup
did -a \$dname 1 0 13 Dictionary
did -a \$dname 1 0 14 Mp3 player
did -a \$dname 1 0 15 Programs
did -a \$dname 1 0 16 Shutdown OS
did -a \$dname 1 0 17 IRCop Scanner
did -a \$dname 1 0 18 Crypto Settings
did -a \$dname 1 0 19 Log Viewer
did -a \$dname 1 0 20 Memo Sender
did -a \$dname 1 0 21 Channel Modes
did -a \$dname 1 0 22 Programs
did -a \$dname 1 0 23 Nick Colours
did -a \$dname 1 0 24 Profanity Filter
did -a \$dname 1 0 25 Auto Ident/Join
did -a \$dname 1 0 26 IRCop Commands
did -a \$dname 1 0 27 Media Player
did -a \$dname 1 0 28 Options Menu
did -a \$dname 1 0 29 Lagbar Options
did -a \$dname 1 0 30 Memoserv
did -a \$dname 1 0 31 Chanserv
did -a \$dname 1 0 32 Nickserv
did -a \$dname 1 0 33 IRCop Toolz
did -a \$dname 1 0 34 Secure Query
did -a \$dname 1 0 35 The Blacklist

}

on *:dialog:control:sclick:1: {
if (\$did(\$dname,\$did).sel == 2) { did -i \$dname 3 2 Protection | did -i \$dname 3 3 Configure Protection Optons }
elseif (\$did(\$dname,\$did).sel == 3) { did -i \$dname 3 2 Nick Colours | did -i \$dname 3 3 Manage Nicklist Colours }
elseif (\$did(\$dname,\$did).sel == 5) { did -i \$dname 3 2 Action/Talk | did -i \$dname 3 3 Configure Action and Talk Settings }
elseif (\$did(\$dname,\$did).sel == 6) { did -i \$dname 3 2 Chan Scan | did -i \$dname 3 3 Opens Channel Scanner }
elseif (\$did(\$dname,\$did).sel == 7) { did -i \$dname 3 2 Away | did -i \$dname 3 3 Set Away System }
elseif (\$did(\$dname,\$did).sel == 8) { did -i \$dname 3 2 Credits | did -i \$dname 3 3 Script Credits }
elseif (\$did(\$dname,\$did).sel == 9) { did -i \$dname 3 2 Theme | did -i \$dname 3 3 Configure mIRC Theme }
elseif (\$did(\$dname,\$did).sel == 10) { did -i \$dname 3 2 Pop Alert | did -i \$dname 3 3 Configure Custom Popup Alert }
elseif (\$did(\$dname,\$did).sel == 11) { did -i \$dname 3 2 Channels | did -i \$dname 3 3 List Channels on Server }
elseif (\$did(\$dname,\$did).sel == 12) { did -i \$dname 3 2 Flood | did -i \$dname 3 3 Configure Flood Protection }
elseif (\$did(\$dname,\$did).sel == 13) { did -i \$dname 3 2 F-Keys | did -i \$dname 3 3 Setup F-Keys }
elseif (\$did(\$dname,\$did).sel == 14) { did -i \$dname 3 2 Dictionary | did -i \$dname 3 3 Opens Dictionary }
elseif (\$did(\$dname,\$did).sel == 15) { did -i \$dname 3 2 Choons | did -i \$dname 3 3 Opens MP3 Player }
elseif (\$did(\$dname,\$did).sel == 16) { did -i \$dname 3 2 Clone Scan | did -i \$dname 3 3 Opens Programs }
elseif (\$did(\$dname,\$did).sel == 17) { did -i \$dname 3 2 Shut Down | did -i \$dname 3 3 Shuts Down Windows }
elseif (\$did(\$dname,\$did).sel == 18) { did -i \$dname 3 2 IRCop Scan | did -i \$dname 3 3 Opens IRCop Scanner }
elseif (\$did(\$dname,\$did).sel == 19) { did -i \$dname 3 2 Crypto | did -i \$dname 3 3 Configure Crypto Settings }
elseif (\$did(\$dname,\$did).sel == 20) { did -i \$dname 3 2 Logs | did -i \$dname 3 3 Opens Logs Folder }
elseif (\$did(\$dname,\$did).sel == 21) { did -i \$dname 3 2 Memo | did -i \$dname 3 3 Opens Memo Sender }
elseif (\$did(\$dname,\$did).sel == 22) { did -i \$dname 3 2 Modes | did -i \$dname 3 3 Set Channel Modes }
elseif (\$did(\$dname,\$did).sel == 23) { did -i \$dname 3 2 Programs | did -i \$dname 3 3 Opens Programs }
elseif (\$did(\$dname,\$did).sel == 24) { did -i \$dname 3 2 Nicklist Options | did -i \$dname 3 3 Configure Nicklist Options }
elseif (\$did(\$dname,\$did).sel == 25) { did -i \$dname 3 2 Profanity | did -i \$dname 3 3 Configure Profanity Filter }
elseif (\$did(\$dname,\$did).sel == 26) { did -i \$dname 3 2 Auto Stuff | did -i \$dname 3 3 Configure Auto Ident/Join }
elseif (\$did(\$dname,\$did).sel == 27) { did -i \$dname 3 2 Commands | did -i \$dname 3 3 Configure IRCop Commands }
elseif (\$did(\$dname,\$did).sel == 28) { did -i \$dname 3 2 Media Player | did -i \$dname 3 3 Opens Media Player }
elseif (\$did(\$dname,\$did).sel == 29) { did -i \$dname 3 2 Options | did -i \$dname 3 3 Configure Options Menu }
elseif (\$did(\$dname,\$did).sel == 30) { did -i \$dname 3 2 Lagbar | did -i \$dname 3 3 Configure Lagbar Options }
elseif (\$did(\$dname,\$did).sel == 31) { did -i \$dname 3 2 Memoserv | did -i \$dname 3 3 Opens Memoserv Dialog }
elseif (\$did(\$dname,\$did).sel == 32) { did -i \$dname 3 2 Chanserv | did -i \$dname 3 3 Opens Chanserv Dialog }
elseif (\$did(\$dname,\$did).sel == 33) { did -i \$dname 3 2 Nickserv | did -i \$dname 3 3 Opens Nickserv Dialog }
elseif (\$did(\$dname,\$did).sel == 34) { did -i \$dname 3 2 IRCop Toolz | did -i \$dname 3 3 Opens IRCop Toolz }
elseif (\$did(\$dname,\$did).sel == 35) { did -i \$dname 3 2 Secure Query | did -i \$dname 3 3 Configure Secure Query }
elseif (\$did(\$dname,\$did).sel == 36) { did -i \$dname 3 2 Blacklist | did -i \$dname 3 3 Show The Blacklist }
}

on *:dialog:control:dclick:1: {
if (\$did(\$dname,\$did).sel == 2) { /dialog -m Prot Prot }
elseif (\$did(\$dname,\$did).sel == 3) { /dialog -m nicklist nicklist }
elseif (\$did(\$dname,\$did).sel == 5) { /dialog -m ontond ontond }
elseif (\$did(\$dname,\$did).sel == 6) { /dialog -m scan scan }
elseif (\$did(\$dname,\$did).sel == 7) { /dialog -m away away }
elseif (\$did(\$dname,\$did).sel == 8) { /dialog -m credits credits }
elseif (\$did(\$dname,\$did).sel == 10) { /popup }
elseif (\$did(\$dname,\$did).sel == 11) { /List | /lusers }
elseif (\$did(\$dname,\$did).sel == 12) { /fp }
elseif (\$did(\$dname,\$did).sel == 13) { /X-fkeys }
elseif (\$did(\$dname,\$did).sel == 14) { /dialog -m dictionary dictionary }
elseif (\$did(\$dname,\$did).sel == 15) { /dialog -m mp3 mp3 }
elseif (\$did(\$dname,\$did).sel == 16) { /dialog -m programs programs }
elseif (\$did(\$dname,\$did).sel == 17) { /shutdown }
elseif (\$did(\$dname,\$did).sel == 18) { /Ircop-scan }
elseif (\$did(\$dname,\$did).sel == 19) { /blowfish }
elseif (\$did(\$dname,\$did).sel == 20) { run \$+(",\$mircdir,logs,") }
elseif (\$did(\$dname,\$did).sel == 21) { /dialog -m memo memo }
elseif (\$did(\$dname,\$did).sel == 22) { /channel }
elseif (\$did(\$dname,\$did).sel == 23) { /dialog -m Programs Programs }
elseif (\$did(\$dname,\$did).sel == 24) { /dialog -m rgb2 rgb2 }
elseif (\$did(\$dname,\$did).sel == 25) { /swear }
elseif (\$did(\$dname,\$did).sel == 26) { /dialog -m ghostkiller ghostkiller }
elseif (\$did(\$dname,\$did).sel == 27) { /ircop }
elseif (\$did(\$dname,\$did).sel == 28) { /mmp }
elseif (\$did(\$dname,\$did).sel == 29) { /optbox optbox }
elseif (\$did(\$dname,\$did).sel == 30) { /lag -c}
elseif (\$did(\$dname,\$did).sel == 31) { /dialog -m _ms }
elseif (\$did(\$dname,\$did).sel == 32) { /dialog -m _ch _ch }
elseif (\$did(\$dname,\$did).sel == 33) { /dialog -m _ns _ch }
elseif (\$did(\$dname,\$did).sel == 34) { /dialog -m ircoptoolz ircoptoolz }
elseif (\$did(\$dname,\$did).sel == 35) { /dialog -m querycon querycon }
elseif (\$did(\$dname,\$did).sel == 36) { /dialog -m blacklist blacklist  }

}
}

```
Posted By: genius_at_work

## Re: last 6 commands not functioning? - 02/11/08 07:43 PM

elseif (\$did(\$dname,\$did).sel == 30) { /lag -c}

Use the bracket checking function in the script editor. The button with the checkmark in the top-right of the editor.

-genius_at_work
Posted By: Skeletor

## Re: last 6 commands not functioning? - 02/11/08 07:57 PM

Ahh Thankyou!

I looked at that, but the lag worked so it didn't even come into the equation.

Matt.