Percentages for coords

Propose new features and changes
TigerYT
Posts: 24
Joined: 13 Aug 2018, 01:01

Percentages for coords

19 Aug 2018, 09:58

Percentages for coords would be very useful. Especially when your script is for multiple people.

You could do.

Click, 0%, 100%

which would click 30% down and 100% to the right, meaning you'd click the Exit button on Google Chrome (or most applications).

It'd be very useful and better than using pixels all the time.
User avatar
Nextron
Posts: 1391
Joined: 01 Oct 2013, 08:23
Location: Netherlands OS: Win10 AHK: Unicode x32

Re: Percentages for coords

19 Aug 2018, 11:26

I think GUI's are rarely designed in relative proportions, but more commonly fixed sizes or offsets based on the full size. So percentages wouldn't be the ideal solution. Besides that: 0% is just 0 and 100% is %A_ScreenWidth% (for single screens).
User avatar
nnnik
Posts: 4500
Joined: 30 Sep 2013, 01:01
Location: Germany

Re: Percentages for coords

19 Aug 2018, 11:47

GUIs ae mostly written by CSS nowadays.
CSS uses percentages more than it uses fixed pixels.
Recommends AHK Studio
User avatar
Nextron
Posts: 1391
Joined: 01 Oct 2013, 08:23
Location: Netherlands OS: Win10 AHK: Unicode x32

Re: Percentages for coords

19 Aug 2018, 16:44

Are you talking about websites and webapps or basic Windows/AHK GUIs? Why would I want to make my navigation buttons or toolbars relative sized? I've never used an application that increased the button size when I maximized its window.
User avatar
nnnik
Posts: 4500
Joined: 30 Sep 2013, 01:01
Location: Germany

Re: Percentages for coords

19 Aug 2018, 17:35

Which group of GUIs are you using as basis - also how do you know that nothing is scaled relativ in size?
Recommends AHK Studio
User avatar
Nextron
Posts: 1391
Joined: 01 Oct 2013, 08:23
Location: Netherlands OS: Win10 AHK: Unicode x32

Re: Percentages for coords

20 Aug 2018, 12:15

I'm looking at some common applications: Explorer, Paint, Word, browser, media player: all have fixed sized or full area between fixed offsets controls/navigation/toolbar buttons/statusbar with a main content area that fills up the remaining area. That means either the absolute size remains static or both its absolute and relative size increases as I increase the window size.

Return to “Wish List”

Who is online

Users browsing this forum: No registered users and 14 guests