Code: Select all
#NoEnv
SetBatchLines, -1 ; affects CPU utilization... script will run at max speed
ListLines Off ; helps with speed
#SingleInstance Force
;To cancel, press ESCAPE or close this window.
Gui, Add, ListBox, vListBox_pdf x16 y10 w370 h125,
Gui, Add, Button, Default, OK
Loop, C:\Users\rest of path for directory I want to search*
{
GuiControl,, ListBox_pdf, %A_LoopFileFullPath%
}
Gui, Show
return
ButtonOK:
GuiControlGet, ListBox_pdf ; Retrieve pdf selection.
MsgBox, 4,, Open Current Selections:`n`n%ListBox_pdf%
IfMsgBox, No
return
GuiClose:
GuiEscape:
ExitApp