Were you able to get the separate buttons working with the Custom Functions you were mentioning in the other thread?
For the other script are you wanting it to cycle between 50% height, 100% width on the top, and the same on the bottom?

dracho
16 discussion posts
Ideally, I would like to understand the code better so that I can tweak things to my liking.
In the code snippet I pasted, could you (or someone) add comments to explain where the 33% width is determined, where the location of the window is determined, and how the cycling works between three locations?
In the end, I'll want a single button that cycles between these 3 functions: Size to 33% Width and Center Horizontally on Monitor (this is included in the code snippet, when the button is clicked twice), Size and Move Window to Top of Monitor, and Size and Move to Bottom (these two are built-in).
I will also want a button that cycles between these 2 functions: Size and Move Window (50%) to Left Side of Monitor, and Size and Move Window (33%) to Left Side of Monitor (again, this is included in the code snippet, when the button is clicked once).
Finally, I want a button that is the inverse of the one mentioned above - focusing on the right side instead of the left.
Thanks very much! :)
(EDIT: Reworded description of first button to properly represent the order in which I want to click it - first Center, then Top, then Bottom.)
Nov 30, 2018 (modified Nov 30, 2018)
•
#4

dracho
16 discussion posts
Ok, thanks for the reply.
I can make my request much simpler. I would be very happy to have a button that performs only one function: Size the window to 33% width and move it to the Right side of the screen.
Using the code that you will hopefully graciously give me, I should be able to make my own button that does the exact same thing; only one function (no cycling) that will size to 33% and move to the Left side.
Thank you much!
Excellent, glad to hear it!
Make sure to backup your settings (Settings > Options > Export) when you're done, just so you don't lose all of that work!