mIRC Home    About    Download    Register    News    Help

Topic Options
#195839 - 03/03/08 07:22 PM $sfile, $msfile, and $sdir
7ramy Offline
Ameglian cow

Registered: 03/03/08
Posts: 27
Loc: Egypt
i suggest adding parent window attribute to those identifiers
like -2 for main mIRC window -4 for currently active window

and i suggest adding file extentions attribute to sfile and msfile

and as this is my first post here

mIRC is awesome

Top
#195840 - 03/03/08 07:57 PM Re: $sfile, $msfile, and $sdir [Re: 7ramy]
Wims Offline
Planetary brain

Registered: 31/07/06
Posts: 3475
Loc: France
Adding parent window attribute isn't a bad idea.
As for adding file extentions attribute, do you mean several extention ? because it's already possible :

Code:
$sfile(dir *.ext1;*.ext2;*.ext3,title,Oktext)

works with $msfile too
_________________________
Looking for a good help channel about mIRC? Check #mircscripting @ irc.swiftirc.net

Top
#195905 - 05/03/08 04:58 PM Re: $sfile, $msfile, and $sdir [Re: Wims]
7ramy Offline
Ameglian cow

Registered: 03/03/08
Posts: 27
Loc: Egypt
yea i didnt kno how to add several extentions
thanks for info
and plz khaled consider adding the parent window thing to those identifiers
i thought of using a special dll for doing it but i guess its easy to implement

Top
#201599 - 01/07/08 06:01 AM Re: $sfile, $msfile, and $sdir [Re: 7ramy]
7ramy Offline
Ameglian cow

Registered: 03/03/08
Posts: 27
Loc: Egypt
is that topic dead ?

Top
#201600 - 01/07/08 06:13 AM Re: $sfile, $msfile, and $sdir [Re: 7ramy]
argv0 Offline
Planetary brain

Registered: 13/10/03
Posts: 3918
Loc: Montreal, QC, Canada
Why exactly is the parent window necessary?
_________________________
- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"

Top
#201602 - 01/07/08 06:22 AM Re: $sfile, $msfile, and $sdir [Re: argv0]
7ramy Offline
Ameglian cow

Registered: 03/03/08
Posts: 27
Loc: Egypt
when creating a dialog as a desktop window with an open file button
the $sfile parent will always be main mirc window.

Top
#201606 - 01/07/08 07:05 AM Re: $sfile, $msfile, and $sdir [Re: 7ramy]
argv0 Offline
Planetary brain

Registered: 13/10/03
Posts: 3918
Loc: Montreal, QC, Canada
right, but how does this affect your script?
_________________________
- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"

Top
#201614 - 01/07/08 09:32 AM Re: $sfile, $msfile, and $sdir [Re: 7ramy]
qwerty Offline
Hoopy frood

Registered: 07/01/03
Posts: 2523
That's not how it has always worked here: if $sfile is called from clicking a button in a desktop dialog, the parent of the select file box is that dialog, not the main mirc window (eg the file select box prevents access to that desktop dialog but not to the main window).
_________________________
/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com

Top
#203024 - 05/08/08 01:49 PM Re: $sfile, $msfile, and $sdir [Re: qwerty]
7ramy Offline
Ameglian cow

Registered: 03/03/08
Posts: 27
Loc: Egypt
this is not true
at least for DCX dialogs
and if the dialog is not created on desktop
the issue will be the same
as u can ignore the sfile dialog and switch back to the source dialog pressing the same button again and re-executing the script!
i found a fix on DCX that popups sfile with parent hwnd
however it doesn work for sdir

Top