Code: Select all
GuiCreate()
hwnd:=CreateWindowEx(0,"AutoHotkeyGui","sf",0X80000000,A_ScreenWidth*0.2,A_ScreenHeight*0.2,A_ScreenWidth*0.4,h:=A_ScreenHeight*0.4,0,0,0,0)
loop
{
CreateWindowEx(0,"static","" A_Index,0X40000000|0x10000000|0X800000,0,40*A_Index,A_ScreenWidth*0.4,30,hwnd,0,0,0)
if (40*A_Index+30)>=h
{
idx:=A_Index
Break
}
}
showWindow(hwnd,4)
OnMessage(0x020A, "tt")
return
tt(w,l,s,h){
global
h:=40*idx+30+200
ScrollWindow(hwnd,0,-200,0,0)
UpdateWindow(hwnd)
loop
{
idx++
CreateWindowEx(0,"static","" r:=idx,0X40000000|0x10000000|0X800000,0,40*r,A_ScreenWidth*0.4,30,hwnd,0,0,0)
if (40*r+30)>=h
{
idx:=r
Break
}
}
}