PRITTY COOL HUH
values = |0000|0001|0010|0011|0100|0101|0110|0111|1000|1001|1010|1011|1100|1101|1110|1111 ; a list of values to put in the combobox the first value should be preceded by a linefeed for cmboxfill to work gui, add, combobox, w120 +vscroll r5 vcombo, %values% gui, show settimer, filly, 50 return filly: gui, submit, nohide cmboxfill(values, combo) return cmboxfill(haystack, needle) ; help from toralf { If (getkeystate("delete") OR getkeystate("backspace") or (strlen(needle) > 0 ? 0 : 1)) Return re =(\||^)\Q%needle%\E(?P<Rest>.*?)(\||$) regexmatch(haystack, re,Input) len := StrLen(InputRest) sendinput, %InputRest%{shift down}{left %len%}{shift up} } tab:: ;this subrutine is used to put in more values (the sort is not neccesary to the cmboxfill(x,y) function enter:: gui, submit, nohide ifnotinstring, values, %combo% values = %Values%|%combo% sort, values, D| guicontrol,,combo, |%values% guicontrol, text, combo return guiclose: exitappI had a lot of trouble putting this together (mostly because of not getting the darn thing to stop by pressing delete or backspace then getting it to restart by pressing any other key)
If you guys can think of any improovement to the function i would greatlyappreciate any comments.
So what do you think