mIRC Home    About    Download    Register    News    Help

Print Thread
#195839 03/03/08 07:22 PM
Joined: Mar 2008
Posts: 27
7
7ramy Offline OP
Ameglian cow
OP Offline
Ameglian cow
7
Joined: Mar 2008
Posts: 27
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,145
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,145
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
Joined: Mar 2008
Posts: 27
7
7ramy Offline OP
Ameglian cow
OP Offline
Ameglian cow
7
Joined: Mar 2008
Posts: 27
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

Joined: Mar 2008
Posts: 27
7
7ramy Offline OP
Ameglian cow
OP Offline
Ameglian cow
7
Joined: Mar 2008
Posts: 27
is that topic dead ?

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


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"
Joined: Mar 2008
Posts: 27
7
7ramy Offline OP
Ameglian cow
OP Offline
Ameglian cow
7
Joined: Mar 2008
Posts: 27
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,918
A
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,918
right, but how does this affect your script?


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"
Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
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
Joined: Mar 2008
Posts: 27
7
7ramy Offline OP
Ameglian cow
OP Offline
Ameglian cow
7
Joined: Mar 2008
Posts: 27
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