mIRC Home    About    Download    Register    News    Help

Print Thread
#55336 16/10/03 05:55 PM
G
Gawain
Gawain
G
Is there any way to make the button for a modeless desktop dialog flash?

#55337 16/10/03 06:03 PM
P
pheonix
pheonix
P
move your mouse over it rapidly ;]

#55338 16/10/03 06:08 PM
G
Gawain
Gawain
G
lol, what? was that a dirty joke i didn't get? *blinks innocently*

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

#55340 16/10/03 06:17 PM
G
Gawain
Gawain
G
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.

#55341 16/10/03 06:19 PM
P
pheonix
pheonix
P
not dirty... the button on my dialog flashes if i move my mouse cursor * over it fast.. :tongue:

#55342 16/10/03 06:20 PM
D
DeadlySin
DeadlySin
D
lol grin

#55343 16/10/03 06:24 PM
Joined: Dec 2002
Posts: 1,893
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,893
Oh, now I get it... though I don't think it's possible with the current commands.

#55344 16/10/03 06:31 PM
G
Gawain
Gawain
G
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.
#55345 16/10/03 06:41 PM
G
Gawain
Gawain
G
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.

#55346 16/10/03 06:54 PM
Joined: Dec 2002
Posts: 1,893
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,893
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

#55347 16/10/03 07:05 PM
G
Gawain
Gawain
G
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!

#55348 16/10/03 10:01 PM
Joined: Feb 2003
Posts: 308
C
Fjord artisan
Offline
Fjord artisan
C
Joined: Feb 2003
Posts: 308
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.

#55349 16/10/03 11:05 PM
G
Gawain
Gawain
G
How on earth do you switch the image on the button on the Start Menu/Line/Thingie?


Link Copied to Clipboard