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.
Propose new features and changes
6 posts • Page 1 of 1
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).
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.
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.
Who is online
Users browsing this forum: No registered users and 9 guests