Eight donor-π-acceptor (D-π-A) compounds employing triphenylpyrrole isomers (TPP-1,2,5 and TPP-1,3,4) as donors, malononitrile (CN) and 1H-indene-1,3(2H)-dione (CO) as acceptors, pyridone (P) and benzopyran (B) as π-linking groups were synthesized. The compounds exhibited aggregation-induced emission and piezochromic properties. Compared with previously reported donors, triphenylpyrroles induced all the compounds to have more remarkable photophysical properties. The compounds containing TPP-1,2,5 and P moieties displayed stronger fluorescence intensities, shorter emission wavelengths, and more distinct piezochromic properties. However, the same phenomenon was observed in the TPP-1,3,4-containing system if B was as π-linker. Moreover, the CN acceptor endowed the compound to have a relatively strong fluorescent intensity, in which CO induced a relatively long emission wavelength. That is, the photophysical properties of D-π-A compounds can be controlled by adjusting the structure of donor, linker and acceptor.