gregster wrote:I don't remember a noticeable pause... (I might be wrong, I will check later).
In the meantime, you could post your script, or at least a part that demonstrates your problem
Code: Select all
#SingleInstance Force
#NoEnv
SetBatchLines, -1
btnCount := 10
IBClrStyles := [ [0, 0x80FFFFFF, , 0xD3000000, 0, , 0x80FFFFFF, 1] ; normal
, [0, 0x80E6E6E6, , 0xD3000000, 0, , 0x80E6E6E6, 1] ; hover
, [0, 0x80CCCCCC, , 0xD3000000, 0, , 0x80CCCCCC, 1] ; pressed
, [0, 0x80F3F3F3, , 0x000078D7, 0, , 0x80F3F3F3, 1] ] ; disabled (defaulted)
startTime := A_TickCount
Progress, , ,% "Now creating " btnCount " ImageButtons",% "Class_ImageButton Delay Calculator"
Loop %btnCount% {
btnPos := (A_Index=1)?("xm ym w100 h20"):("xm y+0 wp hp")
progressPercent := A_Index*(100/10)
Gui, Add, Button,% btnPos " hWndHBtn" A_Index,% A_Index
ImageButton.Create(HBtn%A_Index%, IBClrStyles*)
Progress,% progressPercent
}
Progress, Off
; Gui, Show
MsgBox,% "Result: " A_TickCount-startTime "ms"
. "`nto render " btnCount " ImageButtons."
ExitApp
#Include Class_ImageButton.ahk
The example above takes me around 8300ms to complete.
Also, the
Sample script takes me around 3300ms.
jNizM's
Windows 10 Settings Concept takes me around 4200ms