mIRC Home    About    Download    Register    News    Help

Print Thread
#226201 23/09/10 12:04 AM
Joined: Aug 2010
Posts: 69
N
N3M3S1S Offline OP
Babel fish
OP Offline
Babel fish
N
Joined: Aug 2010
Posts: 69
Is there way the make the $input dialogs appear on the desktop?

For example with I script I am finishing up, when called, the dialog appears on the desktop (/dialog -dm). Now whenever I use $input for a yes/no/ok/etc. input, it takes the focus off the dialog and makes mIRC the active window and it appears there in mIRC. (Meaning it minimizes the desktop dialog)

What I'm asking; Is there a way to make it appear without taking the focus off the desktop dialog?

Below is a example script I made to show you what I mean. Place it in your remotes and use /test then when the dialog comes up click the "TEST THIS" button.

Code:
alias test { dialog -dm test test }
dialog test {
  size -1 -1 150 100
  title TEST
  button "TEST THIS"1, 5 5 80 23
}

on *:DIALOG:test:sclick:1: {
  %test = $input(This is a test dialog. Close?,yh,TEST)
  if (%test == $true) { dialog -x test }
}


In the help file it says using "a" makes it work with the active dialog so

Code:
alias test { dialog -dm test test }
dialog test {
  size -1 -1 150 100
  title TEST
  button "TEST THIS"1, 5 5 80 23
}

on *:DIALOG:test:sclick:1: {
  %test = $input(This is a test dialog. Close?,yha,TEST)
  if (%test == $true) { dialog -x test }
}


Now when I used the second one, it still did the same thing as without the "a".

:\

EDIT: I've also been looking into what it would take to make a custom command that works similiar to $input but it makes the input dialog appear on top of the desktop dialog, without taking focus off of it.


"There is no theory of evolution, only a list of creatures Chuck Norris allows to live."
N3M3S1S #226202 23/09/10 12:29 AM
Joined: Jul 2006
Posts: 4,150
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,150
Try the 'u' parameter


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Wims #226203 23/09/10 12:33 AM
Joined: Aug 2010
Posts: 69
N
N3M3S1S Offline OP
Babel fish
OP Offline
Babel fish
N
Joined: Aug 2010
Posts: 69
Thanks it works

:\

I though of using that but thought it only worked with an actual window instead of a dialog.

Thanks a lot laugh


"There is no theory of evolution, only a list of creatures Chuck Norris allows to live."

Link Copied to Clipboard