mIRC Home    About    Download    Register    News    Help

Print Thread
/window from sclick $devent gets minimized #269498 16/10/21 05:15 PM
Joined: Jul 2006
Posts: 3,829
W
Wims Offline OP
Hoopy frood
OP Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 3,829
Code
dialog test {
  size -1 -1 100 50
  button "timer +/window" ,1,5 5 90 20
}
on *:dialog:test:sclick:1:.timer -ho 1 1500 editbox -n /window -pdfoC @qtest -1 -1 200 100
When you execute /window from an on dialog event, (tested sclick and edit), the window is minimized after creation.

As you can see in my code I even try a long timer and /editbox -n, it's also not related to the -1 -1 parameter.


Looking for a good help channel about mIRC? Check #mircscripting @ irc.swiftirc.net
Re: /window from sclick $devent gets minimized [Re: Wims] #269549 28/10/21 12:05 PM
Joined: Dec 2002
Posts: 5,020
Khaled Offline
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 5,020
Thanks for your bug report. This is due to mIRC overriding the way desktop windows open to prevent them from taking focus from an existing window. This was added around 20 years ago and has been updated several times since then. It's a bit of a strange one because each time it has been updated, it has added more exceptions - clearly due to users not liking the behaviour in specific contexts. So I can add /dialogs to the exception list as well - although at this point, the list of exceptions is covering almost everything :-]

Re: /window from sclick $devent gets minimized [Re: Khaled] #269550 28/10/21 05:23 PM
Joined: Jul 2006
Posts: 3,829
W
Wims Offline OP
Hoopy frood
OP Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 3,829
Thanks for looking into it.

If users want to prevent the window/dialog they are about to open themselves from a dialog/window from taking the focus, then they should open the window minimized.

Quote
although at this point, the list of exceptions is covering almost everything :-]
clutch victory for logic cool let's go


Looking for a good help channel about mIRC? Check #mircscripting @ irc.swiftirc.net