mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Oct 2003
Posts: 143
D
Vogon poet
OP Offline
Vogon poet
D
Joined: Oct 2003
Posts: 143
Hi I been looking threw the mIRC help file all day and I cant seem to find how to make a thing where I press on a button and it shows me the select file or folder window and when i select the file it puts the path in the edit box of my dialog.

here is the dialog and what i been trying.
Code:
 dialog szipD {
  title "sZip"
  size -1 -1 147 114
  option dbu
  tab "Zip or UNZip", 1, 0 1 144 103
   [color:red] edit "", 3, 5 27 79 10, tab 1
  button "........", 4, 87 28 25 8, tab 1
  edit "", 5, 5 55 79 10, tab 1
  button "........", 6, 87 55 25 8, tab 1[/color]
  button "Zip", 7, 87 39 25 8, tab 1
  button "Un-Zip", 8, 87 66 25 8, tab 1
  edit "", 9, 6 80 129 22, tab 1 read multi
  tab "Info", 2
  edit "This add-on was made by DeathfireD, the dll was made by ClickHeRe. Please dont steel this and say you made it. dont rip peoples ideas thats HoMoSeXuAl thanks.", 10, 3 16 138 87, tab 2 read multi
  tab "Help", 11
  edit "Help well this add-on comes with a nice help file in the folder sZip.  ~Deathfire D~", 12, 3 16 138 87, tab 11 read multi
  button "Exit", 13, 15 106 116 8, default flat, ok
}
alias szipD { dialog -md szipD szipD }

ON *:DIALOG:szipD:sclick:11: {
  .timer -o 1 0 /input.seldict
}
 


The ......button should open a window that has me pic a file or folder. Then the edit box saves the location in it so when i click unzip it unzipes the file or folder from that location. This Is probly really easy, I just dont know how to open the select window and save the text inthe box and use a command.


if (Windows isin %txt.1) { /kick # $nick Windows is a badword tisk tisk tisk. }
Joined: May 2004
Posts: 24
K
Ameglian cow
Offline
Ameglian cow
K
Joined: May 2004
Posts: 24
/help $sfile
/help $sdir

smile

Joined: Oct 2003
Posts: 143
D
Vogon poet
OP Offline
Vogon poet
D
Joined: Oct 2003
Posts: 143
ha thanks dident even see it there.


if (Windows isin %txt.1) { /kick # $nick Windows is a badword tisk tisk tisk. }

Link Copied to Clipboard