mIRC Homepage
Posted By: 7ramy $sfile, $msfile, and $sdir - 03/03/08 07:22 PM
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
Posted By: Wims Re: $sfile, $msfile, and $sdir - 03/03/08 07:57 PM
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
Posted By: 7ramy Re: $sfile, $msfile, and $sdir - 05/03/08 04:58 PM
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
Posted By: 7ramy Re: $sfile, $msfile, and $sdir - 01/07/08 05:01 AM
is that topic dead ?
Posted By: argv0 Re: $sfile, $msfile, and $sdir - 01/07/08 05:13 AM
Why exactly is the parent window necessary?
Posted By: 7ramy Re: $sfile, $msfile, and $sdir - 01/07/08 05:22 AM
when creating a dialog as a desktop window with an open file button
the $sfile parent will always be main mirc window.
Posted By: argv0 Re: $sfile, $msfile, and $sdir - 01/07/08 06:05 AM
right, but how does this affect your script?
Posted By: qwerty Re: $sfile, $msfile, and $sdir - 01/07/08 08:32 AM
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).
Posted By: 7ramy Re: $sfile, $msfile, and $sdir - 05/08/08 12:49 PM
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
© mIRC Discussion Forums