Forループ版
Exts := "ahk,bat,ps1" ;コンマ区切り
Send ^c
For i, v in StrSplit(Clipboard, "`n") {
 SplitPath, v,,, Ext
 if Ext contains %Exts% ;in不可
  MsgBox, %v%
}