mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Oct 2006
Posts: 48
G
Ghozer Offline OP
Ameglian cow
OP Offline
Ameglian cow
G
Joined: Oct 2006
Posts: 48
Dialogs that are opened on the desktop...

/dialog -md name table - should have an always ontop option..

I made a dialog, i wanted it visible on mirc when im using mIRC, but i wanted to beable to hide it and minimize it out of the way when i diddnt want it, but closing is not an option (the script auto opens the dialog if its closed)

so an always on top would be nice...

OR an option to minimize to mIRC's Switchbar/tree (when not opened on desktop)

--- or both?

Joined: Feb 2005
Posts: 342
R
Fjord artisan
Offline
Fjord artisan
R
Joined: Feb 2005
Posts: 342
/help /dialog
Code:
-o     set dialog ontop of all windows



/dialog -mdo

Joined: Oct 2006
Posts: 48
G
Ghozer Offline OP
Ameglian cow
OP Offline
Ameglian cow
G
Joined: Oct 2006
Posts: 48
I was talking about user toggleable though....

Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Just put some form of button or menu or whatever in the dialog for changing the on top status and then use /dialog with the -o and -n switches to change it when the user uses the button/menu/etc.


Invision Support
#Invision on irc.irchighway.net
Joined: Feb 2003
Posts: 3,432
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
You maybe can return the value for the dialog with a %var, i do that with my mp3 player, when the user start the player for the first time he/she can set it to on top or as a "normal" dialog, and i have options so the user can change the value of the %var when ever he/she want to.


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Joined: Feb 2005
Posts: 342
R
Fjord artisan
Offline
Fjord artisan
R
Joined: Feb 2005
Posts: 342
/help /dialog, yet again.

Use a checkbox, or something. ;P

Code:
on *:dialog:name:sclick:<ID_OF_CHECKBOX>:
  var %id = <ID_OF_CHECKBOX>
  if ($did(%id).state) { dialog -n blah blah  }
  else { dialog -o blah blah }
}


Link Copied to Clipboard