Select a program using keyboard arrows (or the mouse) and hit Return to launch.
(Obviously this code is just a starting point, with all entries launching winver.exe. Adapt as needed)

Code: Select all
;;; v0.2 - for Windows
genericProgramIcon = ExtractIcon_(#Null, "shell32.dll", 43) ;; 2
OpenWindow(0, 0, 0, 730, 450, "QuickLauncher", #PB_Window_SystemMenu | #PB_Window_MinimizeGadget | #PB_Window_ScreenCentered)
LoadFont(1, "Segoe UI", 16) : SetGadgetFont(-1, FontID(1))
ListIconGadget(1, 10, 20, 710, 410, " ", 54)
SetGadgetAttribute(1, #PB_ListIcon_DisplayMode , #PB_ListIcon_LargeIcon)
SetGadgetColor(1, #PB_Gadget_BackColor, $FAE6E6) ;; $D9B9B9
SetWindowTheme_(GadgetID(1), @"Explorer", 0)
AddGadgetColumn(1, 1, "Program Path", 0)
SendMessage_(GadgetID(1), #LVM_SETICONSPACING, #Null, 210) ;
For b = 0 To 15
AddGadgetItem(1, b, "Program " + b + Chr(10) + "winver.exe", genericProgramIcon)
Next
SetActiveGadget(1) : SetGadgetState(1, 0)
AddKeyboardShortcut(0, #PB_Shortcut_Return, 123)
Procedure LaunchSelected()
RunProgram(GetGadgetItemText(1, GetGadgetState(1), 1))
EndProcedure
BindGadgetEvent(1, @LaunchSelected(), #PB_EventType_LeftDoubleClick)
BindEvent(#PB_Event_Menu, @LaunchSelected(), 0, 123)
Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow