Rich4rd

If String Or List Contains Many Words. ControlGetListSelected

Aug 29th, 2020
2,600
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. q:: ;If String Or List Contains Many Words. ControlGetListSelected
  2. ControlGet, List, Selected,, Edit1, A
  3. If List Contains "Mon,Tue,Wed,Thu,Fri,Sat,Sun"
  4. ;if ("Mon" in list)
  5.     StringReplace, List, List, Mon, Monday, All
  6.     StringReplace, List, List, Tue, Tuesday, All
  7.     StringReplace, List, List, Wed, Wednesday, All
  8.     StringReplace, List, List, Thu, Thursday, All
  9.     StringReplace, List, List, Fri, Friday, All
  10.     StringReplace, List, List, Sat, Saturday, All
  11.     StringReplace, List, List, Sun, Sunday, All
  12.  
  13. SendInput, {Text}%List%
  14. return
RAW Paste Data