@@ -9,11 +9,16 @@ MyGui := Gui(, "Discorder")
99MyGui.SetFont(" s32" )
1010MyGui.Opt(" +AlwaysOnTop +ToolWindow -SysMenu +Owner" ) ; +Owner avoids a taskbar button.
1111MyGui.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" ])
1418MyGui.OnEvent(" DropFiles" , Gui_DropFiles , 1 )
1519
1620MyGui.Show(" NoActivate" ) ; NoActivate avoids deactivating the currently active window.
21+ MyGui.Move(x, y, w, h)
1722
1823ih := InputHook(" L1" , " {Space}{Enter}" )
1924ih.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