Looking for a timer/beep reminder Topic is solved

Ask gaming related questions (AHK v1.1 and older)
gyrosav
Posts: 81
Joined: 30 Dec 2020, 02:48

Looking for a timer/beep reminder

Post by gyrosav » 14 Aug 2022, 22:24

Can someone help me create a simple autohotkey that shows 3 green dots in the middle of my screen every 5 seconds? If it could also give a little beep, that would be lovely.

If you could make the timer adjustable as well as the size of the green dots, that would be much appreciated!

User avatar
mikeyww
Posts: 26951
Joined: 09 Sep 2014, 18:38

Re: Looking for a timer/beep reminder  Topic is solved

Post by mikeyww » 15 Aug 2022, 06:29

Code: Select all

#Persistent
freq   = 5000 ; Milliseconds between displays
width  =   50 ; Width of dot
dist   =  300 ; Distance between dots (left to left)
show   = 1000 ; Milliseconds to display
; -----------------------------------------------
image  = %A_ScriptDir%\greenDot.png
SysGet, mon, MonitorWorkArea
trans  = EEAA99
y     := monTop + (monBottom - monTop - width)  / 2
Loop, 3 {
 Gui, %A_Index%:New, +LastFound +AlwaysOnTop +Owner
 Gui, Add, Picture, w%width% h-1, %image%
 Gui, Color, %trans%
 WinSet, TransColor, %trans%
 Gui -Caption
}
SetTimer, Show, %freq%
Show:
Loop, 3 {
 x := monLeft + (monRight  - monLeft - width) / 2 + dist * (A_Index - 2)
 Gui, %A_Index%:Show, x%x% y%y% NoActivate
}
SoundBeep, 1500
Sleep, show
Loop, 3
 Gui, %A_Index%: Hide
Return
Attachments
greenDot.png
Green dot
greenDot.png (1.47 KiB) Viewed 420 times

gyrosav
Posts: 81
Joined: 30 Dec 2020, 02:48

Re: Looking for a timer/beep reminder

Post by gyrosav » 15 Aug 2022, 07:48

@mikeyww

This is amazing. thank you for saving me. just one last request. The dots do not show over my game. can the dots be made to be shown on top of everything? Thank you!

User avatar
mikeyww
Posts: 26951
Joined: 09 Sep 2014, 18:38

Re: Looking for a timer/beep reminder

Post by mikeyww » 15 Aug 2022, 08:21

It's already set to on-top. Your game may be preventing this type of behavior. You may need to test various ideas: set to on top again, WinActivate, run as admin, or others.

Post Reply

Return to “Gaming Help (v1)”