mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Feb 2004
Posts: 13
M
medowl Offline OP
Pikka bird
OP Offline
Pikka bird
M
Joined: Feb 2004
Posts: 13
ok , well ive been making an FtpLister script, which is pretty much finnished already , just wanna make some of the details better...
have a look at this screen shot :


so i want that upper dialog 'Listing' to act liek a modal dialog , so you can access the parent window , or even anything else in mirc till you pressed the ok button on the 'Listing Dialog', but obvious i dont want it to halt the script, as it shows the progression of getting the ftp list...

so my question is... : is there an easy way of doing this !?

if the answer to that is no... is there a hard way of doing this !?

hardway options i've kinda thought of , is intercepting all the mouse clicks outside the 'Listing' dialog.. and returning the focus to the 'Listing' Dialog..

but the dialog mouse option only records the mouse clikcs inside the actual dialog...

so anyone has a good idea how i should approach this problem !?!?

m3d

Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
im sure theres a better method, but have you thought of a timer that just keeps refocusing on the dialog

Joined: Feb 2004
Posts: 13
M
medowl Offline OP
Pikka bird
OP Offline
Pikka bird
M
Joined: Feb 2004
Posts: 13
yup have thought about it..

but a normal timer at 1 second seems kinda to slow for it
and dunno how much resources a millisecond timer takes..
and it kinda appeared to me as being a cheap sollution

plus it doesn;t really disable the parent dialog , i would still be able to press the quit button on the parent dialog , causing errors when other timers try to update the 'Listen' Dialog while its already gone...

Joined: Dec 2002
Posts: 774
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 774
-o switch in /dialog?


Code:
//if ( khaled isgod ) echo yes | else echo no
Joined: Feb 2004
Posts: 13
M
medowl Offline OP
Pikka bird
OP Offline
Pikka bird
M
Joined: Feb 2004
Posts: 13
-o just puts in on top the moment u call the /dialog command ,
but thats not what i want

it should be on top and the only dialog that is accessable , and the script should continue during that time

Joined: Feb 2004
Posts: 13
M
medowl Offline OP
Pikka bird
OP Offline
Pikka bird
M
Joined: Feb 2004
Posts: 13
just reread my first post and found an error smile

it should be

so i want that upper dialog 'Listing' to act liek a modal dialog , so you can NOT access the parent window

but i guess that was kinda clear from the rest of my msg

Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
Why can't this be a modal $dialog(bla,bla,-4) (or -3)?


Link Copied to Clipboard