Created
March 24, 2021 19:44
-
-
Save SmugZombie/2d4d01096b8152d2797dd27787f4ae93 to your computer and use it in GitHub Desktop.
Pops 9 Guis in appropriately sized proportions to match your screensize
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#SingleInstance, Force | |
Screen_X := Floor(A_ScreenWidth / 3) ;- 2 | |
Screen_Y := Floor(A_ScreenHeight / 3) | |
;Msgbox % Screen_X | |
GUI1_X := 0 | |
GUI1_Y := 0 | |
GUI1_H := Screen_Y | |
GUI1_W := Screen_X | |
GUI2_X := Screen_X | |
GUI2_Y := 0 | |
GUI2_H := Screen_Y | |
GUI2_W := Screen_X | |
GUI3_X := Screen_X * 2 | |
GUI3_Y := 0 | |
GUI3_H := Screen_Y | |
GUI3_W := Screen_X | |
GUI4_X := 0 | |
GUI4_Y := Screen_Y | |
GUI4_H := Screen_Y | |
GUI4_W := Screen_X | |
GUI5_X := Screen_X | |
GUI5_Y := Screen_Y | |
GUI5_H := Screen_Y | |
GUI5_W := Screen_X | |
GUI6_X := Screen_X * 2 | |
GUI6_Y := Screen_Y | |
GUI6_H := Screen_Y | |
GUI6_W := Screen_X | |
GUI7_X := 0 | |
GUI7_Y := Screen_Y * 2 | |
GUI7_H := Screen_Y | |
GUI7_W := Screen_X | |
GUI8_X := Screen_X | |
GUI8_Y := Screen_Y * 2 | |
GUI8_H := Screen_Y | |
GUI8_W := Screen_X | |
GUI9_X := Screen_X * 2 | |
GUI9_Y := Screen_Y * 2 | |
GUI9_H := Screen_Y | |
GUI9_W := Screen_X | |
Gui, 1: -Caption | |
Gui, 1: Add, StatusBar,, This is GUI 1 | |
Gui, 1: Show, x%GUI1_X% y%GUI1_Y% h%GUI1_H% w%GUI1_W%, Test | |
Gui, 2: -Caption | |
Gui, 2: Show, x%GUI2_X% y%GUI2_Y% h%GUI2_H% w%GUI2_W%, Test | |
Gui, 3: -Caption | |
Gui, 3: Show, x%GUI3_X% y%GUI3_Y% h%GUI3_H% w%GUI3_W%, Test | |
Gui, 4: -Caption | |
Gui, 4: Show, x%GUI4_X% y%GUI4_Y% h%GUI4_H% w%GUI4_W%, Test | |
Gui, 5: -Caption | |
Gui, 5: Show, x%GUI5_X% y%GUI5_Y% h%GUI5_H% w%GUI5_W%, Test | |
Gui, 6: -Caption | |
Gui, 6: Add, Button, gClose, Close | |
Gui, 6: Show, x%GUI6_X% y%GUI6_Y% h%GUI6_H% w%GUI6_W%, Test | |
Gui, 7: -Caption | |
Gui, 7: Show, x%GUI7_X% y%GUI7_Y% h%GUI7_H% w%GUI7_W%, Test | |
Gui, 8: -Caption | |
Gui, 8: Show, x%GUI8_X% y%GUI8_Y% h%GUI8_H% w%GUI8_W%, Test | |
Gui, 9: -Caption | |
Gui, 9: Show, x%GUI9_X% y%GUI9_Y% h%GUI9_H% w%GUI9_W%, Test | |
return | |
Close: | |
ExitApp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment