mIRC Home    About    Download    Register    News    Help

Print Thread
Flashing Dialog Button #55336 16/10/03 05:55 PM
Joined: Jan 2003
Posts: 12
G
Gawain Offline OP
Pikka bird
OP Offline
Pikka bird
G
Joined: Jan 2003
Posts: 12
Is there any way to make the button for a modeless desktop dialog flash?


-TS
Re: Flashing Dialog Button #55337 16/10/03 06:03 PM
Joined: May 2003
Posts: 2,265
P
pheonix Offline
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
move your mouse over it rapidly ;]


new username: tidy_trax
Re: Flashing Dialog Button #55338 16/10/03 06:08 PM
Joined: Jan 2003
Posts: 12
G
Gawain Offline OP
Pikka bird
OP Offline
Pikka bird
G
Joined: Jan 2003
Posts: 12
lol, what? was that a dirty joke i didn't get? *blinks innocently*


-TS
Re: Flashing Dialog Button #55339 16/10/03 06:13 PM
Joined: Dec 2002
Posts: 1,922
O
Online Offline
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
I'm not sure what you mean, but you can "flash" a button by setting a timer that will constantly hide/show its text...

Re: Flashing Dialog Button #55340 16/10/03 06:17 PM
Joined: Jan 2003
Posts: 12
G
Gawain Offline OP
Pikka bird
OP Offline
Pikka bird
G
Joined: Jan 2003
Posts: 12
Sorry, I ment the button on the start menu or what you call it. Hence the "Desktop" part. You can make the mIRC-button flash on for example highlight or private message, just wondered if it was anything like that for a dialog.


-TS
Re: Flashing Dialog Button #55341 16/10/03 06:19 PM
Joined: May 2003
Posts: 2,265
P
pheonix Offline
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
not dirty... the button on my dialog flashes if i move my mouse cursor * over it fast.. :tongue:


new username: tidy_trax
Re: Flashing Dialog Button #55342 16/10/03 06:20 PM
Joined: Aug 2003
Posts: 73
D
DeadlySin Offline
Babel fish
Offline
Babel fish
D
Joined: Aug 2003
Posts: 73
lol grin


IRC (Idiots Relay Chat) :tongue:

{]TDN[}Deadly-Sin
Re: Flashing Dialog Button #55343 16/10/03 06:24 PM
Joined: Dec 2002
Posts: 1,922
O
Online Offline
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
Oh, now I get it... though I don't think it's possible with the current commands.

Re: Flashing Dialog Button #55344 16/10/03 06:31 PM
Joined: Jan 2003
Posts: 12
G
Gawain Offline OP
Pikka bird
OP Offline
Pikka bird
G
Joined: Jan 2003
Posts: 12
Guess not. So changing the text on it with a timer is probably the best way to go. Then kill the timer when the dialog is active again. Or something like that. Thanks =)

Last edited by Gawain; 16/10/03 06:31 PM.

-TS
Re: Flashing Dialog Button #55345 16/10/03 06:41 PM
Joined: Jan 2003
Posts: 12
G
Gawain Offline OP
Pikka bird
OP Offline
Pikka bird
G
Joined: Jan 2003
Posts: 12
Any good ideas on how to do THAT (killing the timer when the dialog is active again) then? on ACTIVE and on DIALOG doesn't seem to help much at least.


-TS
Re: Flashing Dialog Button #55346 16/10/03 06:54 PM
Joined: Dec 2002
Posts: 1,922
O
Online Offline
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
Unfortunately there are no activation events for dialogs, but we can use something like this...
Code:
dialog x {
  size -1 -1 80 80
  title "text"
}
 
On *:dialog:x:init:0:.timerx 0 1 _isactive
 
On *:dialog:x:close:0:.timerx off
 
alias -l _isactive {
  if !$dialog(x).active {
    dialog -t x $iif($dialog(x).title == -,text!,-)
  }
}

Paste this code in the remote and open the dialog - /dialog -md x x. Afterwards, minimize it and see what happens smile

Re: Flashing Dialog Button #55347 16/10/03 07:05 PM
Joined: Jan 2003
Posts: 12
G
Gawain Offline OP
Pikka bird
OP Offline
Pikka bird
G
Joined: Jan 2003
Posts: 12
Ooh, missed the $dialog().active in the helpfiles. blush Thanks. I'll use some trigger so it won't have to be a continous timer though. Thanks again!


-TS
Re: Flashing Dialog Button #55348 16/10/03 10:01 PM
Joined: Feb 2003
Posts: 309
C
CloCkWeRX Offline
Fjord artisan
Offline
Fjord artisan
C
Joined: Feb 2003
Posts: 309
Possible (if unwieldy) solution:
Take screenshots of your average button with printscreen and edit in paintbrush.
Take one of button pressed, button normal, etc. Edit the flashing and nonflashing states.

set a timer to swtcih the flash/no flash images every N intervals. Make it do this by calling aln alias that checks the mouse isn't down, as that'd mess up your effect a little.

Its messy. Its bulky. It can work tho.

Re: Flashing Dialog Button #55349 16/10/03 11:05 PM
Joined: Jan 2003
Posts: 12
G
Gawain Offline OP
Pikka bird
OP Offline
Pikka bird
G
Joined: Jan 2003
Posts: 12
How on earth do you switch the image on the button on the Start Menu/Line/Thingie?


-TS