for those with mini screens:
dialog pastebin {
title "Pastebin Uploader / Downloader"
size -1 -1 454 204
option dbu
box "Upload:", 1, 5 2 232 84
text "Name:", 2, 14 11 16 8
edit "", 3, 33 10 67 10, autohs limit 24 center
text "Private sub-domain:", 4, 109 11 49 8
edit "", 5, 160 10 68 10, autohs limit 50 center
text "Syntax highlighting:", 6, 26 25 48 8
combo 7, 81 24 75 62, sort size drop
check "Private Paste?", 8, 171 24 45 10
button "Browse file...", 9, 11 51 42 12
edit "", 10, 61 52 170 10, autohs center
text "How long should your post be retained?", 11, 19 39 96 8
radio "a day", 12, 126 38 24 10
radio "a month", 13, 157 38 30 10
radio "forever", 14, 195 38 28 10
button "Preview!", 15, 53 68 50 12
button "Upload!", 16, 135 68 50 12
box "Download:", 17, 237 2 213 37
text "Pastebin URL:", 18, 244 10 34 8
edit "", 19, 280 9 106 10, autohs center
check "Load to remotes?", 20, 393 9 52 10
button "Preview", 21, 273 22 50 12
button "Download!", 22, 362 22 50 12
edit "", 23, 5 90 443 91, multi return hsbar vsbar
box "Information:", 24, 237 36 213 50
text "", 25, 243 43 201 39
button "Close Dialog", 26, 44 187 60 14
button "Clear Screen", 27, 148 187 60 14
button "Copy to Clipboard", 28, 254 187 60 14
button "Go to line...", 29, 359 187 60 14
link "", 30, 256 49 188 7
}
@ the risk of sounding condescending, yet again. $modespl is pointless and moot, in a remote, unless you either loop or the user already knows the max.
To use $modespl and not be pointless you'd need something like
;set your vars
var %i = 1, %os
;set loop max to names
while (%i <= $numtok($2-,32)) {
;add a name
%os = %os $gettok($2-,%i,32)
;are we @ max yet?
if ($numtok(%os,32) == $modespl) {
;we're @ max so we mode
mode # $+(+,$str(o,$numtok(%os,32))) %os
;safety clear as mIRC is sometimes too slow
%os = ""
}
;loop some more
inc %i
}
;if any left or never hit max
if (%os) {
;mode names
mode # $+(+,$str(o,$numtok(%os,32))) %os
}