Advertisement
tabnation

gui live search

Aug 1st, 2022
454
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. Gui, Add, Edit, x822 y9 w200 h20 gsearchchange vSearch,
  2.  
  3. ; on edit change
  4. searchchange:
  5. Gui,Submit,NoHide
  6. if !(InStr(sites, commandlookup, false)) {
  7. ;#Persistent
  8. GuiControl, , commandlookup
  9. return
  10. }
  11. sitesArr := StrSplit(sites, "|")
  12. newArr := []
  13. newStr := ""
  14. for k,v in sitesArr
  15. {
  16. if InStr(v, Search, false)>0
  17. {
  18. newArr.push(v)
  19. }
  20. }
  21. for k,v in newArr
  22. newStr .= "|" v
  23. GuiControl, , commandlookup, % newStr
  24. GuiControl, Choose, commandlookup, 1
  25. Return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement