Skip to content

Commit 6f1f3c2

Browse files
RocketFridayRocketFriday
authored andcommitted
Update Discorder.ahk
1 parent f98fb4b commit 6f1f3c2

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

Discorder.ahk

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,16 @@ MyGui := Gui(, "Discorder")
99
MyGui.SetFont("s32")
1010
MyGui.Opt("+AlwaysOnTop +ToolWindow -SysMenu +Owner") ; +Owner avoids a taskbar button.
1111
MyGui.MenuBar := ""
12+
w := A_ScreenWidth * 0.3
13+
h := A_ScreenHeight * 0.3
14+
x := A_ScreenWidth - w - 50
15+
y := A_ScreenHeight - h - 100
1216

13-
guictrl := MyGui.Add("ListBox", "r10 x0 w600 vChoice", ["Drop Video Here"])
17+
guictrl := MyGui.Add("ListBox", "r6 x0 w600 vChoice", ["Drop Video Here"])
1418
MyGui.OnEvent("DropFiles", Gui_DropFiles , 1)
1519

1620
MyGui.Show("NoActivate") ; NoActivate avoids deactivating the currently active window.
21+
MyGui.Move(x, y, w, h)
1722

1823
ih := InputHook("L1", "{Space}{Enter}")
1924
ih.Start()
@@ -51,7 +56,7 @@ Gui_DropFiles(GuiObj, GuiCtrlObj, FileArray, X, Y) {
5156
desiredSize := size
5257
secNum := size
5358
}else{
54-
desiredSize := 9.8 ; minus small buffer (0.2 mb) to further accomodate any potential inaccuracies
59+
desiredSize := 10.0 - ((size/10) * 0.2) ; minus small buffer (0.2 mb) to further accomodate any potential inaccuracies
5560
}
5661
powerOf2ByBits := 8192
5762
withOverhead := 1.024
@@ -131,4 +136,5 @@ ReEncode(inputPath, bitrate, size) {
131136
; todo: detect audio bitrate
132137
; todo: allow size choice
133138
; todo: ignore files under sizechoice - overhead
134-
; todo: make bg transparent and move to one side
139+
; todo: make bg transparent ~~and move to one side~~
140+
; todo: allow forcing slowpreset for better results

0 commit comments

Comments
 (0)