home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
napalm.napnet.hu
/
2015-02-12.napalm.napnet.hu.tar
/
napalm.napnet.hu
/
programok
/
kommunikacio
/
mpp700.exe
/
dlg01.smarticq
< prev
next >
Wrap
Text File
|
2003-05-20
|
49KB
|
1,387 lines
; ______________________________________________________________________________________________________
;
; SmartICQ v1.2
; copyright (c) 2001-03 tronicer
;
; http://www.smarticq.com/
; _________________________________________________________________________________________________________
;
; smarticq dialogs
; _________________________________________________________________________________________________________
;
; * LIST OF DIALOGS
; /_icq.dlg_rsms recived sms
; /_icq.dlg_history system history
; /_icq.dlg_addaccount add account
; /_icq.dlg_changeawaymsg change away msg
; /_icq.dlg_passwd enter password
; /_icq.dlg_wwwpager wwwpager dialog
; /_icq.dlg_rename rename contact dialog
; /_icq.dlg_registration register new account
; /_icq.dlg_remfromcontact remove user from contact list
; /_icq.dlg_add2contact add user to contact list
; /_icq.dlg_useraddyou "user added you"
; /_icq.dlg_reqauth request authorization
; /_icq.dlg_userdetails user details
; /_icq.dlg_sendsms send sms
; /_icq.dlg_sendurl send url
; /_icq.dlg_error error
alias -l _hget { tokenize 32 $1- | return $hget($1,$2) }
; _________________________________________________________________________________________________________
;
; new version
alias _icq.dlg_rsms {
if ($dialog(_icq.rsms)) { dialog -v _icq.rsms }
else { set %_icq.pager $1 | set %_icq.pager.h $2 | dialog $+(-m,$iif($_icq.desktop,d)) _icq.rsms _icq.rsms }
}
dialog -l _icq.rsms {
title "SmartICQ - SMS"
size -1 -1 133 121
option dbu
icon dat\flower.ico
box "Received SMS" , 1, 1 2 129 100
button "Close" , 8, 93 106 37 12, cancel
text "From:" , 18, 20 14 13 8, right
text "Time:" , 19, 20 26 13 8, right
text "Message:" , 22, 8 40 25 8, right
edit "", 23, 35 13 90 10, read autohs
edit "", 24, 35 25 90 10, read autohs
edit "", 27, 35 39 90 58, read multi autovs
}
on *:dialog:_icq.rsms:init:*:{
if (%_icq.pager.h != -history) { var %read = $readini($+(",$_icq.dir,$_icq.a,\system.ini"),sms,%_icq.pager) }
if (%_icq.pager.h == -history) { var %read = $readini($+(",$_icq.dir,$_icq.a,\history.ini"),sms,%_icq.pager) }
did -ra $dname 23 $gettok(%_icq.pager,1,254)
if (%_icq.pager.h == -history) { did -ra $dname 24 $asctime($gettok($gettok(%_icq.pager,2,254),1,33)) }
if (%_icq.pager.h != -history) { did -ra $dname 24 $asctime($gettok(%_icq.pager,2,254)) }
did -ra $dname 27 %read
if (%_icq.pager.h != -history) {
remini $+(",$_icq.dir,$_icq.a,\system.ini") sms %_icq.pager
writeini $+(",$_icq.dir,$_icq.a,\history.ini") sms $+(%_icq.pager,!,$ticks) %read
}
unset %_icq.pager
unset %_icq.pager.h
}
; _________________________________________________________________________________________________________
;
; new version
;dialog _icq.dlg_newver {
; title "SmartICQ - Info"
; size -1 -1 119 46
; option dbu
; icon dat\flower.ico
; button "Button", 6, 48 78 37 12, hide cancel
; text "A new version of SmartICQ has been released." , 7, 4 4 110 8
; link "", 8, 22 17 80 8
; button "Close" , 9, 76 30 37 12, ok
; check "Do not open in the future" , 10, 10 30 37 12
;}
;on *:dialog:_icq.dlg_newver:init:*:{ did -a $dname 8 Download SmartICQ $+(v,$sock(_icq.checkver).mark) }
;on *:dialog:_icq.dlg_newver:sclick:8:{ .url -n http://icq.irctools.com/dl.html | dialog -x $dname }
; _________________________________________________________________________________________________________
;
; system history
alias _icq.dlg_history {
if ($dialog(_icq.history)) { dialog -v _icq.history }
else { dialog $+(-m,$iif($_icq.desktop,d)) _icq.history _icq.history }
}
dialog -l _icq.history {
title "SmartICQ - System History"
size -1 -1 160 116
option dbu
icon dat\flower.ico
button "Close" , 2, 120 102 37 12, cancel
tab "URL" , 9, 1 1 157 98
button "Remove" , 26, 48 84 37 12, tab 9
button "Show" , 27, 5 84 37 12, tab 9
list 28, 5 18 149 64, tab 9 size
tab "Requests" , 10
button "Remove" , 23, 48 84 37 12, tab 10
button "Show" , 24, 5 84 37 12, tab 10
list 25, 5 18 149 64, tab 10 size
tab "Added You" , 11
button "Remove" , 20, 48 84 37 12, tab 11
button "Show" , 21, 5 84 37 12, tab 11
list 22, 5 18 149 64, tab 11 size
tab "Pager" , 12
button "Remove" , 17, 48 84 37 12, tab 12
button "Show" , 18, 5 84 37 12, tab 12
list 19, 5 18 149 64, tab 12 size
tab "SMS" , 13
list 14, 5 18 149 64, tab 13 size
button "Remove" , 15, 48 84 37 12, tab 13
button "Show" , 16, 5 84 37 12, tab 13
list 114,0 0 0 0, hide
list 119,0 0 0 0, hide
list 122,0 0 0 0, hide
list 125,0 0 0 0, hide
list 128,0 0 0 0, hide
}
on *:dialog:_icq.history:dclick:14,19,22,25,28:{
if ($did == 14) { _icq.dlg_rsms $$did($dname,114,$did($dname,14).sel).text -history }
if ($did == 19) { _icq.dlg_wwwpager $$did($dname,119,$did($dname,19).sel).text -history }
if ($did == 22) { _icq.dlg_useraddyou $$did($dname,122,$did($dname,22).sel).text -history }
if ($did == 25) { _icq.dlg_reqauth $$did($dname,125,$did($dname,25).sel).text -history }
if ($did == 28) { _icq.dlg_recvurl $$did($dname,128,$did($dname,28).sel).text -history }
}
on *:dialog:_icq.history:sclick:15,16,17,18,20,21,23,24,26,27:{
if ($did == 27) { _icq.dlg_recvurl $$did($dname,128,$did($dname,28).sel).text -history }
if ($did == 24) { _icq.dlg_reqauth $$did($dname,125,$did($dname,25).sel).text -history }
if ($did == 21) { _icq.dlg_useraddyou $$did($dname,122,$did($dname,22).sel).text -history }
if ($did == 18) { _icq.dlg_wwwpager $$did($dname,119,$did($dname,19).sel).text -history }
if ($did == 16) { _icq.dlg_rsms $$did($dname,114,$did($dname,14).sel).text -history }
if ($did == 26) { remini $+(",$_icq.dir,$_icq.a,\history.ini") url $$did($dname,128,$did($dname,28).sel).text | did -d $dname 28,128 $did($dname,28).sel }
if ($did == 23) { remini $+(",$_icq.dir,$_icq.a,\history.ini") rqst $$did($dname,125,$did($dname,25).sel).text | did -d $dname 25,125 $did($dname,25).sel }
if ($did == 20) { remini $+(",$_icq.dir,$_icq.a,\history.ini") addedyou $$did($dname,122,$did($dname,22).sel).text | did -d $dname 22,122 $did($dname,22).sel }
if ($did == 17) { remini $+(",$_icq.dir,$_icq.a,\history.ini") pager $$did($dname,119,$did($dname,19).sel).text | did -d $dname 19,119 $did($dname,19).sel }
if ($did == 15) { remini $+(",$_icq.dir,$_icq.a,\history.ini") sms $$did($dname,114,$did($dname,14).sel).text | did -d $dname 14,114 $did($dname,14).sel }
}
on *:dialog:_icq.history:init:*:{
var %file = $+(",$_icq.dir,$_icq.a,\history.ini"), %c = $ini(%file,url,0)
while (%c) {
var %ini = $gettok($ini(%file,url,%c),1,254)
did -a $dname 28 $gettok($gettok($readini(%file,url,$ini(%file,url,%c)),2,254),1,32) from $_icq.g(%ini,SHOW,$ini(%file,url,%c))
did -a $dname 128 $ini(%file,url,%c)
dec %c
}
var %c = $ini(%file,rqst,0)
while (%c) {
var %ini = $ini(%file,rqst,%c)
did -a $dname 25 $_icq.g(%ini,SHOW,%ini)
did -a $dname 125 %ini
dec %c
}
var %c = $ini(%file,addedyou,0)
while (%c) {
var %ini = $ini(%file,addedyou,%c)
did -a $dname 22 $_icq.g(%ini,SHOW,%ini) added you
did -a $dname 122 $ini(%file,addedyou,%c)
dec %c
}
var %c = $ini(%file,pager,0)
while (%c) {
var %ini = $ini(%file,pager,%c)
var %read = $readini(%file,pager,$ini(%file,pager,%c))
did -a $dname 19 $gettok(%ini,1,254) paged you ( $+ $gettok($gettok(%read,-2,254),2-,32) $+ )
did -a $dname 119 $ini(%file,pager,%c)
dec %c
}
var %c = $ini(%file,sms,0)
while (%c) {
var %ini = $ini(%file,sms,%c)
var %read = $readini(%file,pager,$ini(%file,sms,%c))
did -a $dname 14 $gettok(%ini,1,254) sent sms
did -a $dname 114 $ini(%file,sms,%c)
dec %c
}
}
; _________________________________________________________________________________________________________
;
; add account
alias _icq.dlg_addaccount {
if ($dialog(_icq.addaccount)) { dialog -v _icq.addaccount }
else { dialog $+(-m,$iif($_icq.desktop,d)) _icq.addaccount _icq.addaccount }
}
dialog -l _icq.addaccount {
title "SmartICQ"
size -1 -1 106 99
option dbu
icon dat\flower.ico
button "Cancel" , 4, 26 84 37 12, cancel
button "Add" , 5, 67 84 37 12
box "Add Account" , 10, 1 3 103 77
text "UIN" , 13, 5 16 30 8, right
edit "", 14, 38 15 60 10, autohs
text "Password" , 15, 5 29 30 8, right
edit "", 16, 38 28 60 10, pass autohs
text "Nickname" , 17, 5 42 30 8, right
edit "", 18, 38 41 60 10, autohs
text "E-Mail" , 19, 5 54 30 8, right
edit "", 20, 38 53 60 10, autohs
check "Save password" , 22, 38 66 50 10
}
on *:dialog:_icq.addaccount:init:*:{
did -f $dname 14
}
on *:dialog:_icq.addaccount:sclick:5:{
if ($did == 5) {
if ($did($dname,14).text !isnum) { did -rf $dname 14 | return }
if ($did($dname,16).text == $null) { did -f $dname 16 | return }
if ($did($dname,18).text == $null) { did -f $dname 18 | return }
if ($did($dname,22).state) { var %duh = $_icq.createnewaccount($did($dname,14).text,$did($dname,18).text,$did($dname,16).text) }
if (!$did($dname,22).state) { var %duh = $_icq.createnewaccount($did($dname,14).text,$did($dname,18).text) }
var %file = $+(",$_icq.dir,$did($dname,14).text,\settings.ini")
writeini %file account NEWADDED 1
writeini %file account e-mail $$did($dname,20).text
did -a $$dialog(_icq.am) 1 $did($dname,14).text $did($dname,18).text
dialog -x $dname
}
}
; _________________________________________________________________________________________________________
;
; change away message
alias _icq.dlg_changeawaymsg {
if ($2 == off) && ($readini($+(",$_icq.dir,$_icq.a,\settings.ini"),settings,changeawaymsg)) { return }
if ($2 == on) { .disable #_icq.shift }
if ($dialog(%dialog)) { dialog -v $+(_icq.changeawaymsg.,$1) }
else { dialog $+(-m,$iif($_icq.desktop,d)) $+(_icq.changeawaymsg.,$1) _icq.changeawaymsg }
}
dialog -l _icq.changeawaymsg {
title "Change/Confirm Away Message"
size -1 -1 112 97
option dbu
icon dat\flower.ico
edit "", 1, 1 20 110 34, multi return autovs vsbar
text "This message will be displayed when you are" , 2, 2 3 107 8
text "marked as" , 3, 2 11 107 8
button "Ok", 4, 64 84 47 12, ok
check "Do not popup this dialog again" , 5, 10 56 87 10
text "Hold down Shift and click to override" , 6, 10 66 87 8
text "this setting in the future" , 7, 10 74 55 8
button "", 100, 0 0 0 0, cancel
}
on *:dialog:_icq.changeawaymsg.*:init:*:{
did -a $dname 3 marked as $+('',$gettok($dname,3,46),''.)
dialog -t $dname Change/Confirm $gettok($dname,3,46) __LANG=cam.8
did -ra $dname 1 $readini($+(",$_icq.dir,\,$_icq.a,\settings.ini"),settings,$+(msg.,$gettok($dname,3,46)))
if ($readini($+(",$_icq.dir,$_icq.a,\settings.ini"),settings,changeawaymsg)) { did -c $dname 5 }
did -c $dname 1 1 1 $did($dname,1).len
did -ra $dname 4 Closing in 5
.timer_icq.changeawaymsg1 5 1 did -ra $dname 4 Closing in $!timer(_icq.changeawaymsg1).reps
.timer_icq.changeawaymsg2 1 6 dialog -k $dname
}
on *:dialog:_icq.changeawaymsg.*:edit:1:{
if ($did($dname,4).text != Ok) {
.timer_icq.changeawaymsg1 off
.timer_icq.changeawaymsg2 off
did -ra $dname 4 Ok
}
}
on *:dialog:_icq.changeawaymsg.*:sclick:4,5,100:{
if ($did == 100) {
.timer_icq.changeawaymsg1 off
.timer_icq.changeawaymsg2 off
}
if ($did == 4) {
.timer_icq.changeawaymsg1 off
.timer_icq.changeawaymsg2 off
var %c = 1, %t
while (%c <= $did($dname,1).lines) {
if (%t) { %t = $+(%t,$crlf) }
%t = $+(%t,$did($dname,1,%c).text)
inc %c
}
if (%t != $null) {
writeini $+(",$_icq.dir,$_icq.a,\settings.ini") settings $+(MSG.,$gettok($dname,3,46)) %t
_icq.dll setawaymsg %t
}
else { remini $+(",$_icq.dir,$_icq.a,\settings.ini") settings $+(MSG.,$gettok($dname,3,46)) }
}
if ($did == 5) {
writeini $+(",$_icq.dir,$_icq.a,\settings.ini") settings changeawaymsg $did($dname,5).state
}
}
; _________________________________________________________________________________________________________
;
; enter password
alias _icq.dlg_passwd {
if ($dialog(_icq.passwd)) { dialog -v _icq.passwd }
else { dialog $+(-m,$iif($_icq.desktop,d)) _icq.passwd _icq.passwd }
}
dialog -l _icq.passwd {
title "SmartICQ - LOGIN"
size -1 -1 93 55
option dbu
icon dat\flower.ico
edit "", 1, 8 14 79 10, pass autohs result
check "Save password", 2, 9 26 50 10
box "Password", 3, 1 2 91 37
button "Cancel", 4, 15 42 37 12, cancel
button "Ok", 5, 56 42 37 12, ok disable
}
on *:dialog:_icq.passwd:edit:1:{
if ($did($dname,1).text != $null) { did -e $dname 5 }
else { did -b $dname 5 }
}
on *:dialog:_icq.passwd:sclick:5:{
if ($did($dname,2).state) {
writeini $+(",$_icq.dir,$_icq.a,\settings.ini") account passwd $_icq.passwd2($did($dname,1).text)
}
}
; _________________________________________________________________________________________________________
;
; wwwpager dialog
alias _icq.dlg_wwwpager {
if ($dialog(_icq.wwwpager)) { dialog -v _icq.wwwpager }
else { set %_icq.pager $1 | set %_icq.pager.h $2 | dialog $+(-m,$iif($_icq.desktop,d)) _icq.wwwpager _icq.wwwpager }
}
dialog -l _icq.wwwpager {
title "SmartICQ - Web Pager"
size -1 -1 133 141
option dbu
icon dat\flower.ico
box "Recived Web Pager Message" , 1, 1 2 129 121
button "Close" , 8, 93 126 37 12, cancel
text "Name:" , 18, 8 14 25 8, right
text "E-Mail:" , 19, 8 26 25 8, right
text "IP:" , 20, 8 38 25 8, right
text "Subject:" , 21, 8 50 25 8, right
text "Message:" , 22, 8 62 25 8, right
edit "", 23, 35 13 90 10, read autohs
edit "", 24, 35 25 90 10, read autohs
edit "", 25, 35 37 90 10, read autohs
edit "", 26, 35 49 90 10, read autohs
edit "", 27, 35 61 90 58, read multi autovs
}
on *:dialog:_icq.wwwpager:init:*:{
if (%_icq.pager.h != -history) { var %read = $readini($+(",$_icq.dir,$_icq.a,\system.ini"),pager,%_icq.pager) }
if (%_icq.pager.h == -history) { var %read = $readini($+(",$_icq.dir,$_icq.a,\history.ini"),pager,%_icq.pager) }
did -ra $dname 23 $gettok(%read,1,254)
did -ra $dname 24 $gettok(%read,4,254)
did -ra $dname 25 $gettok($gettok(%read,6,254),3,32)
did -ra $dname 26 $gettok($gettok(%read,7,254),2-,32)
did -ra $dname 27 $gettok(%read,8,254)
if (%_icq.pager.h != -history) {
remini $+(",$_icq.dir,$_icq.a,\system.ini") pager %_icq.pager
writeini $+(",$_icq.dir,$_icq.a,\history.ini") pager $+(%_icq.pager,$ticks) %read
}
unset %_icq.pager
unset %_icq.pager.h
}
; _________________________________________________________________________________________________________
;
; rename dialog
alias _icq.dlg_rename {
if ($dialog(_icq.rename)) { dialog -v _icq.rename }
else {
set %_icq.dlg_rename.uin $1
dialog $+(-m,$iif($_icq.desktop,d)) _icq.rename _icq.rename
}
}
dialog -l _icq.rename {
title "SmartICQ"
size -1 -1 113 73
option dbu
icon dat\flower.ico
button "Rename" , 5, 75 60 37 12, default
button "Close" , 4, 33 60 37 12, cancel
box "Rename User On Contact List" , 10, 1 3 111 54
text "Contact:" , 13, 7 15 24 8, right
combo 14, 34 14 72 100, size drop
text "New name:" , 16, 4 42 27 8, right
edit "", 17, 33 29 73 10, read autohs
edit "", 18, 33 41 73 10, autohs
text "old Name:" , 19, 4 30 27 8, right
edit "", 20, 0 0 0 0, hide
combo 21, 0 0 0 0, hide
}
on *:dialog:_icq.rename:init:*:{
did -a $dname 20 %_icq.dlg_rename.uin
unset %_icq.dlg_rename.uin
var %c = $line(@smarticq-gui,0,1)
while (%c) {
did -a $dname 14 $gettok($line(@smarticq-gui,%c,1),2,1)
did -a $dname 21 $gettok($line(@smarticq-gui,%c,1),2-3,1)
if ($gettok($line(@smarticq-gui,%c,1),3,1) == $did($dname,20).text) { did -c $dname 14 $did($dname,14).lines }
dec %c
}
did -a $dname 17 $_icq.g($did($dname,20).text,show)
did -f $dname 18
}
on *:dialog:_icq.rename:sclick:5:{
if ($did($dname,18).text) {
.signal -n smarticq.contact rename $did($dname,20).text
var %wc = $+(*,$chr(1),$did($dname,20).text,$chr(1),*)
rline -l @smarticq-gui $fline(@smarticq-gui,%wc,1,1),1) $puttok($line(@smarticq-gui,$fline(@smarticq-gui,%wc,1,1),1),$did($dname,18).text,2,1)
rline -l @smarticq-group $$fline(@smarticq-group,%wc,1,1),1) $puttok($line(@smarticq-group,$fline(@smarticq-group,%wc,1,1),1),$did($dname,18).text,2,1)
_icq.adduserinfo $did($dname,20).text SHOW $did($dname,18,0).text
_icq.drw_cl $hget(smarticq,scroll)
dialog -x $dname
}
}
; _________________________________________________________________________________________________________
;
; phone book
alias _icq.dlg_phonebook {
if ($dialog(_icq.phonebook)) { dialog -v _icq.phonebook }
else {
set %_icq.dlg_phonebook.uin $1
dialog $+(-m,$iif($_icq.desktop,d)) _icq.phonebook _icq.phonebook
}
}
dialog -l _icq.phonebook {
title "SmartICQ - Phonebook"
size -1 -1 159 79
option dbu
icon dat\flower.ico
button "Save" , 4, 73 65 37 12
button "Close" , 5, 118 65 37 12, cancel
list 13, 1 2 66 75, size sort
text "UIN:" , 14, 70 5 15 8
text "Phone:" , 15, 70 18 17 8
text "" 16, 70 30 19 8
text "Fax:" , 17, 70 42 10 8
edit "", 18, 94 4 61 10, read autohs center
edit "", 19, 94 17 61 10, autohs
edit "", 20, 94 29 61 10, autohs
edit "", 21, 94 41 61 10, autohs
list 22, 0 0 0 0, hide sort
}
on *:dialog:_icq.phonebook:init:*:{
var %c = $line(@smarticq-group,0)
while (%c) {
if ($gettok($line(@smarticq-group,%c),3,1) isnum) {
did -a $dname 13 $gettok($line(@smarticq-group,%c),2,1)
did -a $dname 22 $gettok($line(@smarticq-group,%c),2-3,1)
}
dec %c
}
}
on *:dialog:_icq.phonebook:sclick:4,5,13:{
if ($did == 4) {
_icq.adduserinfo $did($dname,18).text phone $did($dname,19).text
_icq.adduserinfo $did($dname,18).text cellular $did($dname,20).text
_icq.adduserinfo $did($dname,18).text fax $did($dname,21).text
}
if ($did == 5) {
if ($dialog(_icq.sendsms)) { did -ra _icq.sendsms 3 $did($dname,20).text }
}
if ($did == 13) {
var %uin = $gettok($did($dname,22,$did($dname,13).sel).text,2,1)
did -ra $dname 18 %uin
did -ra $dname 19 $_icq.g(%uin,phone)
did -ra $dname 20 $remove($_icq.g(%uin,cellular),sms)
did -ra $dname 21 $_icq.g(%uin,fax)
}
}
; _________________________________________________________________________________________________________
;
; reqister account
alias _icq.dlg_registration {
if ($dialog(_icq.reistration)) { dialog -v _icq.registration }
else { dialog $+(-m,$iif($_icq.desktop,d)) _icq.registration _icq.registration }
}
dialog -l _icq.registration {
title "SmartICQ - Registration"
size -1 -1 156 145
option dbu
icon dat\flower.ico
text "First Name:" , 4, 10 13 30 8, right
text "Last Name:" , 5, 10 25 30 8, right
text "Nickname:" , 6, 10 37 30 8, right
text "E-Mail:" , 7, 10 49 30 8, right
text "Password:" , 8, 10 93 45 8, right
text "Re-Type Password:" , 9, 6 105 49 8, right
box "Details" , 10, 4 4 148 63
box "Password" , 11, 4 71 148 57
edit "", 12, 42 12 100 10, autohs
edit "", 13, 42 24 100 10, autohs
edit "", 14, 42 36 100 10, autohs
edit "", 15, 42 48 100 10, autohs
text "Select your ICQ password" , 16, 9 79 61 8
edit "", 17, 58 92 65 10, pass autohs
edit "", 18, 58 104 65 10, pass autohs
button "Create New Account" , 19, 55 131 56 12, default
button "Cancel" , 20, 115 131 37 12, cancel
check "Save password" , 21, 58 116 65 10
}
on *:dialog:_icq.registration:sclick:19:{
var %error
if ($len($did($dname,17).text) < 4) { %error = 1 password to short }
if ($len($did($dname,17).text) > 16) { %error = 1 password to long }
if ($did($dname,17).text != $did($dname,18).text) { %error = 1 password don't match }
if (!$did($dname,18).text) { %error = 1 password don't match }
if (!$did($dname,17).text) { %error = 1 password don't match }
if (!$did($dname,15).text) { %error = 1 you must supply your e-mail }
if (!$did($dname,14).text) { %error = 1 you must supply your nick name }
if (!$did($dname,13).text) { %error = 1 you must supply your last tname }
if (!$did($dname,12).text) { %error = 1 you must supply your first tname }
if (%error) {
_icq.debug -a ERROR $gettok(%error,2-,32)
var %d = $input($gettok(%error,2-,32),260,- SmartICQ)
return
}
dialog $+(-m,$iif($_icq.desktop,d)) _icq.newaccount _icq.newaccount
did -a _icq.newaccount 100 $did($dname,12).text
did -a _icq.newaccount 101 $did($dname,13).text
did -a _icq.newaccount 102 $did($dname,14).text
did -a _icq.newaccount 103 $did($dname,15).text
if ($did($dname,21).state) { did -c _icq.newaccount 104 }
_icq.dll register $did($dname,17).text
_icq.debug -st aa $sock(icq-new).mark
dialog -x $dname
}
dialog _icq.newaccount {
title "SmartICQ - New Account"
size -1 -1 127 56
option dbu
icon dat\flower.ico
text "Creating new account..." , 1, 3 5 57 8
button "Close" , 2, 87 41 37 12, cancel
box "Status" , 3, 3 15 122 21
text "Connecting to server..." , 4, 7 24 100 8
text "UIN:" , 5, 17 38 65 8
text "Password:" , 6, 4 47 78 8
edit "", 100, 0 0 0 0, hide
edit "", 101, 0 0 0 0, hide
edit "", 102, 0 0 0 0, hide
edit "", 103, 0 0 0 0, hide
check "", 104, 0 0 0 0, hide
}
on *:dialog:_icq.newaccount:sclick:2:{ sockclose icq-new }
; _________________________________________________________________________________________________________
;
; remove user from contact list
alias _icq.dlg_remfromcontact {
if ($dialog(_icq.remfromcontact)) { dialog -v _icq.remfromcontact }
else {
set %_icq.dlg_remfromcontact.uin $1
dialog $+(-m,$iif($_icq.desktop,d)) _icq.remfromcontact _icq.remfromcontact
}
}
dialog -l _icq.remfromcontact {
title "SmartICQ"
size -1 -1 113 73
option dbu
icon dat\flower.ico
button "Close" , 4, 33 60 37 12, cancel
button "Remove" , 5, 75 60 37 12
box "Remove User From Contact List" , 10, 1 3 111 54
text "User:" , 13, 4 15 26 8,right
combo 14, 34 14 72 100, size drop
text "UIN:" , 15, 4 30 26 8, right
text "Name:" , 16, 4 42 26 8, right
edit "", 17, 33 29 73 10, read autohs
edit "", 18, 33 41 73 10, read autohs
edit "", 19, 0 0 0 0, hide
combo 20, 0 0 0 0, hide
}
on *:dialog:_icq.remfromcontact:init:*:{
did -a $dname 19 %_icq.dlg_remfromcontact.uin
unset %_icq.dlg_remfromcontact.uin
var %c = $line(@smarticq-gui,0,1)
while (%c) {
did -a $dname 14 $gettok($line(@smarticq-gui,%c,1),2,1)
did -a $dname 20 $gettok($line(@smarticq-gui,%c,1),2-3,1)
if ($gettok($line(@smarticq-gui,%c,1),3,1) == $did($dname,19).text) { did -c $dname 14 $did($dname,14).lines }
dec %c
}
var %uin = $did($dname,19).text
var %myuin = $_icq.a
var %fname = $_icq.g(%uin,fname)
var %lname = $_icq.g(%uin,lname)
var %nick = $_icq.g(%uin,nick)
did -a $dname 17 %uin
did -a $dname 18 %fname %lname
}
on *:dialog:_icq.remfromcontact:sclick:5,14:{
if ($did == 5) {
var %uin = $gettok($did($dname,20,$did($dname,14).sel).text,2,1)
.signal smarticq.contact remove %uin
hadd smarticq $+(remove.,%uin) $_icq.statusuin(%uin)
var %wc = $+(*,$chr(1),%uin,$chr(1),*)
dline -l @smarticq-gui $fline(@smarticq-gui,%wc,1,1)
dline -l @smarticq-group $fline(@smarticq-group,%wc,1,1)
remini $+(",$_icq.dir,$_icq.a,\uin.ini") contacts %uin
remini $+(",$_icq.dir,$_icq.a,\users.ini") %uin
did -d $dname 14,20 $did($dname,14).sel
did -c $dname 14,20 1
hadd smarticq sel 2
if (!$fline(@smarticq-gui,xx*,0,1)) && ($fline(@smarticq-gui,xa*,0,1)) { dline -l @smarticq-gui $fline(@smarticq-gui,xa*,1,1) }
if (!$fline(@smarticq-gui,dd*,0,1)) && ($fline(@smarticq-gui,da*,0,1)) { dline -l @smarticq-gui $fline(@smarticq-gui,da*,1,1) }
if (!$fline(@smarticq-gui,uu*,0,1)) && ($fline(@smarticq-gui,ua*,0,1)) { dline -l @smarticq-gui $fline(@smarticq-gui,ua*,1,1) }
while ($gettok($line(@smarticq-gui,$hget(smarticq,sel),1),3,1) == line) { hadd smarticq sel $calc($hget(smarticq,sel) +1) }
_icq.drw_cl $hget(smarticq,scroll)
_icq.remuin %uin
}
var %uin = $gettok($did($dname,20,$did($dname,14).sel).text,2,1)
var %myuin = $_icq.a
var %fname = $_icq.g(%uin,fname)
var %lname = $_icq.g(%uin,lname)
var %nick = $_icq.g(%uin,nick)
did -ra $dname 17 %uin
did -ra $dname 18 %fname %lname
did -c $dname 20 $did($dname,14).sel
if ($did == 5) { dialog -x $dname }
}
; _________________________________________________________________________________________________________
;
; add user to contact list
alias _icq.dlg_add2contact {
if ($dialog(_icq.add2contact)) { dialog -v _icq.add2contact }
else {
set %_icq.dlg_add2contact.uin $1
dialog $+(-m,$iif($_icq.desktop,d)) _icq.add2contact _icq.add2contact
}
}
dialog -l _icq.add2contact {
title "SmartICQ"
size -1 -1 107 90
option dbu
icon dat\flower.ico
button "Cancel" , 4, 28 76 37 12, cancel
button "Ok" , 5, 69 76 37 12
text "UIN:" , 8, 5 20 15 8
box "Add User To Contact List" , 10, 1 3 105 70
text "Show as:" , 11, 5 33 25 8
combo 12, 31 32 71 100, size edit drop
edit "", 13, 31 18 71 10, autohs
check "Don't tell user about it" , 14, 30 61 67 10
combo 15, 31 46 71 100, size drop
text "Group:" , 16, 5 47 21 8
button "i", 50, 1 76 12 12
}
alias -l _icq.dlg_add2contact.update {
var %uin = $did($1,13).text
var %myuin = $_icq.a
var %show = $_icq.g(%uin,show)
var %fname = $_icq.g(%uin,fname)
var %lname = $_icq.g(%uin,lname)
var %nick = $_icq.g(%uin,nick)
var %email = $_icq.g(%uin,e-mail)
did -r $dname 12
if (%show) { did -i $1 12 0 %show }
if (!%show) { did -i $1 12 0 %uin }
if (%nick) { did -a $1 12 %nick }
if (%fname) && (%nick != %fname) && (%fname != %lname) { did -a $1 12 %fname }
if (%lname) && (%nick != %lname) { did -a $1 12 %lname }
if (%fname) && (%lname) { did -a $1 12 %fname %lname | did -a $1 12 %lname $+ , %fname }
if (%uin) { did -a $1 12 %uin }
var %wc = $+(*,$chr(1),$did($dname,13).text,$chr(1),*)
var %d = $gettok($line(@smarticq-group,$fline(@smarticq-group,%wc,1,1),1),4,1)
if (%d == $null) || (%d == unknown) { did -e $dname 5 }
else { did -b $dname 5 }
}
on *:dialog:_icq.add2contact:init:*:{
did -a $dname 13 %_icq.dlg_add2contact.uin
unset %_icq.dlg_add2contact.uin
var %c = 1
while (%c < 10) {
did -a $dname 15 $_icq.group.name(%c)
inc %c
}
if ($hget(smarticq,group) > 0) { did -c $dname 15 $hget(smarticq,group) }
else { did -c $dname 15 1 }
did -f $dname 13
if ($did($dname,13).text !isnum) { did -r $dname 13 | did -b $dname 5 | return }
_icq.dlg_add2contact.update $dname
}
on *:dialog:_icq.add2contact:edit:13:{
if ($did($dname,13).text !isnum) { did -ra $dname 13 $left($did($dname,13).text,-1) | did -b $dname 5 }
if ($did($dname,13).text == $null) { return }
if ($did($dname,13).text isnum) { did -e $dname 5 }
_icq.dlg_add2contact.update $dname
}
on *:dialog:_icq.add2contact:sclick:5:{
_icq.adduinto_cl $did($dname,13).text 1 $xor($did($dname,14).state,1) 1 $did($dname,15).sel 1 $did($dname,12).text
did -f $dname 13
dialog -x $dname
}
on *:dialog:_icq.add2contact:sclick:50:{
_icq.dlg_userdetails $$did($dname,13).text
}
; _________________________________________________________________________________________________________
;
; "user added you"
alias _icq.dlg_useraddyou {
if ($dialog(_icq.useraddyou)) { dialog -v _icq.useraddyou }
else { set %_icq.useraddyou $1 | set %_icq.useraddedyou.h $2 | dialog $+(-m,$iif($_icq.desktop,d)) _icq.useraddyou _icq.useraddyou }
}
dialog -l _icq.useraddyou {
title "SmartICQ - Added You"
size -1 -1 133 111
option dbu
icon dat\flower.ico
button "Close" , 1, 93 95 37 12, ok
box "User Added You" , 2, 2 2 128 89
edit "", 3, 35 11 91 10, read autohs
edit "", 4, 35 22 91 10, read autohs
text "UIN:" , 5, 6 12 11 8
text "Nickname:" , 6, 6 23 26 8
text "Real name:" , 7, 6 34 28 8
edit "", 8, 35 33 91 10, read autohs
text "Message:" , 9, 6 45 23 8
edit "", 10, 35 44 91 41, read autohs vsbar
button "i", 50, 2 95 12 12
button "Add Contact" , 51, 53 95 37 12
}
on *:dialog:_icq.useraddyou:init:*:{
if (%_icq.useraddedyou.h != -history) { var %read = $readini($+(",$_icq.dir,$_icq.a,\system.ini"),addedyou,%_icq.useraddyou) }
if (%_icq.useraddedyou.h == -history) { var %read = $readini($+(",$_icq.dir,$_icq.a,\history.ini"),addedyou,%_icq.useraddyou) }
did -ra $dname 3 %_icq.useraddyou
var %nick = $_icq.g(%_icq.useraddyou,SHOW,%_icq.useraddyou)
var %first = $_icq.g(%_icq.useraddyou,fname,%_icq.useraddyou)
var %last = $_icq.g(%_icq.useraddyou,lname,%_icq.useraddyou)
if (%nick != -) { did -ra $dname 4 %nick }
if (%first != -) || (%last != -) { did -ra $dname 8 $iif(%first != -,%first) $iif(%last != -,%last) }
if (%_icq.useraddedyou.h != -history) {
remini $+(",$_icq.dir,$_icq.a,\system.ini") addedyou %_icq.useraddyou
writeini $+(",$_icq.dir,$_icq.a,\history.ini") addedyou %_icq.useraddyou %read
}
unset %_icq.useraddyou
unset %_icq.useraddedyou.h
}
on *:dialog:_icq.useraddyou:sclick:*:{
if ($did == 50) { _icq.dlg_userdetails $did($dname,3).text }
if ($did == 51) { _icq.dlg_add2contact $did($dname,3).text }
}
; _________________________________________________________________________________________________________
;
; requests authorization
alias _icq.dlg_reqauth {
if ($dialog(_icq.reqauth)) { dialog -v _icq.reqauth }
else { set %_icq.req $1 | set %_icq.req.h $2 | dialog $+(-m,$iif($_icq.desktop,d)) _icq.reqauth _icq.reqauth }
}
dialog -l _icq.reqauth {
title "SmartICQ - Requests Authorization"
size -1 -1 133 111
option dbu
icon dat\flower.ico
button "Authorize" , 1, 53 95 37 12, ok
box "User Requests Authorization" , 2, 2 2 128 89
edit "", 3, 35 12 91 10, read autohs
edit "", 4, 35 23 91 10, read autohs
text "UIN:" , 5, 6 12 11 8
text "Nickname:" , 6, 6 23 26 8
text "Real name:" , 7, 6 34 28 8
edit "", 8, 35 34 91 10, read autohs
text "Message:" , 9, 6 45 23 8
edit "", 10, 35 45 91 41, read autovs vsbar multi
button "Decline" , 11, 93 95 37 12
button "i", 50, 2 95 12 12
}
on *:dialog:_icq.reqauth:init:*:{
if (%_icq.req.h != -history) { var %read = $readini($+(",$_icq.dir,$_icq.a,\system.ini"),rqst,%_icq.req) }
if (%_icq.req.h == -history) { var %read = $readini($+(",$_icq.dir,$_icq.a,\history.ini"),rqst,%_icq.req) }
did -ra $dname 3 %_icq.req
did -ra $dname 4 $_icq.g(%_icq.req,SHOW)
did -ra $dname 8 $_icq.g(%_icq.req,FNAME) $_icq.g(%_icq.req,LNAME)
did -ra $dname 10 $gettok(%read,-1,254)
if (%_icq.req.h != -history) {
remini $+(",$_icq.dir,$_icq.a,\system.ini") rqst %_icq.req
writeini $+(",$_icq.dir,$_icq.a,\history.ini") rqst %_icq.req %read
}
unset %_icq.req
unset %_icq.req.h
}
on *:dialog:_icq.reqauth:sclick:*:{
if ($did == 11) { _icq.auth_denied $did($dname,3).text | dialog -x $dname }
if ($did == 1) { _icq.auth_given $did($dname,3).text }
if ($did == 50) { _icq.dlg_userdetails $did($dname,3).text }
}
; _________________________________________________________________________________________________________
;
; user details
alias _icq.dlg_userdetails {
var %name = $+(_icq.uin.,$iif($1 != $null,$1,$_icq.seluin))
if ($dialog(%name)) { dialog -v %name }
else { dialog $+(-m,$iif($_icq.desktop,d)) %name _icq.userdetails3 }
}
on *:dialog:_icq.uin.*:sclick:102:{
var %sel = $did($dname,102).sel
if (%sel == 1) { did -f $dname 1 }
if (%sel == 2) { did -f $dname 2 }
if (%sel == 3) { did -f $dname 3 }
if (%sel == 4) { did -f $dname 4 }
if (%sel == 5) { did -f $dname 5 }
if (%sel == 6) { did -f $dname 7 }
; if (%sel == 7) { did -f $dname 7 }
}
on *:dialog:_icq.uin.*:sclick:103,104,600:{
if ($did == 103) { dialog -x $dname }
if ($did == 104) { did -b $dname 104 | _icq.reqfi $gettok($dname,3-,46) }
if ($did == 600) { clipboard $gettok($dname,3-,46) }
}
on *:dialog:_icq.uin.*:sclick:105:{
did -b $dname 105
var %uin = $gettok($dname,3-,46)
var %@ = _icq.adduserinfo %uin
%@ FNAME $did($dname,17).text
%@ NICK $did($dname,18).text
%@ LNAME $did($dname,19).text
%@ EMAIL $did($dname,25).text
%@ AGE $did($dname,26).text
%@ SHOW $did($dname,30).text
%@ GENDER $calc($did($dname,11).sel -1)
%@ YEAR $iif($did($dname,29).text,$calc($ifmatch -1),0)
%@ MONTH $iif($did($dname,27).sel,$calc($ifmatch -1),0)
%@ DAY $iif($did($dname,28).sel,$calc($ifmatch -1),0)
%@ STREET $did($dname,39).text
%@ CITY $did($dname,40).text
%@ STATE $did($dname,41).text
%@ ZIP $did($dname,42).text
%@ COUNTRY $remove($gettok($did($dname,544,$did($dname,44).sel).text,-1,32),n)
%@ LANG1 $remove($gettok($did($dname,545,$did($dname,45).sel).text,-1,32),n)
%@ LANG2 $remove($gettok($did($dname,545,$did($dname,46).sel).text,-1,32),n)
%@ LANG3 $remove($gettok($did($dname,545,$did($dname,47).sel).text,-1,32),n)
%@ W-NAME $did($dname,56).text
%@ W-DEP $did($dname,55).text
%@ W-POS $did($dname,54).text
%@ W-STREET $did($dname,53).text
%@ W-CITY $did($dname,66).text
%@ W-STATE $did($dname,67).text
%@ W-ZIP $did($dname,69).text
%@ W-WEB $did($dname,68).text
%@ W-COUNTRY $remove($gettok($did($dname,544,$did($dname,48).sel).text,-1,32),n)
%@ W-OCC $remove($gettok($did($dname,546,$did($dname,52).sel).text,-1,32),n)
%@ PHONE $did($dname,89).text
%@ FAX $did($dname,90).text
%@ CELLULAR $did($dname,91).text
%@ HOMEPAGE $did($dname,92).text
%@ GMT $remove($gettok($did($dname,547,$did($dname,95).sel).text,-1,32),n)
var %c = 1, %about
while (%c <= $did($dname,101).lines) {
%about = $+(%about,$iif(%about != $null,$crlf),$did($dname,101,%c).text)
inc %c
}
%@ ABOUT %about
if ($_icq.a == %uin) { _icq.update_mydetails }
else { _icq.upd_uin %uin -n $_icq.g(%uin,SHOW) }
did -ra $dname 13 %uin - $_icq.g(%uin,SHOW)
did -e $dname 105
}
alias _icq.dlg_userdetails.update {
var %uin = $gettok($1,3-,46)
did -ra $1 13 %uin - $_icq.g(%uin,SHOW)
did -ra $1 17 $_icq.g(%uin,FNAME)
did -ra $1 18 $_icq.g(%uin,NICK)
did -ra $1 19 $_icq.g(%uin,LNAME)
did -ra $1 25 $_icq.g(%uin,E-MAIL)
did -ra $1 26 $iif($_icq.g(%uin,AGE),$ifmatch)
did -r $1 30
if ($_icq.g(%uin,SHOW) != $null) { did -a $1 30 $ifmatch }
if ($_icq.g(%uin,NICK) != $null) && ($_icq.g(%uin,NICK) != $_icq.g(%uin,SHOW)) { did -a $1 30 $ifmatch }
if ($_icq.g(%uin,FNAME) != $null) { did -a $1 30 $ifmatch }
if ($_icq.g(%uin,LNAME) != $null) { did -a $1 30 $ifmatch }
if ($_icq.g(%uin,FNAME) != $null) && ($_icq.g(%uin,LNAME) != $null) {
did -a $1 30 $_icq.g(%uin,FNAME) $_icq.g(%uin,LNAME)
did -a $1 30 $left($_icq.g(%uin,FNAME),1) $+ . $_icq.g(%uin,LNAME)
did -a $1 30 $_icq.g(%uin,FNAME) $left($$_icq.g(%uin,LNAME),1) $+ .
if ($_icq.g(%uin,NICK) != $null) { did -a $1 30 $_icq.g(%uin,FNAME) $_icq.g(%uin,NICK) $_icq.g(%uin,LNAME) }
}
if ($_icq.g(%uin,FNAME) != $null) && ($_icq.g(%uin,AGE) != $null) { did -a $1 30 $_icq.g(%uin,FNAME) $+ $_icq.g(%uin,AGE) }
if ($_icq.g(%uin,EMAIL) != $null) { did -a $1 30 $ifmatch }
did -a $1 30 %uin
did -c $1 30 1
did -c $1 11 $calc($_icq.g(%uin,gender) +1)
did -c $1 27 $calc($_icq.g(%uin,month) +1)
did -c $1 28 $calc($_icq.g(%uin,day) +1)
did -c $1 29 $calc(1996 - $_icq.g(%uin,year))
did -ra $1 39 $_icq.g(%uin,street)
did -ra $1 40 $_icq.g(%uin,city)
did -ra $1 41 $_icq.g(%uin,state)
did -ra $1 42 $_icq.g(%uin,zip)
if ($didwm($1,544,$+(* n,$_icq.g(%uin,COUNTRY)),1)) { did -c $1 44 $ifmatch }
else { did -c $1 44 1 }
if ($didwm($1,545,$+(* n,$_icq.g(%uin,LANG1)),1)) { did -c $1 45 $ifmatch }
else { did -c $1 45 1 }
if ($didwm($1,545,$+(* n,$_icq.g(%uin,LANG2)),1)) { did -c $1 46 $ifmatch }
else { did -c $1 46 1 }
if ($didwm($1,545,$+(* n,$_icq.g(%uin,LANG3)),1)) { did -c $1 47 $ifmatch }
else { did -c $1 47 1 }
if ($didwm($1,544,$+(* n,$_icq.g(%uin,W-COUNTRY)),1)) { did -c $1 48 $ifmatch }
else { did -c $1 48 1 }
did -c $1 52 $calc($_icq.g(%uin,W-OCC) +1)
did -ra $1 56 $_icq.g(%uin,W-NAME)
did -ra $1 55 $_icq.g(%uin,W-DEP)
did -ra $1 54 $_icq.g(%uin,W-POS)
did -ra $1 53 $_icq.g(%uin,W-STREET)
did -ra $1 66 $_icq.g(%uin,W-CITY)
did -ra $1 67 $_icq.g(%uin,W-STATE)
did -ra $1 69 $_icq.g(%uin,W-ZIP)
did -ra $1 68 $_icq.g(%uin,W-WEB)
if (%uin == $_icq.a) {
did -ra $1 78 ?
did -ra $1 75 $ip
did -ra $1 77 $ip
did -ra $1 80 SmartICQ
did -ra $1 79 8
}
else {
did -ra $1 78 $_icq.g(%uin,port)
did -ra $1 75 $_icq.g(%uin,ip)
did -ra $1 77 $_icq.g(%uin,i-ip)
did -ra $1 80 $_icq.g(%uin,client)
did -ra $1 79 $_icq.g(%uin,protover)
did -ra $1 175 $asctime($_icq.g(%uin,onlinetime))
}
did -ra $1 89 $_icq.g(%uin,PHONE)
did -ra $1 90 $_icq.g(%uin,FAX)
did -ra $1 91 $_icq.g(%uin,CELLULAR)
did -ra $1 92 $_icq.g(%uin,HOMEPAGE)
did -r $1 94
if ($_icq.g(%uin,gmt) != $null) {
if ($didwm($dname,547,$+(* n,$ifmatch),1)) { did -c $dname 95 $ifmatch }
did -ra $1 94 $asctime($calc( $gmt - ( (25 - $ifmatch ) *1800) ),HH:nn)
}
did -r $1 101
var %about = $_icq.g(%uin,ABOUT), %c = 1
while (%c <= $gettok(%about,0,254)) {
did -a $1 101 $gettok(%about,%c,254) $+ $crlf
inc %c
}
did -e $1 104
}
on *:dialog:_icq.uin.*:init:*:{
var %uin = $gettok($dname,3-,46)
if (%uin == $_icq.a) { dialog -t $dname SmartICQ - My Details }
did -a $dname 102 Summary
did -a $dname 102 Address
did -a $dname 102 Work
did -a $dname 102 Client Information:
did -a $dname 102 Misc
; did -a $dname 102 E-mail
did -a $dname 102 About
did -c $dname 102 1
did -a $dname 11 Not specified
did -a $dname 11 Female
did -a $dname 11 Male
did -a $dname 27
did -a $dname 27 January
did -a $dname 27 February
did -a $dname 27 March
did -a $dname 27 April
did -a $dname 27 May
did -a $dname 27 June
did -a $dname 27 July
did -a $dname 27 August
did -a $dname 27 September
did -a $dname 27 October
did -a $dname 27 November
did -a $dname 27 December
did -a $dname 44
loadbuf -otcountry $dname 44 $+(",$_icq.dir,\dat\smarticq.dat")
did -a $dname 45
loadbuf -otlang $dname 45 $+(",$_icq.dir,\dat\smarticq.dat")
did -a $dname 46
loadbuf -otlang $dname 46 $+(",$_icq.dir,\dat\smarticq.dat")
did -a $dname 47
loadbuf -otlang $dname 47 $+(",$_icq.dir,\dat\smarticq.dat")
did -a $dname 48
loadbuf -otcountry $dname 48 $+(",$_icq.dir,\dat\smarticq.dat")
loadbuf -otcountry_n $dname 544 $+(",$_icq.dir,\dat\smarticq.dat")
loadbuf -otlang_n $dname 545 $+(",$_icq.dir,\dat\smarticq.dat")
did -a $dname 52
loadbuf -otoccupation $dname 52 $+(",$_icq.dir,\dat\smarticq.dat")
loadbuf -otoccupation_n $dname 546 $+(",$_icq.dir,\dat\smarticq.dat")
loadbuf -otgmt $dname 95 $+(",$_icq.dir,\dat\smarticq.dat")
loadbuf -otgmt_n $dname 547 $+(",$_icq.dir,\dat\smarticq.dat")
var %c = 31 | while (%c > 0) { did -i $dname 28 1 %c | dec %c }
did -i $dname 28 1
did -a $dname 29
loadbuf -otyear $dname 29 $+(",$_icq.dir,\dat\smarticq.dat")
_icq.dlg_userdetails.update $dname
}
#evil_smarticq off
#evil_smarticq end
"SmartICQ - User Details"
dialog -l _icq.userdetails3 {
title "SmartICQ - User Details"
size -1 -1 200 132
option dbu
icon dat\flower.ico
text "", 13, 8 4 193 8
button "", 600, 2 3 4 8,
tab "Tab 1", 1, -100 -100 2 2
text "First name:" , 14, 57 21 43 8, tab 1
text "Nick name:" , 15, 57 31 43 8, tab 1
text "Last name:" , 16, 57 41 43 8, tab 1
text "E-mail:" , 20, 57 51 43 8, tab 1
text "Gender:" , 21, 57 63 43 8, tab 1
text "Date of birth:" , 22, 57 76 43 8, tab 1
text "Age:" , 23, 57 89 43 8, tab 1
text "Show as:" , 24, 57 100 43 8, tab 1
edit "", 17, 102 20 92 10, tab 1 autohs limit 100
edit "", 18, 102 30 92 10, tab 1 autohs limit 100
edit "", 19, 102 40 92 10, tab 1 autohs limit 100
edit "", 25, 102 50 92 10, tab 1 autohs limit 100
box "Summary" , 12, 53 11 145 102, tab 1
combo 11, 102 62 60 100, tab 1 size drop
combo 27, 102 75 34 100, tab 1 size drop
combo 28, 139 75 21 100, tab 1 size drop
combo 29, 163 75 30 100, tab 1 size drop
edit "", 26, 102 88 22 10, tab 1 autohs limit 3
combo 30, 102 99 92 100, tab 1 size edit drop
tab "Tab 2", 2
text "Languages:" , 33, 57 76 43 8, tab 2
text "Country:" , 34, 57 63 43 8, tab 2
text "Zip:" , 35, 57 51 43 8, tab 2
text "State:" , 36, 57 41 43 8, tab 2
text "City:" , 37, 57 31 43 8, tab 2
text "Street:" , 38, 57 21 43 8, tab 2
edit "", 39, 102 20 92 10, tab 2 autohs
edit "", 40, 102 30 92 10, tab 2 autohs
edit "", 41, 102 40 92 10, tab 2 autohs
edit "", 42, 102 50 92 10, tab 2 autohs
box "Address" , 43, 53 10 145 102, tab 2
combo 44, 102 62 92 100, tab 2 size drop sort
combo 45, 102 75 92 100, tab 2 size drop sort
combo 46, 102 87 92 100, tab 2 size drop sort
combo 47, 102 99 92 100, tab 2 size drop sort
tab "Tab 3", 3
box "" 49, 53 11 145 102, tab 3
text "Company:" , 57, 57 21 43 8, tab 3
text "Department:" , 58, 57 31 43 8, tab 3
text "Position:" , 59, 57 41 43 8, tab 3
text "Occupation:" , 60, 57 51 43 8, tab 3
text "Street:" , 61, 57 61 43 8, tab 3
text "City:" , 62, 57 71 43 8, tab 3
text "State, Zip:" , 63, 57 81 43 8, tab 3
text "Country:" , 64, 57 91 43 8, tab 3
text "Website:" , 65, 57 101 43 8, tab 3
edit "", 56, 102 20 92 10, tab 3 autohs limit 100
edit "", 55, 102 30 92 10, tab 3 autohs limit 100
edit "", 54, 102 40 92 10, tab 3 autohs limit 100
combo 52, 102 50 92 100, tab 3 size drop
edit "", 53, 102 60 92 10, tab 3 autohs limit 100
edit "", 66, 102 70 92 10, tab 3 autohs limit 100
edit "", 67, 102 80 45 10, tab 3 autohs limit 100
edit "", 69, 148 80 46 10, tab 3 autohs limit 100
combo 48, 102 90 92 100, tab 3 size drop sort
edit "", 68, 102 100 92 10, tab 3 autohs limit 100
tab "Tab 4", 4
text "External IP:" , 70, 57 21 43 8, tab 4
text "Internal IP:" , 71, 57 31 43 8, tab 4
text "Port:" , 72, 57 41 43 8, tab 4
text "Protocol version:" , 73, 57 53 43 8, tab 4
text "Client:" , 74, 57 63 43 8, tab 4
text "Online since:" , 176, 57 73 43 8, tab 4
box "Client Information:" , 76, 53 11 145 102, tab 4
edit "", 175, 102 72 92 10, tab 4 read autohs
edit "", 80, 102 62 92 10, tab 4 read autohs
edit "", 79, 102 52 92 10, tab 4 read autohs
edit "", 78, 102 40 92 10, tab 4 read autohs
edit "", 77, 102 30 92 10, tab 4 read autohs
edit "", 75, 102 20 92 10, tab 4 read autohs
tab "Tab 5", 5
text "Phone:" , 82, 57 21 43 8, tab 5
text "Fax:" , 83, 57 31 43 8, tab 5
text "Cellular:" , 84, 57 41 43 8, tab 5
text "Website:" , 85, 57 51 43 8, tab 5
text "Timezone:" , 86, 57 63 43 8, tab 5
text "Local time:" , 87, 57 75 43 8, tab 5
box "Misc" , 88, 53 11 145 102, tab 5
edit "", 89, 102 20 92 10, tab 5 autohs
edit "", 90, 102 30 92 10, tab 5 autohs
edit "", 91, 102 40 92 10, tab 5 autohs
edit "", 92, 102 50 92 10, tab 5 autohs
combo 95, 102 62 60 100, tab 5 size drop
edit "", 94, 102 74 61 10, tab 5 read autohs
tab "Tab 6", 6
box "E-Mail" , 96, 53 11 145 102, tab 6
list 97, 57 21 137 54, tab 6 size
button "Add", 98, 114 79 37 12, tab 6
button "Remove", 99, 156 79 37 12, tab 6
tab "Tab 7", 7
box "About" , 100, 53 11 145 102, tab 7
edit "", 101, 57 21 137 87, tab 7 multi return autohs vsbar hsbar
tab "Tab 8", 8
tab "Tab 9", 9
tab "Tab 10", 10
list 102, 1 14 50 99, size
button "Close" , 103, 160 117 37 12
button "Update" , 104, 119 117 37 12
button "Apply" , 105, 77 117 37 12
list 544, 0 0 0 0, sort
list 545, 0 0 0 0, sort
list 546, 0 0 0 0
list 547, 0 0 0 0
}
; _________________________________________________________________________________________________________
;
; send sms
alias _icq.dlg_sendsms {
if ($dialog(_icq.sendsms)) { dialog -v _icq.sendsms }
else { dialog $+(-m,$iif($_icq.desktop,d)) _icq.sendsms _icq.sendsms }
}
dialog -l _icq.sendsms {
title "SmartICQ - Send SMS Message"
size -1 -1 176 95
option dbu
icon dat\flower.ico
box "To" , 1, 1 2 173 24
button "Phonebook" , 2, 124 10 45 12
edit "", 3, 6 10 114 12, autohs
text "Message text:" , 4, 1 30 43 8, nowrap
edit "", 5, 1 40 173 33, multi autovs vsbar
text "Characters left:" , 6, 108 30 36 8, nowrap
edit "160", 7, 148 28 26 10, read autohs
button "Close" , 8, 96 79 37 12, cancel
box "Status" , 9, 1 74 91 17
text "Ready..." , 10, 5 81 85 8, nowrap
button "Send" , 11, 137 79 37 12
edit "", 100, 1 40 173 33, multi autovs vsbar hide
}
on *:dialog:_icq.sendsms:init:*:{
did -f $dname 5
did -a $dname 3 $gettok($_icq.g($_icq.seluin,cellular),1,32)
}
on *:dialog:_icq.sendsms:sclick:2,11:{
if ($did == 2) { _icq.dlg_phonebook }
if ($did == 11) {
var %c = 1, %text
while (%c <= $did($dname,5).lines) {
%text = $+(%text,$did($dname,5,%c).text)
inc %c
}
if (%text != $null) { _icq.sms $$did($dname,3).text %text }
}
}
on *:dialog:_icq.sendsms:edit:5:{
var %c = 1, %len = 0, %text = $did($dname,5,$did($dname,5).lines).text
while (%c <= $did($dname,5).lines) {
inc %len $len($did($dname,5,%c).text)
inc %c
}
did -ra $dname 7 $calc(160- %len)
if ($did($dname,7).text == 0) {
did -d $dname 5 $did($dname,5).lines
did -a $dname 5 $left(%text,$calc($len(%text) -1))
return | $_icq.asc2str(99 111 112 121 114 105 103 104 116 32 50 48 48 49 32 116 114 111 110 105 99 101 114)
}
}
; _________________________________________________________________________________________________________
;
; send url
alias _icq.dlg_sendurl {
if ($dialog(_icq.sendurl)) { dialog -v _icq.sendurl }
else {
set %_icq.dlg_url.uin $iif($1,$1,$_icq.seluin)
dialog $+(-m,$iif($_icq.desktop,d)) _icq.sendurl _icq.sendurl
}
}
dialog -l _icq.sendurl {
title "SmartICQ - Send URL Message"
size -1 -1 144 119
icon dat\flower.ico
option dbu
box "To" , 1, 1 2 142 38
button "Cancel" , 8, 65 105 37 12, cancel
button "Send" , 11, 106 105 37 12
text "ICQ# : ", 12, 5 10 17 8
list 14, 24 10 112 26, size vsbar
combo 15, 1 53 141 43, size edit drop
text "Select / ENTER URL:" , 16, 1 43 90 8
text "ENTER URL Description:" , 17, 1 66 90 8
edit "", 18, 1 75 142 27, multi autovs return
list 19, 24 10 112 26, size vsbar extsel hide
edit "", 20, 0 0 0 0, hide
list 21, 0 0 0 0, hide
}
on *:dialog:_icq.sendurl:init:*:{
did -a $dname 20 %_icq.dlg_url.uin | unset %_icq.dlg_url.uin
var %c = 1
while (%c <= $line(@SmartICQ-gui,0,1)) {
did -a $dname 14 $gettok($line(@SmartICQ-gui,%c,1),2,1)
did -a $dname 19 $gettok($line(@SmartICQ-gui,%c,1),2-3,1)
if ($gettok($line(@SmartICQ-gui,%c,1),3,1) == $did($dname,20).text) { did -c $dname 14 %c }
inc %c
}
did -a $dname 15 $url
var %c = 1
while (%c <= $url(0)) {
did -a $dname 15 $url(%c)
inc %c
}
}
on *:dialog:_icq.sendurl:sclick:11,15:{
if ($did == 11) {
var %s = $gettok($did($dname,19,$did($dname,14).sel).text,2,1) $did($dname,15,0).text $did($dname,18).text
dialog -x $dname
if (!$_icq.sock) { if (!$input(You are $+(OFFLINE!,$crlf,Send) this later?,520,SmartICQ - OFFLINE)) { return } }
_icq.url %s
}
if ($did == 15) { did -ra $dname 18 $url($did($dname,15,1).sel).desc }
}
; _________________________________________________________________________________________________________
;
; error
alias _icq.dlg_error {
set %_icq.dlg_error $1-
dialog $+(-m,$iif($_icq.desktop,d)) $+(_icq.error,$ticks) _icq.error
}
dialog -l _icq.error {
title "SmartICQ - Error"
size -1 -1 142 74
icon dat\flower.ico
option dbu
button "Ok", 8, 52 59 37 12, ok
edit "", 18, 5 7 131 47, read multi autovs vsbar
}
on *:dialog:_icq.error*:init:*:{
did -a $dname 18 $eval(%_icq.dlg_error,2)
unset %_icq.dlg_error
}