Hi kulet; assuming the menu you require is in your own program and not the IDE; if you want to create the code for the menu to load specific files; one way it could be done is to create an array
dim exes$(3)
exe$(1) = "app1.exe"
exe$(2) = "app2.exe"
exe$(3) = "app3.exe"
and iterate through the array in a loop
sync on
do
for id = 1 to array count( exe$() )
DrawMenu( id )
if ClickMenu( id ) then LoadEXE( id )
next id
sync
loop
and draw the menu.
If the mouse clicks
function ClickMenu( id )
if mouseY() > menuY + (menuItemHeight * id)
if mouseX() < menuX + menuItemWidth
if mouseY() < menuY + menuItemHeight +(menuItemHeight * id)
if mouseX() > menuX
if mouseclick() && 1 then exitfunction 1
endif
endif
endif
endif
endfunction
` It is down to you to set the variables
in the menu item, perform your execute file command
function LoadEXE( id )
execute file exe$( id ), "[optional command line]", ""
endfunciton
on the array index.
You can also use [Find First] and [Find Next] in conjunction with other file commands, described in the help documentation, to search for exe's in a folder; but this may not be a secure feature in this scenario.