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

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Lisa19
Posts: 48
Joined: 07 Apr 2019, 22:25

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

Post by Lisa19 » 19 Oct 2021, 11:11

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

User avatar
Hellbent
Posts: 2102
Joined: 23 Sep 2017, 13:34

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

Post by Hellbent » 19 Oct 2021, 11:29

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

Lisa19
Posts: 48
Joined: 07 Apr 2019, 22:25

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

Post by Lisa19 » 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?

User avatar
Hellbent
Posts: 2102
Joined: 23 Sep 2017, 13:34

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

Post by Hellbent » 20 Oct 2021, 02:09

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

Lisa19
Posts: 48
Joined: 07 Apr 2019, 22:25

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

Post by Lisa19 » 20 Oct 2021, 02:26

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?

Lisa19
Posts: 48
Joined: 07 Apr 2019, 22:25

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

Post by Lisa19 » 20 Oct 2021, 02:38

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

Lisa19
Posts: 48
Joined: 07 Apr 2019, 22:25

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

Post by Lisa19 » 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!

User avatar
Hellbent
Posts: 2102
Joined: 23 Sep 2017, 13:34

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

Post by Hellbent » 20 Oct 2021, 15:39

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:

Post Reply

Return to “Ask for Help (v1)”