Khiro95 / Awqat-Salaat

A simple Windows widget to show the time of the next prayer alongside a countdown on the taskbar.
MIT License
47 stars 2 forks source link

[FEATURE] Auto Re-Position #24

Open sfksuperman opened 2 months ago

sfksuperman commented 2 months ago

Is it possible to auto re-position every 1 min for like 5 mins (5 times) as soon as the windows start, and/or re-position automatically as soon as the current position changes which triggers the re-positioning?

Khiro95 commented 2 months ago

Is it possible to auto re-position every 1 min for like 5 mins (5 times) as soon as the windows start

Hi @sfksuperman, yes it's possible. But why do that every 1 min for 5 min? why not do it every 1 min for the whole execution time?

and/or re-position automatically as soon as the current position changes which triggers the re-positioning?

Sorry, I don't get what you mean

sfksuperman commented 2 months ago

Forget about every 1 minute for like 5 minutes. Let's focus on the second thing. What I mean is after pc boots, a few minutes/hours later, due to the network monitor continuous speed live showing, sometimes the position of the AS app overlaps with the NM app.

So, I want the app to monitor the initial position after a perfect re-position on the taskbar and remember the position and as soon as after x mins/hours the position is changed, the re-position function triggers and fixes the AS widget position on the taskbar. This should be automatic. So no more manual re-positioning.

Khiro95 commented 2 months ago

Hi @sfksuperman

What is this NM app? If it's Traffic Monitor, then I suggest you open a new issue asking them to make the taskbar widget's width fixed.

Don't get me wrong, but that's an issue caused by an external app so I'm not sure why we have to implement a workaround for a third party tool that is not even used by our widget.

I'm not saying that your suggestion isn't applicable, but let's first try the correct solution. If that fails, then we look for workarounds.

Also since I'm planing to implement manual positioning at a fixed offset, would this work for you or you think a periodic auto-reposition is needed?

Khiro95 commented 8 hours ago

Hi @sfksuperman

Manual position is now implemented for the next release.

drag_awqat_2

Do you think this feature will solve your issue or it need more improvements?