Page 1 of 1

Any idea to make an UI notification more visible (eg. blinking)?

Posted: 19 Oct 2021, 11:11
by Lisa19
I miss some of my notification (which use the code below). Is it possible to make them more visible, by blinking them, or to move them around (while keeping them always on the top of other windows)?

Any advice is welcome!

Code: Select all

Gui, +AlwaysOnTop
Gui, Color, Fuchsia  
Gui, Add, Text,, tea time! 
Gui, Add, Button, gOK, OK
Gui, Show, x912 y962 w250, Tea Time! 
return
 
OK:
ExitApp
GuiClose:
GuiEscape:
ExitApp

Re: Any idea to make an UI notification more visible (eg. blinking)?  Topic is solved

Posted: 19 Oct 2021, 11:29
by Hellbent
Try

Code: Select all

Gui, +AlwaysOnTop
Gui, Color, Fuchsia  
Gui, Show, w300 h200
return

Numpad1::
	Gui, Color, Lime  
	Gui, Flash
	setTimer, revert, -1000
	return

revert:
	Gui, Color, Fuchsia  
	return

Re: Any idea to make an UI notification more visible (eg. blinking)?

Posted: 20 Oct 2021, 02:01
by Lisa19
Hellbent wrote:
19 Oct 2021, 11:29
Try
Thanks for your help, I tried your code (without adding anything to it) but it doesn't do anything else than showing the UI (no blinking). Did I miss something?

Re: Any idea to make an UI notification more visible (eg. blinking)?

Posted: 20 Oct 2021, 02:09
by Hellbent
Lisa19 wrote:
20 Oct 2021, 02:01
Hellbent wrote:
19 Oct 2021, 11:29
Try
Thanks for your help, I tried your code (without adding anything to it) but it doesn't do anything else than showing the UI (no blinking). Did I miss something?
Press Numpad1

Re: Any idea to make an UI notification more visible (eg. blinking)?

Posted: 20 Oct 2021, 02:26
by Lisa19
Oh I'm sorry ! It's a very interesting idea, thank you!

But since I do not use the Numpad1 really often I tried to use instead space (each time I press space it will blink).

Code: Select all

SPACE::
    send {space}
	Gui, Color, Lime  
	Gui, Flash
	setTimer, revert, -1000
	return
But it somehow doesn't really work, the notification get crazy (flash super quickly) for a second, then it throws this:
71 hotkeys have been received in the last 1203ms.
Any idea to solve this?

Re: Any idea to make an UI notification more visible (eg. blinking)?

Posted: 20 Oct 2021, 02:38
by Lisa19
I solved it using the ~ (thanks to this answer https://stackoverflow.com/a/63447203/1486850)

Code: Select all

Gui, +AlwaysOnTop
Gui, Color, Fuchsia  
Gui, Show, w300 h200

~SPACE::
    send {space}
	Gui, Color, Lime  
	Gui, Flash
	setTimer, revert, -1000
	return

revert:
	Gui, Color, Fuchsia  
	return

Re: Any idea to make an UI notification more visible (eg. blinking)?

Posted: 20 Oct 2021, 02:52
by Lisa19
I just would like to warmly thank you Hellbent: it's full of potential, and it completely changes my life!

Re: Any idea to make an UI notification more visible (eg. blinking)?

Posted: 20 Oct 2021, 15:39
by Hellbent
Lisa19 wrote:
20 Oct 2021, 02:52
I just would like to warmly thank you Hellbent: it's full of potential, and it completely changes my life!
You are very welcome. Good luck with your project. :thumbup: