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.
Percentages for coords
Re: Percentages for coords
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).
Re: Percentages for coords
GUIs ae mostly written by CSS nowadays.
CSS uses percentages more than it uses fixed pixels.
CSS uses percentages more than it uses fixed pixels.
Recommends AHK Studio
Re: Percentages for coords
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.
Re: Percentages for coords
Which group of GUIs are you using as basis - also how do you know that nothing is scaled relativ in size?
Recommends AHK Studio
Re: Percentages for coords
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 26 guests