mIRC Home    About    Download    Register    News    Help

Print Thread
#195839 03/03/08 07:22 PM
7
7ramy
7ramy
7
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

Joined: Jul 2006
Posts: 4,020
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,020
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


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
7
7ramy
7ramy
7
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

7
7ramy
7ramy
7
is that topic dead ?

Joined: Oct 2003
Posts: 3,641
A
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,641
Why exactly is the parent window necessary?

7
7ramy
7ramy
7
when creating a dialog as a desktop window with an open file button
the $sfile parent will always be main mirc window.

Joined: Oct 2003
Posts: 3,641
A
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,641
right, but how does this affect your script?

Joined: Jan 2003
Posts: 2,125
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,125
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).

7
7ramy
7ramy
7
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


Link Copied to Clipboard