If they are aluminum you need good advice.
Im not sure about aluminum that has already been painted but plain aluminum needs an etch primer before paint.
I have seen a few painters advertising their specialty as aluminum window restorers.
I have seen a number of properties over the years with hand painted frames and looks cheap.