and this works with long names , greater than 63 characters , but works not when you have space in filename ( then problem in > v%name_no_ext% )
CODE:
dir = %A_ScriptDir%
Gui,2:default
Gui,2: Font, s12 ,Lucida Console
colbgr:="black",coltxt:="yellow"
Loop, Files, %dir%\*.ahk
{
z:=a_loopfilefullpath
SplitPath,z, name, dir, ext, name_no_ext, drive
Gui,2:Add,Progress, w550 Disabled Background%colbgr%
Gui,2:Add,Text, xp yp wp hp c%coltxt% BackgroundTrans Center 0x200 v%name_no_ext% gRunx ,%name_no_ext%
;Gui,2:add,Button,xs y+20 w550 gRunx v%name_no_ext%,%name_no_ext%
}
Gui,2:show,,TEST
return
;----------
2Guiclose:
Exitapp
;-----------
Runx:
Gui,2:submit,nohide
MouseGetPos,,,, classNN
GuiControlGet, varName, Name, %classNN%
run,%dir%\%varname%.ahk
return
;=================================
Statistics: Posted by garry — 15 minutes ago