mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: May 2013
Posts: 140
R
raycomp Offline OP
Vogon poet
OP Offline
Vogon poet
R
Joined: May 2013
Posts: 140
I am using this script in mIRC to copy text from channel and then save to text file. I would like to keep window visible (on top) when selecting text in channel. As it is now in it disappears when focus is in channel.

Quote:
dialog Clip {
title "Clipboard Script. V-5.0"
size -1 -1 238 198
option dbu
text "Highlight text in channel and paste - or type text here: Click save to save in snippets.txt", 1, 1 0 235 14
edit "", 2, 0 14 238 169, multi hsbar vsbar return
button "Save Text", 3, 0 183 37 15, multi
button "Read text", 4, 40 183 37 15, multi
button "Delete text", 5, 80 183 37 15, multi
}
on *:DIALOG:clip:sclick:3: {
savebuf -ao clip 2 snippets.txt
unload -rs snippets.txt
load -rs snippets.txt
}
on *:DIALOG:clip:sclick:4: {
run $mircdir $+ snippets.txt
}
on *:DIALOG:clip:sclick:5: {
/write -c snippets.txt
}

menu * {
ClipBoard Script
.Open Clipboard Dialog:/dialog -dm clip clip
}

Joined: Jul 2006
Posts: 4,149
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,149
/dialog -dmo clip clip, the o switch means on top, see /help /dialog


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Joined: May 2013
Posts: 140
R
raycomp Offline OP
Vogon poet
OP Offline
Vogon poet
R
Joined: May 2013
Posts: 140
Perfect! Thank you


Link Copied to Clipboard